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:
parent
7db51bc9ae
commit
fc6ef27970
1 changed files with 4 additions and 0 deletions
|
@ -38,6 +38,10 @@ $endif$
|
||||||
$if(mathfont)$
|
$if(mathfont)$
|
||||||
\setmathfont(Digits,Latin,Greek){$mathfont$}
|
\setmathfont(Digits,Latin,Greek){$mathfont$}
|
||||||
$endif$
|
$endif$
|
||||||
|
$if(CJKmainfont)$
|
||||||
|
\usepackage{xeCJK}
|
||||||
|
\setCJKmainfont{$CJKmainfont$}
|
||||||
|
$endif$
|
||||||
\fi
|
\fi
|
||||||
% use upquote if available, for straight quotes in verbatim environments
|
% use upquote if available, for straight quotes in verbatim environments
|
||||||
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
|
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
|
||||||
|
|
Loading…
Add table
Reference in a new issue