18

How do I change the text color as well as the text background color for e.g. a sentence within a paragraph? I know \textcolor for coloring the font and \colorbox for background coloring [http://en.wikibooks.org/wiki/LaTeX/Colors]. Unfortunately \colorbox will not perform a linebreak. Is there any solution for that?

I want to make MY changes in a PDF document visible for review. I know some other approaches like diffpdf, oder pdftotext and then diff.. But I thought this should be an easy task.

Thanks for your comments.

Edit: Hm, appetite comes with eating: Unfortunately the \hl command from soul and all other approaches I saw does not regard whole environments like itemize, tabular. So I don't want to highlight all text inside them separately. Do you see any way around this problem?

Thanks again.

2

1 Answer 1

11

I think this question about highlighting in LaTeX is what you are looking for.

2
  • Thanks, that was what I was looking for. I just needed the the highlighting as well as todonotes giving me comments and highlights in the pdf. But it does not work for environments and tabulars as well, should I update the title of my question, since it regards now also not only paragraphs.
    – math
    Commented Jun 3, 2011 at 11:25
  • 2
    @brubelsabs: In my opinion, you should rather ask a new (follow-up) question and provide a link to the original question.
    – lockstep
    Commented Jun 3, 2011 at 11:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .