
我有四張桌子。第一個表的標題為Table A: Title
。其他三個表的標題為Table 1: Title
、Table 2: Title
和Table 3: Title
。
當我使用
\caption{Title}
它給了我Table 1: Title
、Table 2
、Table 3
和Table 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}