最小字体大小为 8 点的 LaTeX 表格模板示例

最小字体大小为 8 点的 LaTeX 表格模板示例

有人能帮我提供一个最小字体大小为 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}

相关内容