我正在格式化一本關於乳膠的雙頁書,我有一個圖表分成兩個幾乎頁面大小的圖像。 (兩個標題)。
我該怎麼做才能將第一張圖像放在偶數頁上,將第二張圖像放在下一頁上,以便人們可以打開該頁面並查看整個圖表而無需傳遞頁面?該圖的兩個部分位於兩個不同的文件中,而不是帖子“如何將一張圖片包含在兩頁上,左側部分在左側,右側部分在右側(對於書籍)?”。換句話說,我想要與上面的帖子相同的功能,但功能要少得多,例如自動將圖片分成兩部分等。如果圖片等到下一個偶數面開始時才輸出,那就太好了。
我嘗試在兩張圖片之前使用以下命令,但這似乎不起作用,請參見。LaTeX 維基百科。
\newcommand{\newevenside}{
\ifthenelse{\isodd{\thepage}}{\newpage}{
\newpage
\phantom{placeholder} % doesn't appear on page
\thispagestyle{empty} % if want no header/footer
\newpage
}
}
問題是它會將兩個數字放在左側,兩個不同的雙頁。
我用來將圖像放在文件上的程式碼是
\newevenside
\begin{figure}[hp!]
\includegraphics[width=18cm,angle=90]{figuras/project1.eps}
\caption{My caption.}
\label{fig:gantt1}
\end{figure}
\newpage
\begin{figure}[hp!]
\includegraphics[width=18cm,angle=90]{figuras/project2.eps}
\caption{My caption.}
\label{fig:gantt}
\end{figure}
答案1
你可以嘗試使用dp浮點包裹。下面的例子是不言自明的
\usepackage{dpfloat}
\begin{figure} % first part of the pic
\begin{leftfullpage} % this part will be put on the LEFT page
\includegraphics{...}
\end{leftfullpage}
\end{figure}
\begin{figure} % second part of the pic
\begin{fullpage}% this part will be put on the RIGHT page
\includegraphics{...}
\end{fullpage}
\end{figure}
答案2
也許最好不要讓它們漂浮,這樣它們就會呆在一起,只需使用
\usepackage{capt-of}
然後
\clearpage
\ifodd\value{page}\mbox{}\clearpage\fi
\includegraphhics{project1}
\captionof{figure}{...}
\clearpage
\includegraphhics{project2}
\captionof{figure}{...}
\clearpage
最好不要使用:.eps
中的副檔名\includegraphics
,這樣可以更輕鬆地在 Latex 和 pdflatex 之間切換。不相關,因為我已經刪除了浮動,但[hp!]
阻止了浮動,考慮到允許浮動,t
這有點奇怪。h