LaTeX template: Add CJKsansfont and CJKmonofont for XeLaTeX (#8656)

`CJKsansfont` and `CJKmonofont` will be set for xelatex only if `CJKmainfont` is also provided.
This commit is contained in:
Yudong Jin
2023-02-26 13:47:23 -08:00
committed by GitHub
parent 798980868d
commit a1b7078bd3
+6
View File
@@ -162,6 +162,12 @@ $if(CJKmainfont)$
\ifXeTeX
\usepackage{xeCJK}
\setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
$if(CJKsansfont)$
\setCJKsansfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKsansfont$}
$endif$
$if(CJKmonofont)$
\setCJKmonofont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmonofont$}
$endif$
\fi
$endif$
$if(luatexjapresetoptions)$