jgm / pandoc

Universal markup converter
https://pandoc.org
Other
34.61k stars 3.38k forks source link

Setting font size for KOMA-Script #2789

Closed adunning closed 7 years ago

adunning commented 8 years ago

After setting fontsize to e.g. 24pt, I observe the following warning when running LaTeX:

Package scrartcl Warning: You've used obsolete option `24pt'.
(scrartcl)                Usage of this option indicates an old document
(scrartcl)                and changes compatibility level using
(scrartcl)                `fontsize=24pt,version=first'.
(scrartcl)                If you don't want this, you should simply
(scrartcl)                replace option `24pt' by `fontsize=24pt'.

Would it be too clever to prefix fontsize= to the fontsize variable when documentclass is equal to scrbook, scrreprt, scrartcl, or scrlttr2?

wilx commented 8 years ago

I would suggest using modified default LaTeX template. I have copied the default and removed $if(indent)$ chunk from mine for KOMA class documents to avoid another warning produced by KOMA class documents.

jgm commented 7 years ago

On reflection I think @wilx is right -- trying to be too fancy will just make it confusing when people write their own komascript templates, which they'll probably want to do anyway for other reasons.