在整页中垂直插入表格和图形

在整页中垂直插入表格和图形

我有一张表格,列数多,行数少。我需要将此表格垂直插入到一页中。怎么做?我也需要对图形执行相同操作,即在一页中插入图形

答案1

rotating您可以使用提供环境的包sidewaystable。您的代码应如下所示。请注意,表采用了一整页(第 2 页)。有类似的环境sidewaysfigure

\documentclass{article}

\usepackage{rotating} % <-- HERE

\begin{document}

blabla dummy text

\begin{sidewaystable} % <-- HERE
\centering
\begin{tabular}{cccccccc}\hline
dummy text & dummy text & dummy text & dummy text & dummy text & dummy text & dummy text & dummy text \\\hline
dummy text & dummy text & dummy text & dummy text & dummy text & dummy text & dummy text & dummy text \\
dummy text & dummy text & dummy text & dummy text & dummy text & dummy text & dummy text & dummy text \\
dummy text & dummy text & dummy text & dummy text & dummy text & dummy text & dummy text & dummy text \\
dummy text & dummy text & dummy text & dummy text & dummy text & dummy text & dummy text & dummy text \\
dummy text & dummy text & dummy text & dummy text & dummy text & dummy text & dummy text & dummy text \\\hline
\end{tabular}
\caption{Some caption to the table.}
\end{sidewaystable} % <-- HERE

\end{document}

相关内容