LaTeX表格横置

2020-11-05
#LaTeX #Experiences

1. 说明

长表格超出页面的右边界,而不显示,需将长表格旋转90度横放。

2. 解决方案

  1. 在导言区添加rotating宏包:\usepackage[figuresright]{rotating}

  2. table环境改为sidewaystable环境:

\begin{table}[thp]
	\caption{This is the caption}
	\centering
	\begin{tabular}{|c|c|c|c|}
		\hline
        .......
    \end{tabular}
\end{table}
\begin{sidewaystable}[thp]
	\caption{This is the caption}
	\centering
	\begin{tabular}{|c|c|c|c|}
		\hline
		.......
	\end{tabular}
\end{sidewaystable}

3. 参考