yaml - Changing font size in Pandoc generated PDF document -
i'm trying change font size in pandoc generated pdf document using yaml. settings made in layout.yaml
template below;
--- title: "core concepts in mechanics" geometry: margin=3cm fontsize: 20pts output: pdf_document ...
i call pandoc below
pandoc --latex-engine=pdflatex -s -o coreconceptsinmechanics.pdf coreconceptsinmechanics.md layout.yaml
the font size not change @ all. rest of settings work. doing wrong?
the yaml metadata block supposed go @ top of markdown file.
the standard latex document classes support 3 different font sizes, 10pt
, 11pt
, 12pt
(note it's not 12pts
). if need larger fontsizes have specify different class, e.g.
--- fontsize: 20pt documentclass: extreport ... # title doc
finally, if want in 2 different files, order important afaik, should be:
pandoc -o output.pdf layout.yaml coreconceptsinmechanics.md
Comments
Post a Comment