1
0
Fork 0
mirror of https://github.com/benedictdudel/pandoc-letter-din5008.git synced 2024-08-16 10:19:49 +02:00
mirror-pandoc-letter-din5008/README.md

50 lines
1.9 KiB
Markdown
Raw Normal View History

2016-07-20 23:06:24 +02:00
# Pandoc Letter Template (DIN 5008)
[Pandoc](https://pandoc.org/) template for writing letters in Markdown and converting them into PDFs
that follow the German national standard DIN 5008 for letter formatting. By using this
template, you can more efficiently create professional-looking letters in a
clean and organized manner. The template is customizable, so you can tailor it
to your specific needs.
2016-07-20 23:06:24 +02:00
## Preview
2016-07-20 23:06:24 +02:00
2022-12-19 23:02:23 +01:00
<p align="center">
<img src="https://github.com/benedu/pandoc-letter/raw/master/example/letter.png" alt="Letter Preview"/>
</p>
2016-07-20 23:06:24 +02:00
## Requirements
- [Pandoc](http://pandoc.org/installing.html)
- [LaTeX](https://latex-project.org/ftp.html)
- [csquotes](https://ctan.org/pkg/csquotes)
2016-07-20 23:06:24 +02:00
## Usage
Clone this repository or download the template with the following command:
2016-07-20 23:06:24 +02:00
```bash
curl https://raw.githubusercontent.com/benedictdudel/pandoc-letter-din5008/master/letter.latex --create-dirs -o ~/.pandoc/templates/letter.latex
2016-07-20 23:06:24 +02:00
```
Write your letter in markdown, using the provided [`example/letter.md`](https://raw.githubusercontent.com/benedictdudel/pandoc-letter-din5008/master/example/letter.md) file as a
guide. You can download the example `letter.md` file with the following command:
```bash
curl https://raw.githubusercontent.com/benedictdudel/pandoc-letter-din5008/master/example/letter.md -o letter.md
```
2016-07-20 23:06:24 +02:00
To convert the markdown file to a PDF run:
2016-07-20 23:06:24 +02:00
```bash
pandoc letter.md -s -o letter.pdf --template="letter"
```
2016-07-20 23:06:24 +02:00
## Customization
2016-07-20 23:06:24 +02:00
You can customize the look and feel of the generated PDF by modifying the
variables. See [`example/letter.md`](https://raw.githubusercontent.com/benedictdudel/pandoc-letter-din5008/master/example/letter.md) for a full list of available variables.
2016-07-20 23:06:24 +02:00
## Contact
2019-10-20 17:59:21 +02:00
If you have any questions, feel free to open an issue [here](https://github.com/benedictdudel/pandoc-letter-din5008/issues) or contact me via twitter at [@benedictdudel](https://twitter.com/benedictdudel)