竞猜排行 / 2026-02-24 11:01:54
这里我们详细介绍下,表格横置的方法:
rotating宏包解决方案\usepackage{rotating} 宏包提供了 \begin{sidewaystable} \end{sidewaystable}环境.表格就会产生旋转,若是想让页面横置,需要Landscape环境
代码示例\documentclass[10pt]{article}\usepackage{amsmath}\usepackage{rotating}\begin{document}\begin{sidewaystable}[h]\caption{Performance After Post Filtering} % title name of the table\centering % centering table\begin{tabular}{l c c rrrrrrr} % creating 10 columns\hline\hline % inserting double-lineAudio &Audibility & Decision &\multicolumn{7}{c}{Sum of Extracted Bits}\\ [0.5ex]\hline % inserts single-line% Entering 1st row& &soft &1 & $-1$ & 1 & 1 & $-1$ & $-1$ & 1 \\[-1ex]\raisebox{1.5ex}{Police} & \raisebox{1.5ex}{5}&hard& 2 & $-4$ & 4 & 4 & $-2$ & $-4$ & 4 \\[1ex]% Entering 2nd row& &soft & 1 & $-1$ & 1 & 1 & $-1$ & $-1$ & 1 \\[-1ex]\raisebox{1.5ex}{Beethoven} & \raisebox{1.5ex}{5}& hard&8 & $-8$ & 2 & 8 & $-8$ & $-8$ & 6 \\[1ex]% Entering 3rd row& &soft & 1 & $-1$ & 1 & 1 & $-1$ & $-1$ & 1 \\[-1ex]\raisebox{1.5ex}{Metallica} & \raisebox{1.5ex}{5}& hard&4 & $-8$ & 8 & 4 & $-8$ & $-8$ & 8 \\[1ex]% [1ex] adds vertical space\hline % inserts single-line\end{tabular}\label{tab:LPer}\end{sidewaystable}\end{document} 效果展示http://bbs.ctex.org/viewthread.php?tid=41564
我用的是book,要画横向的大表,不论是在奇数页或是偶数页,都希望表头能在左边,即逆时针旋转90度。但是现在我直接用默认的sidewaystable后,奇数页的表没问题,但偶数页的表表头都在右边,即顺时针旋转了90度,请问应该如何修正呢?
解决方案现在明白了,应该在用rotating的时候写:\usepackage[figuresright]{rotating}这样表底或是图注就都会向右,表头向左了。
LearnFast AI 照片身高计算器如何彻底删除电脑文件并有效防止恢复