diff options
author | John MacFarlane <jgm@berkeley.edu> | 2020-01-29 21:47:24 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-01-29 21:47:24 -0800 |
commit | cef30e738460c177e74df39166b351bec75857ea (patch) | |
tree | 0eda73b830b6df23ff11d5d168b3de4a73e5448d | |
parent | e6399d162aedf2bfe2b183cd4c7310521dafe842 (diff) | |
download | pandoc-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.latex | 5 |
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$ |