My LaTeX template for lectures and homeworks, with custom math commands and lecture macros I’ve found myself needing.
priimemath.sty
defines a package that includes environments and operators I’ve defined for myself. main.tex
defines a template for lecture notes and homework – it is dependent on priimemath.sty
.
For a new project, simply clone the directory.
git clone --depth=1 https://github.com/priime0/latextemplate
If you’d like to make the math operators global, you can symlink or copy the package file into your custom directory.
# First argument is the path to this repository's `priimemath.sty' file.
# Second argument is the path to your common LaTeX package directory.
# Replace `ln -s' with `cp' if you prefer to copy rather than link.
ln -s ./priimemath.sty ~/texmf/tex/latex/commonstuff/priimemath.sty
I use just to run my LaTeX commands.
just run
: compilemain.tex
toout/main.pdf
.just clean
: clean the contents ofout/
.