LaTeX public documents, templates, Biber files, and inputs.
| 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 | 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.) |
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.
- The
alltarget will build all directories inDIRS ?= doc/apcs doc/bhs doc/dlcs doc/gre doc/math doc/random doc/white-papers templates. Each of these directories are also targets that can be built individually. make cleanremoves all LaTeX intermediate files in$(DIRS).make clean-pdfadditionally removes all .PDF files in$(DIRS)so they can be rebuilt.make DIRS=examplewill build any of theexampledirectories in$(DIRS)(or$(OTHER)).makeis equivalent tomake all.make -swill only echo directories and files being built.
Makefile can also build other directories (not under source control).
- The
othertarget will build all directories inOTHER ?= apcs apcsp correspondence cv ga harvard-dce ia ig jobs pc1 princeton psb robotics stanford-logic uml wps MassBay. Each of these directories are also targets that can be built individually. make clean-allremoves all LaTeX intermediate files in$(DIRS) $(OTHER).make clean-all-pdfadditionally removes all .PDF files in$(DIRS) $(OTHERS)so they can be rebuilt.
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.
- Update all documents to use
\inputfiles.
🔗 permalink and 🔩 repository for this page.