markdown PDF by pandoc: fontsize of 11或12pt增长字体,但13或14pt返回到更



使用此header:

---
header-includes:
- usepackage{fvextra}
- DefineVerbatimEnvironment{Highlighting}{Verbatim}{breaklines,breakanywhere,breaksymbol=,breakanywheresymbolpre=,commandchars=\{}}
title: "Analyse spatiale"
subtitle: "Geostatistique, QGIS, Geoserver"
author: Marc Le Bihan
geometry: margin=2cm
fontsize: 12pt
output: pdf
classoption: fleqn
urlcolor: blue
---

对于用pandoc转换为pdf的markdown命令:

pandoc -f markdown-implicit_figures analyse_spatiale.md -o analyse_spatiale.pdf

11pt12ptfontsize:pdf有明显的影响,但13pt,14pt返回到较低的字体。

为什么?

13pt和14pt不是默认允许的类选项。他们将退回到默认的10pt选项。但是,您可以使用extsizes包来提供更多字体大小:

---
title: "Analyse spatiale"
subtitle: "Geostatistique, QGIS, Geoserver"
author: Marc Le Bihan
output: pdf_document
geometry: margin=2cm
classoption: fleqn
urlcolor: blue
header-includes:
- usepackage{fvextra}
- DefineVerbatimEnvironment{Highlighting}{Verbatim}{breaklines,breakanywhere,breaksymbol=,breakanywheresymbolpre=,commandchars=\{}}
- usepackage[14pt]{extsizes}
---
fff

这与LaTeX有关,pandoc使用LaTeX生成PDF:默认的LaTeXarticle类只支持10pt, 11pt和12pt字体大小;其他值将被忽略。

最新更新