
我有一個很長的行表和列表,我使用 adjustbox
套件來調整這些表的大小。
然而,其他的表格卻完美細化,出現了效果,有的表格變成了大字體,與論文中的不同。我需要幫助,因為我找不到表格字體變大的原因。
這是我為長表寫的:
\begin{table}[h]
\caption{}
\label{}
\vspace{0.3cm}\centering\begin{adjustbox}{width=\textwidth}
\begin{tabular}
\end{tabular}
\end{adjustbox}
這對於常規表來說:
\begin{table}[h]
\caption{}
\label{}
\vspace{0.3cm}\centering
\begin{tabular}
\end{tabular}
\end{table}
\end{table}
答案1
為了說明我的評論:
\documentclass{article}
\usepackage{adjustbox}
\begin{document}
\begin{table}[h] \caption{test caption} \vspace{0.3cm}
\sbox0{\begin{tabular}{c}
a very small tabular
\end{tabular}}%
\ifdim\wd0>\textwidth
\adjustbox{width=\textwidth}{\usebox0}
\else
\centering
\usebox0
\fi
\end{table}
\end{document}