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}