Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ckunte/templates

LaTeX and Typst templates (with styles) for notes, letters, forms.
https://github.com/ckunte/templates

latex-style latex-template typst-template

Last synced: 29 days ago
JSON representation

LaTeX and Typst templates (with styles) for notes, letters, forms.

Awesome Lists containing this project

README

        

# Templates

This repository contains the following reference templates.

1. `note.tex` for writing articles, notes, and papers — requires `ckunte.sty`.
2. `letter.tex`, `letter-template.typ` and `letter.typ` for writing old-fashioned letters, cover pages, etc.

To insert a template in [Sublime Text] on the fly:

1. Set file-type to LaTeX, and then
2. Type a tab trigger (`note` or `letter`) and press tab

See [editing aids](https://github.com/ckunte/templates#editing-aids) below.

# Fillable forms

1. `remit.tex` for remittance — requires `remit.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][i].

See also [snippets for reference][w].

# Packages required

[Using TeX Live Utility][tlu], install the following packages:

1. `datetime` for date and time options
1. `ebgaramond-maths` font for math support
1. `ebgaramond` font
1. `enumitem` for formatting enumitems
1. `erewhon` font with `newtx` for math support
1. `fmtcount` for display value of LaTex counter
1. `ly1` for postscript font encoding
1. `pdfpages` for embedding pdf pages/documents
1. `pgfplots` for PGF plots
1. `placeins` for section positioning
1. `pythonhighlight` for embedding python code
1. `sectsty` for styling sections
1. `titling` for titling options
1. `xstring` for string manipulation

To install them all in on go, run the following command in terminal:

```bash
sudo tlmgr install datetime ebgaramond ebgaramond-maths enumitem erewhon fmtcount ly1 newtx pdfpages pgfplots placeins sectsty titling xstring
```

# Installing custom style(s)

1. Run these following in terminal:

```bash
git clone https://github.com/ckunte/templates.git ~/templates
mkdir -p ~/texmf && cp ~/templates/texmf/* ~/texmf/.
sudo texhash ~/texmf
```

2. Add the following to `~/.bashrc` or `~/.zshrc`, and then reload the file by running `. ~/.bashrc`, for example, in terminal:

```bash
if [ -d ~/texmf ] ; then
export TEXMFHOME=::~/texmf
export TEXINPUTS=::~/texmf
fi
```

3. Test to check if `texmf` folder is mapped correctly to `TEXMFHOME` by running `kpsewhich -var-value TEXMFHOME`. This would be `$HOME/texmf` in macOS, Linux, Cygwin (on Windows), etc.

# Editing aids

User defined [Sublime Text LaTeX snippets][sn] and [Vim LaTeX snippets][vs] are available for use.

[tlu]: http://amaxwell.github.io/tlutility/ "TeX Live Utility"
[w]: https://github.com/ckunte/templates/wiki "Home - ckunte/templates Wiki"
[i]: https://github.com/ckunte/templates#installing-custom-style "Installing custom style system-wide"
[sn]: https://github.com/ckunte/latex-snippets-st "Custom LaTeX snippets for use in Sublime Text"
[vs]: https://github.com/ckunte/latex-snippets-vim "Custom LaTeX snippets for use in Vim"
[Sublime Text]: https://www.sublimetext.com/ "Sublime Text - A sophisticated text editor for code, markup and prose"