![最小字体大小为 8 点的 LaTeX 表格模板示例](https://linux22.com/image/419649/%E6%9C%80%E5%B0%8F%E5%AD%97%E4%BD%93%E5%A4%A7%E5%B0%8F%E4%B8%BA%208%20%E7%82%B9%E7%9A%84%20LaTeX%20%E8%A1%A8%E6%A0%BC%E6%A8%A1%E6%9D%BF%E7%A4%BA%E4%BE%8B.png)
有人能帮我提供一个最小字体大小为 8 点的 LaTeX 表格模板示例吗?
例如,我想制作如下所示的表格,但我不知道如何将其设置为 9 号字体大小。如果我需要插入一些命令,您能帮助我吗?
\documentclass[a4paper,11pt]{article}
\begin{document}
\begin{table}[h!]
\begin{center}
\caption{Your first table.}
\label{tab:table1}
\begin{tabular}{l|c|r} % <-- Alignments: 1st column left, 2nd middle and 3rd right, with vertical lines in between
\textbf{Value 1} & \textbf{Value 2} & \textbf{Value 3}\\
$\alpha$ & $\beta$ & $\gamma$ \\
\hline
1 & 1110.1 & a\\
2 & 10.1 & b\\
3 & 23.113231 & c\\
\end{tabular}
\end{center}
\end{table}
\end{document}
Thanking you.
答案1
因为您已经使用了11pt
选项,9pt(您在问题中要求的,尽管标题中说的是 8pt)\footnotesize
所以只需在表格前添加它即可。
\documentclass[a4paper,11pt]{article}
\begin{document}
\begin{table}[htp] % don't use [h!] it usually generates a warning.
% better to use \centering than `center` in a float as `table` already adds space.
\centering
\caption{Your first table.}
\label{tab:table1}
\footnotesize
%^^^^^^^^^^^^%
\begin{tabular}{l|c|r} % <-- Alignments: 1st column left, 2nd middle and 3rd right, with vertical lines in between
\textbf{Value 1} & \textbf{Value 2} & \textbf{Value 3}\\
$\alpha$ & $\beta$ & $\gamma$ \\
\hline
1 & 1110.1 & a\\
2 & 10.1 & b\\
3 & 23.113231 & c\\
\end{tabular}
\end{table}
\end{document}