单章图表列表

单章图表列表

我想要单个章节(附录 a)的图表列表。

\documentclass[11pt]{scrbook}
\usepackage[ngerman]{babel}
\usepackage{subcaption}

\begin{document}

\frontmatter
\chapter{Front}

\begin{figure}[t]
\includegraphics{pic1}\caption{Picture 1}\label{fig:pic1}
\end{figure}


\mainmatter
\chapter{Main}

\begin{figure}[t]
\includegraphics{pic2}\caption{Picture 2}\label{fig:pic2}
\end{figure}


\appendix
\chapter{Appendix A}

\listoffigures % only Pictures 3 to 6 should be listet %

\begin{figure}[t]
\includegraphics{pic3}\caption{Picture 3}\label{fig:pic3}
\end{figure}

\begin{figure}[t]
\includegraphics{pic4}\caption{Picture 4}\label{fig:pic4}
\end{figure}

\begin{figure}[t]
\centering
\begin{subfigure}[t]{0.45\textwidth}
\includegraphics[width=\textwidth]{pic5}\caption{Picture 5}\label{fig:pic5}
\end{subfigure}
\hspace{.05\linewidth}
\begin{subfigure}[t]{0.45\textwidth}
\includegraphics[width=\textwidth]{pic6}\caption{Picture 6}\label{fig:pic6}
\end{subfigure}
\caption{Pictures 5 and 6}\label{fig:pics5-6}
\end{figure}

\end{document}

答案1

您可以设置在开始处和\listoffigures附录开始的时刻,因此附录之前的项目将不会显示。\iffalse\fi

\documentclass[11pt]{scrbook}
\usepackage[ngerman]{babel}
\usepackage{subcaption}
\usepackage[demo]{graphicx} % demo just for the example

\setuptoc{lof}{leveldown}
\AtBeginDocument{\addtocontents{lof}{\protect\iffalse}}
\newcommand{\appendixmore}{\cleardoublepage\addtocontents{lof}{\protect\fi}}

\begin{document}

\frontmatter
\chapter{Front}

\begin{figure}[t]
\includegraphics{pic1}\caption{Picture 1}\label{fig:pic1}
\end{figure}


\mainmatter
\chapter{Main}

\begin{figure}[t]
\includegraphics{pic2}\caption{Picture 2}\label{fig:pic2}
\end{figure}


\appendix
\chapter{Appendix A}


\listoffigures % only Pictures 3 to 6 should be listet %

\begin{figure}[t]
\includegraphics{pic3}\caption{Picture 3}\label{fig:pic3}
\end{figure}

\begin{figure}[t]
\includegraphics{pic4}\caption{Picture 4}\label{fig:pic4}
\end{figure}

\begin{figure}[t]
\centering
\begin{subfigure}[t]{0.45\textwidth}
\includegraphics[width=\textwidth]{pic5}\caption{Picture 5}\label{fig:pic5}
\end{subfigure}
\hspace{.05\linewidth}
\begin{subfigure}[t]{0.45\textwidth}
\includegraphics[width=\textwidth]{pic6}\caption{Picture 6}\label{fig:pic6}
\end{subfigure}
\caption{Pictures 5 and 6}\label{fig:pics5-6}
\end{figure}

\end{document}

在此处输入图片描述

相关内容