[Tex/LaTex] List figures with \listoffigures but don’t show the figures themselves

apa6captionsfloatsgraphicstocloft

For a journal submission, I need a list of figure captions at the end of my manuscript but they explicitly asks not to include the figures themselves in the document.

I have added \listoffigures at the end of the document and it does what it does. But, now, how do I keep the figures from being rendered?

\documentclass[man]{apa6}

% Essential manuscript parts
\title{Test}
\author{Test}

% Style list of figures
\usepackage[titles]{tocloft}
\renewcommand{\listfigurename}{Figure captions}
\cftpagenumbersoff{figure}
\renewcommand{\cftfigpresnum}{\itshape\figurename\enspace}
\renewcommand{\cftfigaftersnum}{.\space} \setlength{\cftfigindent}{0pt}
\setlength{\cftafterloftitleskip}{0pt}
\settowidth{\cftfignumwidth}{Figure 10.\quad}

\begin{document}

\maketitle

\begin{table}[htp]
\caption{Something}
\end{table}

\begin{figure}[htbp]
\centering
\caption{This is a figure.}
\end{figure}

\begin{figure}[htbp]
\centering
\caption{This is a figure.}
\end{figure}

\renewcommand{\listfigurename}{Figure captions}
\listoffigures

\end{document}

I have tried the comment package and \excludecomment{figure} but that eliminates the figure list as well.

I've tried adding the following to the preamble:

\renewcommand{\includegraphics}[2][]{}
\captionsetup[figure]{labelsep=none,labelformat=empty,textformat=empty}

This indeed removes the figures and captions on the final pages but leaves empty pages. Is there a way omit the empty pages?

Best Answer

A solution that requires a change in the file for the final version with only the list of figures.

You keep the line

\nofiles\renewcommand{\processdelayedfloats}

commented out until you have the document in final form; the figures will be printed at the end. When your document is finished, uncomment the two lines and run LaTeX again.

Here's an example

\documentclass{article}
\usepackage{graphicx}

%%% Remove the next line if you want the figures at their place    
\usepackage[figuresonly,nolists,nomarkers]{endfloat}

\usepackage{lipsum}% mock text

% Uncomment the following line for the final version
%\nofiles\renewcommand{\processdelayedfloats}{}

\begin{document}

\lipsum[1]

\begin{figure}
\includegraphics[width=.3\textwidth]{example-image-a}
\caption{Whatever}
\end{figure}

\lipsum[2]

\begin{figure}
\includegraphics[width=.3\textwidth]{example-image-a}
\caption{Whatever}
\end{figure}

\lipsum[3]

\begin{table}[htp]
A table
\caption{Something}
\end{table}

\lipsum[4]

\clearpage

\listoffigures

\end{document}
Related Question