fontenc
allows font encoding to be specified through fontenc
package (with pdflatex
); default is T1
(see LaTeX font encodings guide)
fontfamily
font package for use with pdflatex
: TeX Live includes many options, documented in the LaTeX Font Catalogue. The default is Latin Modern.
fontfamilyoptions
options for package used as fontfamily
; repeat for multiple options. For example, to use the Libertine font with proportional lowercase (old-style) figures through the libertinus
package:
---
fontfamily: libertinus
fontfamilyoptions:
- osf
- p
...
fontsize
font size for body text. The standard classes allow 10pt, 11pt, and 12pt. To use another size, set documentclass
to one of the KOMA-Script classes, such as scrartcl
or scrbook
.
mainfont
, sansfont
, monofont
, mathfont
, CJKmainfont
font families for use with xelatex
or lualatex
: take the name of any system font, using the fontspec
package. CJKmainfont
uses the xecjk
package.
mainfontoptions
, sansfontoptions
, monofontoptions
, mathfontoptions
, CJKoptions
options to use with mainfont
, sansfont
, monofont
, mathfont
, CJKmainfont
in xelatex
and lualatex
. Allow for any choices available through fontspec
; repeat for multiple options. For example, to use the TeX Gyre version of Palatino with lowercase figures:
---
mainfont: TeX Gyre Pagella
mainfontoptions:
- Numbers=Lowercase
- Numbers=Proportional
...
microtypeoptions
options to pass to the microtype package