https://github.com/ickc/pandoc-ucb-letterhead-template
An adaption to pandoc of "Berkeley 2020 Letterhead 4 color formal version" from https://www.overleaf.com/latex/templates/berkeley-2020-letterhead-4-color-formal-version/ryrsfvdsztpq
https://github.com/ickc/pandoc-ucb-letterhead-template
pandoc pandoc-template pandoc-templates
Last synced: 3 months ago
JSON representation
An adaption to pandoc of "Berkeley 2020 Letterhead 4 color formal version" from https://www.overleaf.com/latex/templates/berkeley-2020-letterhead-4-color-formal-version/ryrsfvdsztpq
- Host: GitHub
- URL: https://github.com/ickc/pandoc-ucb-letterhead-template
- Owner: ickc
- License: other
- Created: 2021-11-08T08:35:25.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-05T15:47:40.000Z (11 months ago)
- Last Synced: 2025-02-05T11:36:42.498Z (4 months ago)
- Topics: pandoc, pandoc-template, pandoc-templates
- Language: Python
- Homepage:
- Size: 1.57 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# A pandoc template for the UCB letter head
Adapted from [Berkeley 2020 Letterhead 4 color formal version - Overleaf, Online LaTeX Editor](https://www.overleaf.com/latex/templates/berkeley-2020-letterhead-4-color-formal-version/ryrsfvdsztpq).
# Usage
Follow the example in `main.md` to see how to write the cover letter. Then run
```sh
pandoc -s -o src/main.pdf src/main.md --template=ucb-letterhead.latex --pdf-engine=lualatex
```Note that for best results, use a matching pandoc version with the template provided here. See the first line of the template `ucb-letterhead.latex` for the pandoc version it supports.
# Advanced Usage
## Generate template with matching pandoc versions
The template here is generated by a script. For a different pandoc version, you can generate it as follows:
```sh
util/generate_pandoc_template.py > ucb-letterhead.latex
```Or using make,
```sh
# generate a new template
make template -B
# see the difference made to the default template
make diff DIFF=YOUR_FAVORITE_DIFF_PROGRAM
# such as
make diff DIFF=diff
```## Reproducible builds
If you use nix & devbox, you can run
```sh
devbox run make pdf
```This ensures the pandoc and TeXLive versions in the lock file is used to achieve reproducibility.