不同類型的字幕

不同類型的字幕

我有四張桌子。第一個表的標題為Table A: Title。其他三個表的標題為Table 1: TitleTable 2: TitleTable 3: Title

當我使用

 \caption{Title}

它給了我Table 1: TitleTable 2Table 3Table 4,但我不想要這種格式。

答案1

您需要將第一個表的編號更改為Alph,然後將其改回arabic。此外,您需要將表格計數器後退 1,這樣就不會得到表 A 後跟表 2。

\documentclass{article}
\begin{document}
\renewcommand\thetable{\Alph{table}}
%
\begin{table}
\centering\rule{2cm}{2cm} %Replace with tabular
\caption{The first}
\end{table}
%
\addtocounter{table}{-1}
\renewcommand\thetable{\arabic{table}}
%
\begin{table}
\centering\rule{2cm}{2cm} %Replace with tabular
\caption{The second}
\end{table}
%
\begin{table}
\centering\rule{2cm}{2cm} %Replace with tabular
\caption{The third}
\end{table}
\end{document}

相關內容