This repo contains a LaTeX writing project.
Documents are automatically compiled upon each new commit and PDFs are served via a GitHub Pages site.
After setting up GitHub Pages (see below),
your documents will be built and served at https://<user/org>.github.io/<repo>/.
- TeX source:
main.tex - Bibtex references:
references.bib - Figure directory:
figures/
Note
There's no need to commit compiled PDF files from your local build. PDF files in the root directory are ignored by git.
_config.yml: optionally specify which documents to serve on GitHub Pages. By default, all.texfiles in the repository root will be compiled and linked on the index page. Override this like so (note: no.pdfor.texextension):document_links: - main - supplementary
latexmkrc: optional customization of TeX build directives (seelatexmkdocs).
To enable GitHub Pages for a new repository using this template:
- Go to the repository settings
- Navigate to "Pages"
- Select "GitHub Actions" as the source
- Back on the main repository page, click the gear icon ⚙️ on the right to edit the "About" section and check the box for "Use your GitHub Pages website".
Build with
latexmk -pdfAuxiliary build files will be ignored by git, but you can clean them locally with
latexmk -pdf -cWhile writing TeX source files, add a line break after each sentence (or clause). This makes editing and collaborating on the text much easier, and it makes git diffs much more readable. For more on this, see https://sembr.org.
A low-key way to add comments or questions on the text is to put comments in the TeX source with your initials. This doesn't clutter up the compiled PDF. For example:
% WSD: I don't understand the sentence below
A confusing sentence