
私は、ドキュメントのレイアウトを変更せずに他の PDF を含めることができるように、LaTeX ドキュメントの向きを横向きから縦向きに変更する方法をしばらく探していました\includepdf[..]{..}
。
私の文書の最小限の例は次のようになります。他のTexファイルを多数インクルードしているため、より複雑な例を挙げるのは難しいですが、私の文書の内容ではクラスとその他のオプションおよびパッケージインポートが提供されています(必要な場合は、コード全体を表示できます)。ここ)。
クラスファイル
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{chordbook}
\LoadClass[12pt,a4paper,titlepage]{scrartcl}
\RequirePackage[chorded]{songs}
\RequirePackage{caption}
\RequirePackage[ngerman]{babel}
\RequirePackage[utf8]{inputenc}
\RequirePackage{longtable}
% Header
\RequirePackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[OL,ER]{\textbf{\myauthor's Chordbook 2015}\\}
\fancyhead[EL,OR]{\textbf{Seite \thepage} \\ \textit{\leftmark}}
\setlength{\oddsidemargin}{0mm}
\setlength{\hoffset}{-17.4mm}
\setlength{\voffset}{-22.4mm}
\setlength{\topmargin}{0mm}
\setlength{\headheight}{15mm}
\setlength{\headsep}{5mm}
\setlength{\textheight}{173mm}
\setlength{\textwidth}{280mm}
\setlength{\headwidth}{\textwidth}
\setlength{\marginparsep}{0mm}
\setlength{\marginparwidth}{0mm}
\setlength{\footskip}{10mm}
\setlength{\songnumwidth}{15mm}
\setlength{\versenumwidth}{10mm}
\renewcommand\printchord[1]{\sffamily\slshape\small#1}
\newcommand\chordbrk{\hspace*{6.2mm}}
\RequirePackage[final]{pdfpages}
\cfoot{}
\RequirePackage[ngerman]{varioref}
\RequirePackage{lipsum}
書類
\documentclass[landscape]{../TeX/chordbook}
\usepackage{pdflscape}
\usepackage[%
colorlinks=true,
pdfstartview=FitV,
linkcolor=blue,
citecolor=green,
urlcolor=red,
%debug=true,
hyperfigures=true%
]{hyperref}
\begin{document}
\songcolumns{2}
\columnsep=3mm
\renewcommand{\snumbgcolor}{songnr}
\renewcommand{\notebgcolor}{notes}
\renewcommand\printchord[1]{\footnotesize\sffamily
\textit{\textcolor{linkcolor}{{#1}}}}
\clearpage
\songsection{A Capella}
\begin{songs}{}
...
\end{songs}
\clearpage
\songsection{Classic}
\begin{songs}{}
...
\end{songs}
\clearpage
\songsection{Folk and Medieval}
\begin{songs}{}
...
\end{songs}
\clearpage
\songsection{Fun}
\begin{songs}{}
...
\end{songs}{}
\clearpage
\songsection{Modern / Rock}{}
\begin{songs}{}
...
\end{songs}
\clearpage
\songsection{Oldies}
\begin{songs}{}
...
\end{songs}
\clearpage
\songsection{Other}
\begin{songs}{}
...
\end{songs}
\begin{appendix}
\setlength{\oddsidemargin}{0mm}
%\setlength{\hoffset}{-17.4mm}
%\setlength{\voffset}{-22.4mm}
%\setlength{\topmargin}{0mm}
%\setlength{\headheight}{15mm}
%\setlength{\headsep}{5mm}
%\setlength{\textheight}{173mm}
%\setlength{\textwidth}{280mm}
%\setlength{\headwidth}{\textwidth}
\setlength{\marginparsep}{-30mm}
\setlength{\marginparwidth}{-30mm}
%\setlength{\footskip}{10mm}
\begin{landscape}
\includepdf[pages=-,scale=0.9,landscape]{../src/appendix/i_see_fire.pdf}
\end{landscape}
\end{appendix}
\end{document}
私の問題は、含まれているPDFが左余白から約40mm離れたところから始まるのですが、この長さを短くすることができません。また、
- \hオフセット
- \奇数側余白
- \marginparsep
- \parginparwidth
動作しませんでした。実際に値を変更しても何も変わりませんでした。
私はリンクスクリーンショットを直接アップロードするには評判が足りないので、ここにスクリーンショットを投稿します。
私が何を間違っているのか誰か分かりますか?
スイッチのようなコマンドなどが見つかりませんportrait
...
よろしく
hringriin
答え1
完全な解決策は次のとおりです。
<<<<<
\begin{landscape}
\includepdf[pages=-,scale=0.9,landscape]{../src/appendix/i_see_fire.pdf}
\end{landscape}
=====
\setlength{\textheight}{195mm}
\begin{landscape}
\includegraphics[scale=0.93]{../src/appendix/i_see_fire.pdf}
\end{landscape}
>>>>>
ちなみに、\includepdf
値を変更しても変化はありません\textheight
。
よろしく
hringriin