jbezos / soulpos

MIT License
0 stars 1 forks source link

Conflict between package pdfcomment and the book class traced to soulpos #4

Open pauloney opened 1 year ago

pauloney commented 1 year ago

The following code

\documentclass{book}

\usepackage{xcolor}
\usepackage{pdfcomment}

\begin{document}

The \pdfmarkupcomment[markup=Highlight,color=yellow]{yellow mark}{Highlight}.

\backmatter

\end{document}

that it is supposed to show the yellow highlight on the third run of LaTeX (pdf-, xe- or lua-), but it never does, no matter how many times it is run.

If you go there and comment the line:

%\backmatter

It does, properly, display the highlight after the third run.

The conflict has been tracked to soulpos by Ulrike Fisher at this link.

Obs. 1: There is a message to the effect that soulutf8 is an obsolete package and recommending to load the soul package directly. Loading it earlier, does get rid of the message, but the behaviour is exactly the same.

Obs.2: If you want to repeate the sequence (of 6 runs) to exhibit the problem, you have to uncomment the line in the file as well as remove the file *.upb that, if left over will keep showing the highlight.