aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-01-29 21:47:24 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2020-01-29 21:47:24 -0800
commitcef30e738460c177e74df39166b351bec75857ea (patch)
tree0eda73b830b6df23ff11d5d168b3de4a73e5448d
parente6399d162aedf2bfe2b183cd4c7310521dafe842 (diff)
downloadpandoc-cef30e738460c177e74df39166b351bec75857ea.tar.gz
LaTeX template: add space option to xeCJK with PassOptionsToPackage.
Otherwise we can get a clash with documentclasses that already load the package. Closes #6002.
-rw-r--r--data/templates/default.latex5
1 files changed, 4 insertions, 1 deletions
diff --git a/data/templates/default.latex b/data/templates/default.latex
index 73d98988e..4ceca434c 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -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$