A latex protocol template
git clone [email protected]:tgm-hit/latex-protocol.git protocol cd protocol ./maketex
Some features might depend on packages which are not installed by default! A growing list of optional dependencies can be found here.
sudo pacman -S texlive-most python-pygments
With Python 3 and LaTeX installed you can easily compile your project using the
maketex script which simplifies the compilation progress, handles multiple source files and removes unnecessary files.
For most use-cases you only have to run
./maketex which compiles the
main.tex file using
pdflatex while looking for bibliography and glossary entries.
If (for some reason) you do not want to depend on the
maketex script you can also use
bibtex from the shell.
pdflatex -shell-escape main # Initial compilation makeglossaries main # Compile glossaries pdflatex -shell-escape main # Progressive compilation for glossaries bibtex main # Compile bibliography pdflatex -shell-escape main # Progressive compilation for bibtex pdflatex -shell-escape main # Progressive compilation for bibtex
In TexStudio a custom command can be added under
Configure TexStudio →
User Commands. The following line completely compiles a LaTeX file with glossaries, bibliography and minted.
pdflatex -shell-escape -interaction=nonstopmode % | txs:///makeglossaries | pdflatex -shell-escape -interaction=nonstopmode % | txs:///bibtex | pdflatex -shell-escape -interaction=nonstopmode % | pdflatex -shell-escape -interaction=nonstopmode % | txs:///view-pdf-internal --embedded
Of course you can also add the
maketex script as a user command but you might want to set
-lm so TexStudio can find your log files and minted cache after cleanup.
python maketex -lm | txs:///view-pdf-internal --embedded
Overleaf is a popular online latex editor and is also fully supported by this template. Just download the archived repository or latest release and upload as a new project.
Options are added to the
\documentclass command usually found in
||Set main document language to english|
||Change the page format to landscape orientation|
||Add and configure minted package|
||Change bibtex backend to natbib|
||No additional fonts|
||No acronyms and glossary|
||No logos on titlepage|
||No table on titlepage|
||No table of contents|
||Skip a line instead of indenting after blank line|
||Load sans-serif fonts|
Variables are set as commands with their parameter being the variable value.
||Subtitle of group|
||Thematic group / subject|
||Current course / class|
||Current version of the document|
||Start of documentation|
||End of documentation|