LaTeX template: add variable romanfont (#4665)

This opens up the possibility of setting the romanfont in xelatex/lualatex.
Note that mainfont actually oversets sansfont in headings
This commit is contained in:
OvidiusCicero 2018-11-03 20:41:47 +01:00 committed by John MacFarlane
parent 9d0937180a
commit 6beb1fc28d

View file

@ -92,6 +92,9 @@ $endfor$
$if(mainfont)$
\setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
$endif$
$if(romanfont)$
\setromanfont[$for(romanfontoptions)$$romanfontoptions$$sep$,$endfor$]{$romanfont$}
$endif$
$if(sansfont)$
\setsansfont[$for(sansfontoptions)$$sansfontoptions$$sep$,$endfor$]{$sansfont$}
$endif$