さまざまな種類のキャプション

さまざまな種類のキャプション

表が 4 つあります。最初の表のキャプションは ですTable A: Title。他の 3 つの表のキャプションはTable 1: TitleTable 2: Title、 ですTable 3: Title

使うときは

 \caption{Title}

Table 1: Title、、、および が返されますがTable 2、この形式は不要です。Table 3Table 4

答え1

最初のテーブルの番号を に変更しAlph、その後 に戻す必要がありますarabic。さらに、テーブル A の後にテーブル 2 が続くことがないように、テーブル カウンターを 1 つ戻す必要があります。

\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}

関連情報