Is there a workaround to use the changes package inside captions?
Here it is a minimal example, the annotations and changes work great everywhere except in captions:
\documentclass{article}
\usepackage{changes}
\definechangesauthor[color=red]{JLM}
\begin{document}
Lorem ipsum \added[id=JLM,comment={lipsum, lipsum}]{dolor sit amet}, consectetur adipiscing elit. Integer luctus molestie hendrerit. Nullam id consequat turpis.
\begin{figure}
\centering
MyPictureHere
\caption{Caption \added[id=JLM,comment={lipsum, lipsum}]{dolor sit amet}}
\label{fig:my_label}
\end{figure}
\end{document}
The error I get is:
! LaTeX Error: Not in outer par mode.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.11 ...comment={lipsum, lipsum}]{dolor sit amet}}
You've lost some text. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
! Undefined control sequence.
<argument> @marbox
l.11 ...comment={lipsum, lipsum}]{dolor sit amet}}
I tried @UlrikeFischer workaround (add \usepackage{marginnote}\let\marginpar\marginnote), and it works in simple documents.
In more realistic documents it crams the comment bubbles.
Before:
After:


\usepackage{marginnote}\let\marginpar\marginnotecould work. – Ulrike Fischer Dec 05 '20 at 23:08\let\marginpar\marginnoteonly inside captions. See my edit. – alfC Dec 07 '20 at 06:01\let\oldmarginpar\marginpar \let\marginpar\doifmodeelse{caption}{\oldmarginpar}{\marginnote}but it didn't work. – alfC Dec 07 '20 at 08:06pdfTeX 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian), but as I said: your solution works for simple documents but it messes up the vertical spacing of bubbles in general. Maybe there is a way substitute themarginpar/marginnoteonly when stricktly necessary (inside captions). – alfC Dec 07 '20 at 08:20pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018)– alfC Dec 07 '20 at 08:24\end{figure}will do it anyway. – Ulrike Fischer Dec 07 '20 at 16:48