[texhax] colouring the text

Steve Schwartz s.schwartz at imperial.ac.uk
Thu Jun 30 13:22:45 CEST 2011


On Thu, 2011-06-30 at 11:52 +0100, Paul Stanley wrote:
> Gentlemen, ladies
> I'm sorry if this has been covered countless times already.  how 
> would one colour selected parts of the text? I'm looking for a macro 
> to colour segments of text that have been recently added or modified. 
> While we're added, i would be grateful for suggestions of suitable 
> colours for the purpose.

latexdiff is a Perl script that does this and more by comparing old.tex
and new.tex using diff. Available via the standard sources, e.g.


but often available directly from your tex installation.


Professor Steven J Schwartz        Phone: +44-(0)20-7594-7660
Head, Space & Atmospheric Physics  Fax:   +44-(0)20-7594-7772
The Blackett Laboratory            E-mail: s.schwartz at imperial.ac.uk
Imperial College London            Office: Huxley 6M67A 
London SW7 2AZ, U.K.               Web: www.sp.ph.ic.ac.uk/~sjs

More information about the texhax mailing list