aboutsummaryrefslogtreecommitdiff
path: root/default.latex
diff options
context:
space:
mode:
authorXavier Olive <xavier@xoolive.org>2015-06-02 22:53:58 +0200
committerXavier Olive <xavier@xoolive.org>2015-06-02 22:53:58 +0200
commitfc6ef27970569efd4e3862bfba4640a668ba6aff (patch)
treeb4157b8e59e1f759ffd64139c64df6abb09585a3 /default.latex
parent7db51bc9ae6afe0de79804346075d2001ba757e2 (diff)
downloadpandoc-fc6ef27970569efd4e3862bfba4640a668ba6aff.tar.gz
Support for Asian languages, CJKmainfont label
Works only with xelatex. This is not a big deal since when it hits on a utf8 unknown char (say Asian script), pandoc suggests to switch to the xelatex engine.
Diffstat (limited to 'default.latex')
-rw-r--r--default.latex4
1 files changed, 4 insertions, 0 deletions
diff --git a/default.latex b/default.latex
index 09a55acb4..f2e1dcb5e 100644
--- a/default.latex
+++ b/default.latex
@@ -38,6 +38,10 @@ $endif$
$if(mathfont)$
\setmathfont(Digits,Latin,Greek){$mathfont$}
$endif$
+$if(CJKmainfont)$
+ \usepackage{xeCJK}
+ \setCJKmainfont{$CJKmainfont$}
+$endif$
\fi
% use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}