LaTeX diff
Purpose
To annotate changes in a latex file; to produce nice, colored
annotations like this one:
Program 1 (20020718)
Written by William Scott Hoge <shoge at ECE dot NEU another dot EDU>.
License: GPL
Written in Perl, please read comments inside.
Download: texdiff.pl
Program 2 -- (20020401)
Written by Robert Maron.
License: GPL
Scope
Linux system, probably also some unices.
Tested on RedHat 7.2.
Usage
- Download latest wdiff from
here
(or
use my copy: wdiff sources,
then
patch it with:
patch -d wdiff-0.5g -p1 < patch-wdiff)
- Compile:
cd wdiff-0.5g ; ./configure && make && make install
- Copy the script texdiff to /usr/local/bin/
- To create sample-diff.tex
from sample-old.tex and
sample.tex, run:
texdiff sample.tex sample-old.tex sample-diff.tex
- The file texdiff.tex is now included
into the sample-diff.tex
- Create PDF document
(the Makefile is included):
make sample-diff.pdf
(when needed clean the source TeX manually; it is often needed
when changes are made within a table, section header or an itemize
list; in general - change open/close tags shall be within one item,
table cell, etc.)
- Note: texdiff can directly use CVS, run it without arguments
for help.
Download files
- texdiff - main script, generates diff annotated file
- texdiff.tex - some definitions to be included into diff annotated file
- wdiff-0.5g.tar.gz - wdiff sources; wdiff is a great tool written by Francois Pinard
- patch-wdiff - patch to make wdiff compile on RH7.2 Linux
Sample files
Robert Maron
page sponsored by TLS