
我想在報告類別的章節中插入橫向影像和表格。這是我使用過的範例程式碼:
\begin{landscape}
\input{./Ch3/Tables/t01_innov_eq.tex}
\begin{figure}[htbp]
% \centering
% \includegraphics[width=19.7cm]{fig01_G1_bi_Sa_T_H7p1_W19p7.eps}
\centering
\includegraphics[width=19.7cm]{fig01_G1_bi_Sa_T_H7p1_W19p7.eps}
\caption{RS: (a) SA, and (b) SD.}
\label{fig:fig01_G1_bi_Sa_T3}
\end{figure}
\end{landscape}
此程式碼的問題在於它創建了一個不連續的頁面。但是,如果我使用sidewaysfigure
and sidewaystable
,它會將表格和圖像放在不同的頁面上。
答案1
將表格和圖形置於同一sideways...
環境中。在下面的範例中,我使用了sidewaystable
和\caption{figure}{...}
作為該圖的標題:
\documentclass{article}
\usepackage{rotating}
\usepackage{caption}
\usepackage{graphicx}
\begin{document}
\listoffigures
\listoftables
\begin{sidewaystable}
\caption{table caption}
\label{table}
\begin{tabular}{l}
tabular contents here
\end{tabular}
\includegraphics[width=19.7cm]{example-image}
\captionof{figure}{RS: (a) SA, and (b) SD.}
\label{fig:fig01_G1_bi_Sa_T3}
\end{sidewaystable}
\end{document}