付録の項目を個別にリストする

付録の項目を個別にリストする

付録に表と図の 2 つの章 (「付録 A 図」と「付録 B 表」) があり、ドキュメントの TOC にそれぞれのエントリを表示したいと考えています。たとえば、「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}

関連情報