Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 1.11 KB

HowTo_pandoc.md

File metadata and controls

39 lines (31 loc) · 1.11 KB

How to: pandoc

For conversion from markdown (.md) to .pdf

Good blogs:

Build the .pdf

pandoc file_name.md -o file_name.pdf

Style

(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
  • Using .css (via HTML)
  • 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

Fonts:

(manual, page 42)

  • Existing fonts:
    • To be specified after to the keyword fontfamily
    • Some examples:
      • bookman
      • utopia
      • fouriernc
      • times
      • mathpazo
      • libertine
      • arev
      • lmodern