ClutTeX is a program to automatically process your LaTeX document. If necessary, it re-runs (La)TeX program to resolve cross-references and everything.
One of its main feature is that, it does not clutter your working directory (but the final .pdf file is still brought for you).
Blog:
- Does not clutter your working directory with
.aux,.log, etc. files. - Does not prompt for input when there is a (La)TeX error.
- With pTeX-like engines, automatically run dvipdfmx to produce PDF file.
- Automatically re-run (La)TeX to resolve cross-references and other things.
- Watch input files for change (requires an external program). [
--watchoption] - Support for MakeIndex, BibTeX, Biber, makeglossaries commands. [
--makeindex,--bibtex,--biber,--makeglossariesoptions]
$ cluttex -e pdflatex file.tex
More general form:
$ cluttex [OPTIONS] [--] INPUT.tex
See example/ for some examples.
ClutTeX is included in TeX Live.
If you want to install it manually, go Releases page and download the latest archive (zip or tar.gz). Unpack the archive and copy bin/cluttex to somewhere in PATH.
-e,--engine=ENGINESpecify which TeX engine/format to use.ENGINEis one of the following:pdflatex,pdftex,lualatex,luatex,luajittex,xelatex,xetex,latex,etex,tex,platex,eptex,ptex,uplatex,euptex,uptex.-o,--output=FILEThe name of output file. [default:JOBNAME.FORMAT]--freshClean intermediate files before running TeX. Cannot be used with--output-directory.--max-iterations=NMaximum number of running TeX to resolve cross-references. [default: 4]--[no-]change-directoryChange the current working directory to the output directory when running TeX.--watch[=ENGINE]Watch input files for change. Requires fswatch program orinotifywaitprogram to be installed on Unix systems.--color[=WHEN]Make ClutTeX's message colorful.WHENis one ofalways,auto, ornever. [default:autoif--coloris omitted,alwaysif=WHENis omitted]--includeonly=NAMEsInsert\includeonly{NAMEs}.--make-depends=FILEWrite dependencies as a Makefile rule.--tex-option=OPTIONPassOPTIONto TeX as a single option.--tex-options=OPTIONsPassOPTIONsto TeX as multiple options.--dvipdfmx-option[s]=OPTION[s]Same for dvipdfmx.-h,--helpPrint this message and exit.-v,--versionPrint version information and exit.-V,--verboseBe more verbose.--print-output-directoryPrint the output directory and exit.--package-support=PKG1[,PKG2,...,PKGn]Enable special support for shell-escaping packages. Currently supported packages aremintedandepstopdf.--engine-executable=COMMANDThe actual TeX command to use.--check-driver=DRIVERCheck that the correct driver file is loaded.DRIVERis one ofdvipdfmx,dvips,dvisvgm. Can only be used with--output-format=dvi.--config-file=FILEUse the specified config file.
Options to run auxiliary programs:
--makeindex=COMMANDUse MakeIndex program to process.idxfiles. (e.g.--makeindex=makeindex, or--makeindex=mendex)--bibtex=COMMANDUse BibTeX program to produce.bblfile from.auxfiles. (e.g.--bibtex=bibtex, or--bibtex=upbibtex)--biber[=COMMAND]Use Biber program to produce.bblfile from.bcffile.--makeglossaries[=COMMAND]Use makeglossaries program to produce.glsfile from.glofile.
TeX-compatible options:
--[no-]shell-escape--shell-restricted--synctex=NUMBER--[no-]file-line-error[default: yes]--[no-]halt-on-error[default: yes]--interaction=STRING(STRING=batchmode/nonstopmode/scrollmode/errorstopmode) [default:nonstopmode]--jobname=STRING--fmt=FORMAT--output-directory=DIR[default: somewhere in the temporary directory]--output-format=FORMATSet output format (pdfordvi). [default:pdf]
For TeX-compatible options, single-hypen forms are allowed (e.g. -synctex=1 in addition to --synctex=1).
If run as cllualatex or clxelatex, then the default engine is lualatex or xelatex, accordingly.
This program is distributed under GNU General Public License, version 3.