This repository contains the following reference templates.
note.texfor writing articles, notes, and papers — requiresckunte.sty.letter.tex,letter-template.typandletter.typfor writing old-fashioned letters, cover pages, etc.
To insert a template in Sublime Text on the fly:
- Set file-type to LaTeX, and then
- Type a tab trigger (
noteorletter) and press tab
See editing aids below.
remit.texfor remittance — requiresremit.sty
Style (.sty) files can either be co-located with .tex files, or installed system-wide. For system-wide installation please see installing custom style.
See also snippets for reference.
Using TeX Live Utility, install the following packages:
datetimefor date and time optionsebgaramond-mathsfont for math supportebgaramondfontenumitemfor formatting enumitemserewhonfont withnewtxfor math supportfmtcountfor display value of LaTex counterly1for postscript font encodingpdfpagesfor embedding pdf pages/documentspgfplotsfor PGF plotsplaceinsfor section positioningpythonhighlightfor embedding python codesectstyfor styling sectionstitlingfor titling optionsxstringfor string manipulation
To install them all in on go, run the following command in terminal:
sudo tlmgr install datetime ebgaramond ebgaramond-maths enumitem erewhon fmtcount ly1 newtx pdfpages pgfplots placeins sectsty titling xstring-
Run these following in terminal:
git clone https://github.com/ckunte/templates.git ~/templates mkdir -p ~/texmf && cp ~/templates/texmf/* ~/texmf/. sudo texhash ~/texmf
-
Add the following to
~/.bashrcor~/.zshrc, and then reload the file by running. ~/.bashrc, for example, in terminal:if [ -d ~/texmf ] ; then export TEXMFHOME=::~/texmf export TEXINPUTS=::~/texmf fi
-
Test to check if
texmffolder is mapped correctly toTEXMFHOMEby runningkpsewhich -var-value TEXMFHOME. This would be$HOME/texmfin macOS, Linux, Cygwin (on Windows), etc.
User defined Sublime Text LaTeX snippets and Vim LaTeX snippets are available for use.