For conversion from markdown (.md) to .pdf
pandoc file_name.md -o file_name.pdf
(manual, from page 41)
There are two ways of going to a .pdf
: via latex
or via html
. Based on this, one can create styles in different ways:
- Using pandoc
-V options
- While building:
pandoc input.md -V linkcolor:blue -o output.pdf
- While building:
- Using
.css
(via HTML)- Install: https://wkhtmltopdf.org/downloads.html
- Build:
pandoc -t html --css style.css input.md -o output.pdf
- Note: does not recognize latex formulas
- Using latex commands (via LATEX):
- Create file with style: e.g.
mystylefile.pandoc
- Call it when building:
pandoc input.md -H mystylefile.pandoc -o output.pdf
- Create file with style: e.g.
(manual, page 42)
- Existing fonts:
- To be specified after to the keyword
fontfamily
- Some examples:
- bookman
- utopia
- fouriernc
- times
- mathpazo
- libertine
- arev
- lmodern
- To be specified after to the keyword