问题描述
在写论文时,长表格会超出页面的右边界,因此需要将长表格旋转90度横放在页面中。
解决办法[1,2]
首先在导言区添加rotating宏包:\usepackage[figuresright]{rotating}
。
然后,将
\begin{table}[thp]
\caption{This is the caption}
\centering
\begin{tabular}{|c|c|c|c|}
\hline
.......
\end{tabular}
\end{table}
中的table环境改为sidewaystable环境:
\begin{sidewaystable}[thp]
\caption{This is the caption}
\centering
\begin{tabular}{|c|c|c|c|}
\hline
.......
\end{tabular}
\end{sidewaystable}
根据参考[2],
在book类文档中,要画横向的大表,不论是在奇数页或是偶数页,都希望表头能在左边,即逆时针旋转90度。但是现在我直接用默认的sidewaystable后,奇数页的表没问题,但偶数页的表表头都在右边,即顺时针旋转了90度,请问应该如何修正呢?【解决方案】
现在明白了,应该在用rotating的时候写:
\usepackage[figuresright]{rotating}
这样表底或是图注就都会向右,表头向左了。