I made a code lisitng:
\begin{lstlisting}[language=C,caption={ This is the caption, reproduced from []},captionpos=b, frame=single, numbers=left,label={lst:code}]
if ....%% code goes here
\end{lstlisting}
The caption has a '['. I don't know where it comes from or how to remove it.
caption={[hshorti]hcaption texti}the parsing of that might be a bit fragile. It worked for me to usecaption={This is the caption, reproduced from {[]}}– daleif Feb 21 '22 at 15:35[goes away withcaption={[]This is the caption, reproduced from []}as well. – cslstr Feb 21 '22 at 15:59