In my document, figures in the main text have the caption "Figure" whilst those in the appendices have the caption "Appendix". I would like this to be reflected in my list of figures. Can I make the code \renewcommand{\cftfigpresnum}{Figure }
vary to do this?
The following output is produced from the MWE below - I would like "Figure 2 Figure in Appendices" to be "Appendix 2 Figure in appendices".
\documentclass[a4paper, 12pt]{report}
\usepackage{tocloft}
\setlength{\cftfignumwidth}{6 em}
\renewcommand{\cftfigpresnum}{Figure }
\begin{document}
\listoffigures
\begin{figure}[ht]
\caption{Figure in main text}
\end{figure}
\renewcommand{\figurename}{Appendix}
\begin{figure}[ht]
\caption{Figure in appendices}
\end{figure}
\end{document}