Latex utilities

Post date: Nov 17, 2016 5:36:2 AM

+ To generate diff between latex files, use the following command in Windows cmd (see [1])

latexdiff old.tex new.tex >diff.tex

For additional configuration, use

latexdiff -c ld.cfg old.tex new.tex >diff.tex

where ld.cfg contains (see [2])

PICTUREENV=(?:picture|DIFnomarkup|align)[\w\d*@]*

+ To count the number of words in a latex document, use the following perl script (see [3])

perl latexcount.pl doc.tex

[1] https://www.sharelatex.com/blog/2013/02/16/using-latexdiff-for-marking-changes-to-tex-documents.html

[2] http://tex.stackexchange.com/questions/73224/is-there-an-option-in-latexdiff-to-ignore-whole-environments

[3] https://tex.stackexchange.com/questions/534/is-there-any-way-to-do-a-correct-word-count-of-a-latex-document