General purpose themes for converting markdown to pdf using pandoc.
All in pure xelatex
, no Lua, no Perl.
Each theme works independently of each other. The only dependency to a theme is its font folder.
Examples for each theme stored in the examples directory.
Warning: These templates are very liberal with packages and assume the user has the entirety of texlive installed.
Symlink or copy the template files to your /usr/share/haskell-pandoc/data/templates/.
Copy or symlink pandoc-fonts to /usr/share/fonts/.
pandoc --pdf-engine=xelatex -f markdown -t pdf --template=name_of_template.tex /path/to/markdown/file.md > /path/to/pdf/file.pdf
Metadata from markdown file will not be given priority. Most of the things will be set by the templates. Metadata may be used to set only basic parameters like title, subject author, etc.
- All of the testing is done with zathura
- The fonts have been obtained using woff2ttf and woff2otf.py
- typora-free for the AUR was used for visual aid
- Themes are inspired from all those who wrote themes for Typora
- Of course, none of this would be possible without pandoc and texlive
- Highlight - Pandoc does not support highlight
- Footnotes - Typora and Pandoc deal with footnotes in very different ways, hence this feature is not implemented.
- Lists nested further than level 4 (unless explicitly designed in the source theme)