Anhangseinträge separat auflisten

Anhangseinträge separat auflisten

Ich habe zwei Kapitel im Anhang – Tabellen und Abbildungen („Anhang A Abbildungen“ und Anhang B Tabellen“). Ich möchte, dass das Inhaltsverzeichnis des Dokuments die Einträge in jedem dieser Kapitel anzeigt. Zum Beispiel „A.1 Dies ist eine Abbildung“. Ich habe keine Ahnung, wie das geht. Derzeit sind nur Anhang A und B im Inhaltsverzeichnis aufgeführt.

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

Antwort1

Bildbeschreibung hier eingeben

Sie können das Tabellenverzeichnis und das Inhaltsverzeichnis kombinieren, indem Sie LaTeX anweisen, für die Listen die gleiche Erweiterung zu verwenden.

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

verwandte Informationen