使用此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
11pt
或12pt
对fontsize:
的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字体大小;其他值将被忽略。