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

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

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.