I would like to use the pdfcomment
package to make some annotations to a pdf. It seems to conflict with polyglossia
:
\documentclass{memoir}
\usepackage{xcolor,pdfcomment,polyglossia}
\setmainlanguage{english}
\setotherlanguage{german}
\begin{document}
Some text.
\pdfmarkupcomment[markup=Squiggly,color=green,author={somebody}]{Some \emph{more} text. \textgerman{Etwas Text}.}{some suggestion}
\end{document}
Gives me the following error:
! Argument of \\textgerman has an extra }.
<inserted text>
\par
l.7 ... \textgerman{Etwas Text}.}{some suggestion}
If I replace the \textgerman
by \emph
the file builds fine.
\protect\textgerman{Etwas Text}
– user31729 Mar 18 '18 at 9:08