doc: set default font, optionally

This commit is contained in:
Michele Guerini Rocco 2024-04-22 14:07:27 +02:00
parent a596b0dff2
commit be2cfe5ac9
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -105,11 +105,6 @@ references:
given: H. given: H.
issued: 2003-3-5, 2003-4-5 issued: 2003-3-5, 2003-4-5
# Font
# mainfont: Libertinus Serif
# mathfont: Libertinus Math
# monofont: Fira Mono
# PDF output options # PDF output options
classoptions: classoptions:
- a4paper - a4paper
@ -124,6 +119,14 @@ css: res/style.css
# pandoc-crossref options # pandoc-crossref options
linkReferences: true linkReferences: true
tableEqns: true tableEqns: true
header-includes: |
```{=latex}
% Set font only if available
\IfFontExistsTF{Libertinus Serif}{\setmainfont{Libertinus Serif}}{}
\IfFontExistsTF{Libertinus Math}{\setmonofont{Libertinus Math}}{}
\IfFontExistsTF{blabla}{\setsansfont{blablabla}}{}
```
... ...
[^1]: Istituto per la Scienza e Tecnologia dei Plasmi, [^1]: Istituto per la Scienza e Tecnologia dei Plasmi,