Latex表格太寬處理方法 (How to shorten Latex table length)


當表格太寬時, 為了能在頁面中顯示完整, 可以縮小表格, 或者橫排.
縮小表格的好處是, 不用倒轉頁面閱讀, 壞處是原始寬度不同的表格, 被縮小后, 字體不一, 不美觀. 雖然可以調整參數使得所有表格字體一致, 但是非常不方便.
橫排則可以保持字體大小一樣.
[格式]注意, 表格包含標題, 表格體, 注解3部分.

[1]縮小方法(之一):使用\resizebox{\textwidth}{!}{...}, 用到graphix宏包.

\begin{center}
\begin{table*}[h]
\resizebox{\textwidth}{!}{ %
\begin{threeparttable}[b]
\caption{Survey of bond lengths.\tnote{a}}
\label{Tab:bondlength}
\begin{tabular}{ccccccccccc}
 

   ......
\end{tabular}
\begin{tablenotes}
    \item [a] {need to notice that...}
    \item [b] {...}
\end{tablenotes}
\end{threeparttable}}%
\end{table*}
\end{center}
\clearpage
[2]縮小方法(之二): 在\begin{table}后使用\footnotesize或其他指定的font size使得table字體變小, 注意太寬的表格變化后還有可能過寬, 此法只能暫時用用.
\begin{table*}[htb]\footnotesize
\begin{threeparttable}[b]
\caption{KE.\tnote{a}
\label{Tab:KE}}
\begin{tabular}{llccccccc}
    ...
\end{tabular}
 \begin{tablenotes}
    \item [a] {Note a.}
 \end{tablenotes}
\end{threeparttable}
\end{table*}
\clearpage

[3]橫排:用到\usepackage{rotating}

\begin{sidewaystable}
\centering
\begin{threeparttable}[b]
\caption{Survey of bond lengths.\tnote{a}}
\label{Tab:bondleng}
\begin{tabular}{ccccccccccc}
 ...
\end{tabular}
  \begin{tablenotes}
    \item [a] { } 
   \end{tablenotes}
\end{threeparttable}
\end{sidewaystable}
\clearpage

 

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM