最小字體大小為 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}

相關內容