У меня есть две главы в приложении — таблицы и рисунки («Приложение А. Рисунки» и Приложение Б. Таблицы»), я хочу, чтобы в оглавлении документа отображались записи в каждой из них. Например, «A.1 Это какой-то рисунок». Я понятия не имею, как это сделать. В настоящее время в оглавлении указаны только Приложения А и Б.
\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}