A template for PDF documents using XeLaTeX and latexmk.
apt install texlive texlive-xetex
)apt install latexmk
)Run the init.sh
script to create a new project.
bash -c "$(curl https://raw.githubusercontent.com/MHenderson/fiction-template/main/init.sh)"
To build the draft PDF:
$ make draft
The clean target removes all files generated by XeLaTeX, other than the pdf. The cleanall target removes the PDF file as well.
$ make clean
There is a watch target for updating the PDF after any changes to the TeX source.
$ make watch
gitinfo2 provides macros that are used in the front matter. To initialise these hooks run:
$ make hooks
To build the final, non-draft version of the PDF:
$ make pdf