Thursday, April 28, 2016
Add TEX root in all tex-sources
When working collaboratively with larger LaTeX projects, sources are usually split into many source-files, which are included or inputed into a master document. SyncTeX is a great thing, enable you to jump from pdf-preview directly to the specific source-line. Some tools require that the master-file is specified as root in each of the source files for this to work when the source is split into multiple files.
I wrote a script that perform this trivial and a bit boring task:
https://github.com/mandus/scripts/blob/master/add_tex_root.sh
Run as
add_tex_root.sh [-c] master.tex
Your folder will be scanned for tex-files, and master.tex set as root in all of them (except in master.tex itself). With the -c option, backup files created in the process will be deleted.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment