latex

LaTeX public documents, templates, Biber files, and inputs.

Directories

Directories Description
bib Directory for BibTeX and BibLaTeX files
doc Directory for my working LaTeX documents
images Directory for images used in LaTeX documents.
input Directory for \input files used in LaTeX documents.
templates Directory for template LaTeX documents of various kinds in various formats.

Files

Files Description
Makefile gmake file to build all .PDF files from LaTeX source using latexmk.
README.md This file.
clean.py A Python script to clean up LaTeX intermediate files. (Used by clean and clean-pdf make targets.)

Tools

Makefile (the single makefile in this project) uses latexmk which ‘…is a perl script for running LaTeX the correct number of times to resolve cross references, etc; it also runs auxiliary programs (bibtex, makeindex if necessary, and dvips and/or a previewer as requested).Makefile has standard targets all, clean, and clean-pdf.

Makefile can also build other directories (not under source control).

It is possible to clean up intermediate files after making using latexmk -c -cd or latexmk -C -cd (which includes ‘dvi, postscript and pdf files’), but all files would also be rebuilt in the process.

The make clean* targets use clean.py. The clean.py command-line options are listed below.

~ % python3 clean.py -h
usage: clean.py [-h] [-e EXT] [-n] [-v] [files ...]

Delete extraneous TeX files from subdirectories.

positional arguments:
  files              .TEX files to clean.

options:
  -h, --help         show this help message and exit
  -e EXT, --ext EXT  Extension(s) to add to .gitignore extension list.
  -n, --dry-run      Log file removal without actual file deletion.
  -v, --verbose      Print verbose output.

Removed intermediate files corresponding to the .TEX files are those .gitignore files listed in https://www.toptal.com/​developers/​gitignore/​api/​latex and those added with (zero or more) -e EXT command-line options.

TODO


🔗 permalink and 🔩 repository for this page.