Highlighting a paragraph in LaTeX #2

In my  last post regarding this topic I couldn't really find a solution to highlight the background of a a paragraph in LaTeX when it contained block-level elements like citations.

What actually does work exactly as I wanted it to in the first place is using the  todonotes package:

\usepackage[bordercolor=white,backgroundcolor=gray!30,linecolor=black,colorinlistoftodos]{todonotes}
\newcommand{\rework}[1]{\todo[color=yellow,inline]{Rework: #1}}

Now marking up a paragraph in \rework{paragraph(s)} results in:

http://consense-project.com/raw-attachment/blog/latex_highlight_text_2/paragraph-highlight2.png

edit: this throws yet another an error

! TeX capacity exceeded, sorry [input stack size=1500].

when the paragraph contains a footnote. Oh well - will have to do for now anyway.

  • Posted: 2010-05-31 00:43 (Updated: 2010-06-08 11:27)
  • Author: hkbruegm
  • Categories: latex

Attachments

Comments

No comments.

Add New Comment