The following fails to compile:
\documentclass{article}
\usepackage{lipsum}
\begin{document}
\begin{figure}
\caption{\lipsum[1]}
\end{figure}
\end{document}
giving the following error:
! Argument of \@caption has an extra }.
<inserted text>
\par
l.11 \caption{\lipsum[1]}
I assume the problem is related to this (and this), but here I don't have nested square brackets.
What am I doing wrong?
\lipsum*[1], it will not emit a\parat the end. – daleif Dec 09 '19 at 13:01\LipsumPar: `\documentclass{article} \usepackage{lipsum}\begin{document} \begin{figure} \caption{\LipsumPar{1}} \end{figure} \end{document}`.
– Dec 09 '19 at 13:04\lipsum*[1]gives the same error, andLipsumPargivesUndefined control sequence.– Roly Dec 09 '19 at 13:06