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:
John MacFarlane 2020-01-29 21:47:24 -08:00
parent e6399d162a
commit cef30e7384

View file

@ -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$