I would like to leave comments in a PDF file, for which purpose the pdfcomment package seems to be a useful option. However, when I tried to use \pdfmarkupcomment within a caption, my comment has not been displayed in the PDF file (at least, I could not find anywhere within the file). Could you please help me how to reach the desired effect within a caption? My MWE is as follows:




\pdfmarkupcomment[markup=Highlight]{Text}{Stupid comment.}

    {Another stupid comment, which is not displayed in the PDF file.}}

Fig.~\ref{fig:lab} is a blank figure.

  • 1
    it doesn't work in floats. Imho due to a bug in the soulpos package: github.com/jbezos/soulpos/issues/1 Feb 10, 2023 at 22:05
  • @UlrikeFischer It's a pity, but thanks. It would be good to have a workaround for this problem.
    – TobiR
    Feb 12, 2023 at 7:21


You must log in to answer this question.

Browse other questions tagged .