I'm writing a manuscript using endfloat
to make all the figures at the end of the article.
However, when using the code below to eliminate numbers from lists of figures, the definition \AtBeginDelayedFloats{\renewcommand{\baselinestretch}{1.4}}
does not work:
\renewcommand*{\l@figure}[2]{%
\setlength\@tempdima{2.3em}%
\noindent\hspace*{1.5em}#1\hfil\newline }
By the way, \renewcommand{\baselinestretch}{1.4}
works well if the above code does not exist.
Any suggestion?
MWE
\documentclass{article}
\usepackage[lists]{endfloat}
\AtBeginDelayedFloats{\renewcommand{\baselinestretch}{1.4}}
\makeatletter
\renewcommand*{\l@figure}[2]{%
\setlength\@tempdima{2.3em}%
\noindent\hspace*{1.5em}#1\hfil\newline }
\makeatother
\begin{document}
\section{title}
text text text text text text text text text text text text text text text text text text text text text text text text text text
\begin{figure}[!ht]\caption{This is caption 1}\end{figure}
\begin{figure}[!ht]\caption{This is a long caption 2 This is a long caption 2 This is a long caption 2 This is a long caption 2}\end{figure}
\end{document}
Best Answer
There are three problems in your input.
Redefinitions of code that contains commands with an
@
in their names should be surrounded by special commandsUnfortunately the documentation of
endfloat
doesn't make this very clear.The code for figures must be properly input with
\begin{figure}
and\end{figure}
on lines by themselves:(the
\label
is optional, of course).Changing the definition of
\baselinestretch
is not sufficient, in general for getting increased line space: often the first paragraph will not be spaced. Use