Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/ckunte/templates
- Owner: ckunte
- Created: 2018-03-24T11:28:21.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-04T15:04:24.000Z (9 months ago)
- Last Synced: 2024-12-01T07:27:45.969Z (about 1 month ago)
- Topics: latex-style, latex-template, typst-template
- Language: TeX
- Homepage:
- Size: 525 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 tabSee [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 manipulationTo 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"