2

With the following the space between "one" and "two" is gobbled.

\documentclass{article}
\usepackage{pdfcomment}
\begin{document}
  one \pdfcomment{comment}two
\end{document}

Why is that? Is it a bug or have I misunderstood the usage?

  • 1
    Switch the position of the spaces – egreg Sep 16 '16 at 13:36
3

This is a deliberate decision: there is an \unskip in the code which is active unless you do

\documentclass{article}
\usepackage[version = 1]{pdfcomment}
\begin{document}
  one \pdfcomment{comment}two
\end{document}

With no option or version = 2 (i.e. the current code), the package author has defined the semantics here to be that the comment should directly attach to the preceding text.

  • As far as I can tell this is the correct answer. (Pack­age doc­u­men­ta­tion, 1.1.4) – Daniel Sep 16 '16 at 13:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.