aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorOvidiusCicero <OvidiusCicero@users.noreply.github.com>2018-11-03 20:41:47 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2018-11-03 12:41:47 -0700
commit6beb1fc28d5deabc56b005152fd4a124f50e3fa2 (patch)
tree385e369cd6f9fda373bf86e6b8853dcdeb42f479 /data
parent9d0937180a16ba343d1a33e83fa19d7951abafb3 (diff)
downloadpandoc-6beb1fc28d5deabc56b005152fd4a124f50e3fa2.tar.gz
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
Diffstat (limited to 'data')
-rw-r--r--data/templates/default.latex3
1 files changed, 3 insertions, 0 deletions
diff --git a/data/templates/default.latex b/data/templates/default.latex
index e64b216eb..737ebaa44 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -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$