我有一张占三页的图。它由子图组成。这三个图的标题必须相同。这是一个例子:
请注意,每个图出现在不同的页面中。
正如预期,图表列表将显示以下内容:
1 这是标题.......................................................................................................................................................................................................1
1 这是标题。......................................................................................................................................................................................2
1 这是标题.......................................................................................................................................................................................................3
这就是问题出现的地方:如何防止同一个图形在图形列表中出现三次?在第一页上对图表进行索引就足够了。
这是一个完整的例子:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[labelformat=simple]{subcaption}
\renewcommand\thesubfigure{(\alph{subfigure})}
\usepackage{graphicx}
\title{Example}
\newcommand\metric[1]{\ensuremath{\text{metric}\paren{#1}}}
\begin{document}
\maketitle
\listoffigures
\section{Introduction}
\begin{figure}[htb]
\centering
\begin{subfigure}[b]{\textwidth}
\centering
\includegraphics[width=\textwidth]{example-image-a}
\caption*{\hfil \textit{continued on the next page}}
\end{subfigure}
\caption{This is a caption.}
\end{figure}
%
\begin{figure}[htb]\ContinuedFloat
\centering
\begin{subfigure}[b]{\textwidth}
\centering
\includegraphics[width=\textwidth]{example-image-b}
\caption*{\hfil \textit{continued on the next page}}
\end{subfigure}
\caption{This is a caption.}
\end{figure}
%
\begin{figure}[htb]\ContinuedFloat
\centering
\begin{subfigure}[tb]{\textwidth}
\centering
\includegraphics[width=\textwidth]{example-image-c}
\end{subfigure}
\caption{This is a caption.}
\label{fig:label}
\end{figure}
\end{document}
答案1
您可以添加一个空的可选参数到\caption
,例如\caption[]{This is a caption.}
。而没有必要使用subfigure
。
\documentclass{article}
\usepackage{caption}
\usepackage{graphicx}
\title{Example}
\begin{document}
\maketitle
\listoffigures
\section{Introduction}
\begin{figure}[htb]
\centering
\includegraphics[width=\textwidth]{example-image-a}
{\mbox{}\hfill\textit{continued on the next page}\hskip1cm}
\caption{This is a caption.}
\end{figure}
\begin{figure}[htb]\ContinuedFloat
\centering
\includegraphics[width=\textwidth]{example-image-b}
{\mbox{}\hfill\textit{continued on the next page}\hskip1cm}
\caption[]{This is a caption.}
\end{figure}
\begin{figure}[htb]\ContinuedFloat
\centering
\includegraphics[width=\textwidth]{example-image-c}
\caption[]{This is a caption.}
\label{fig:label}
\end{figure}
\end{document}