3

Adobe Acrobat has the feature that enables the user to markup words or lines and to add an annotation to these markups. These features do not only exits in Acrobat.

The markup looks like this:

Adobe Acrobat markup

Is it possible to create with LaTeX/LuaLaTeX/XeLaTeX a pdf that already has these markups (or even the annotations)?

To be honest I am not using annotation that much, but I use the marking of lines quite often and it is quite pedestrian to produce a pdf with LaTeX, to open it with Acrobat, to mark the relevant lines and then sadly to recognise an error, create the pdf again and have to markup again...

3

Simply use

\usepackage{color}
\newcommand{\hlt}[1]{\colorbox{yellow}{#1}}

full

\documentclass{article}
\usepackage{color}
\newcommand{\hlt}[1]{\colorbox{yellow}{#1}}

\begin{document}

Text text \hlt{text} text

\end{document}

output

  • I accepted this primarily because it seems to be the simplest solution. Another more elaborate alternative, as jfbu pointed out in his comment, is the package pdfcomment. – ClintEastwood Oct 16 '14 at 17:09
  • @ClintEastwood Yeah, I just saw that you accepted this and was thinking to myself "Did @jfbu ever get the ping?" I may learn and write up an answer with pdfcomment for completeness, since that's truly a PDF annotation. – Sean Allred Oct 16 '14 at 17:11

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.