[OS X TeX] Edit package?

Daniel Becker d.becker at jpberlin.de
Tue May 11 01:16:51 CEST 2010

Am 10.05.2010 um 22:48 schrieb Herbert Schulz:

> Well, try to copy the file, make real corrections in the copy and then drop both of them on the Drop Script and you'll get a third file that, when compiled, gives you what you want.

I guess many people do exactly that when working with MS Word (copy -  edit the file - compare it with the old version). I use an TeXShop engine for that, works for me. You have to copy and rename before doing the editing.

# creates a version of a .tex file that has differences marked up

# assumes that a version filename-oldversion.tex exists

set path= ($path /usr/texbin /usr/local/bin)
set filename = "$1"
set newname = "${filename:r}.tex"
set oldname = "${filename:r}-oldversion.tex"
set diffname = "${filename:r}-differences.tex"

#run latexdiff on a file foo.tex and create foo-differences.tex
latexdiff --type=CULINECHBAR "$oldname" "$newname" > "$diffname"
#open the diff-file
open "$diffname"


More information about the macostex-archives mailing list