[OS X TeX] Edit package?
Daniel Becker
d.becker at jpberlin.de
Mon May 10 19:16:51 EDT 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.
#!/bin/tcsh
# 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"
Daniel
More information about the MacOSX-TeX
mailing list