LaTeX template: add space option to xeCJK with PassOptionsToPackage.
Otherwise we can get a clash with documentclasses that already load the package. Closes #6002.
This commit is contained in:
parent
e6399d162a
commit
cef30e7384
1 changed files with 4 additions and 1 deletions
|
@ -9,6 +9,9 @@ $if(latex-dir-rtl)$
|
|||
\PassOptionsToPackage{RTLdocument}{bidi}
|
||||
$endif$
|
||||
$endif$
|
||||
$if(CJKmainfont)$
|
||||
\PassOptionsToPackage{space}{xeCJK}
|
||||
$endif$
|
||||
%
|
||||
\documentclass[
|
||||
$if(fontsize)$
|
||||
|
@ -137,7 +140,7 @@ $endif$
|
|||
$endif$
|
||||
$if(CJKmainfont)$
|
||||
\ifxetex
|
||||
\usepackage[space]{xeCJK}
|
||||
\usepackage{xeCJK}
|
||||
\setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
|
||||
\fi
|
||||
$endif$
|
||||
|
|
Loading…
Add table
Reference in a new issue