15

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.

9

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

  • 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 Jun 3 '11 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 Jun 3 '11 at 11:32

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.