부록 항목을 별도로 나열

부록 항목을 별도로 나열

부록에는 표와 그림("부록 A 그림" 및 부록 B 표")이라는 두 개의 장이 있습니다. 문서의 목차에서 각 항목을 표시하고 싶습니다. 예를 들어 "A.1 이것은 그림입니다." 현재 TOC에는 부록 A와 B만 나열되어 있습니다.

\documentclass[12pt,twoside,a4paper]{book}
\usepackage[titletoc,page]{appendix}
\usepackage{caption}


\begin{document}
\tableofcontents



\begin{appendices}


\captionsetup[table]{list=no}
\renewcommand{\thesection}{\thechapter.\arabic{section}}
\renewcommand{\thesubsection}{\thesection.\arabic{subsection}}
\renewcommand{\thesubsubsection}{\thesubsection.\arabic{subsubsection}}
\chapter{Tables \label{app:figures}}
\begin{table}
\caption{Test table one}
\end{table}

\begin{table}
\caption{Test table one}
\end{table}
\end{appendices}
\end{document}

답변1

여기에 이미지 설명을 입력하세요

LaTeX에 목록에 대해 동일한 확장자를 사용하도록 지시하여 표 목록과 목차를 결합할 수 있습니다.

\documentclass[12pt,twoside,a4paper]{book}
\usepackage[titletoc,page]{appendix}
\usepackage{caption}

\makeatletter
\def\ext@figure{toc}
\def\ext@table{toc}
\makeatother

\begin{document}
\tableofcontents



\begin{appendices}


%\captionsetup[table]{list=no}
\renewcommand{\thesection}{\thechapter.\arabic{section}}
\renewcommand{\thesubsection}{\thesection.\arabic{subsection}}
\renewcommand{\thesubsubsection}{\thesubsection.\arabic{subsubsection}}
\chapter{Tables \label{app:figures}}
\begin{table}
\caption{Test table one}
\end{table}

\begin{table}
\caption{Test table two}
\end{table}
\end{appendices}
\end{document}

관련 정보