다양한 유형의 캡션

다양한 유형의 캡션

테이블이 4개 있어요. 첫 번째 테이블에는 이라는 캡션이 있습니다 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. 또한 테이블 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}

관련 정보