This repository contains the following reference templates.
note.tex
for writing articles, notes, and papers — requiresckunte.sty
.letter.tex
,letter-template.typ
andletter.typ
for 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 (
note
orletter
) and press tab
See editing aids below.
remit.tex
for 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:
datetime
for date and time optionsebgaramond-maths
font for math supportebgaramond
fontenumitem
for formatting enumitemserewhon
font withnewtx
for math supportfmtcount
for display value of LaTex counterly1
for postscript font encodingpdfpages
for embedding pdf pages/documentspgfplots
for PGF plotsplaceins
for section positioningpythonhighlight
for embedding python codesectsty
for styling sectionstitling
for titling optionsxstring
for 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
~/.bashrc
or~/.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
texmf
folder is mapped correctly toTEXMFHOME
by runningkpsewhich -var-value TEXMFHOME
. This would be$HOME/texmf
in macOS, Linux, Cygwin (on Windows), etc.
User defined Sublime Text LaTeX snippets and Vim LaTeX snippets are available for use.