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.
This commit is contained in:
Xavier Olive 2015-06-02 22:53:58 +02:00
parent 7db51bc9ae
commit fc6ef27970

View file

@ -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}}{}