summaryrefslogtreecommitdiffstats
path: root/default.latex
diff options
context:
space:
mode:
Diffstat (limited to 'default.latex')
-rw-r--r--default.latex38
1 files changed, 11 insertions, 27 deletions
diff --git a/default.latex b/default.latex
index d6a6208..3874813 100644
--- a/default.latex
+++ b/default.latex
@@ -4,11 +4,6 @@
4$if(colorlinks)$ 4$if(colorlinks)$
5\PassOptionsToPackage{dvipsnames,svgnames,x11names}{xcolor} 5\PassOptionsToPackage{dvipsnames,svgnames,x11names}{xcolor}
6$endif$ 6$endif$
7$if(dir)$
8$if(latex-dir-rtl)$
9\PassOptionsToPackage{RTLdocument}{bidi}
10$endif$
11$endif$
12$if(CJKmainfont)$ 7$if(CJKmainfont)$
13\PassOptionsToPackage{space}{xeCJK} 8\PassOptionsToPackage{space}{xeCJK}
14$endif$ 9$endif$
@@ -17,9 +12,6 @@ $endif$
17$if(fontsize)$ 12$if(fontsize)$
18 $fontsize$, 13 $fontsize$,
19$endif$ 14$endif$
20$if(lang)$
21 $babel-lang$,
22$endif$
23$if(papersize)$ 15$if(papersize)$
24 $papersize$paper, 16 $papersize$paper,
25$endif$ 17$endif$
@@ -370,35 +362,27 @@ $if(csl-refs)$
370\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}\break} 362\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}\break}
371\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1} 363\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
372$endif$ 364$endif$
373$for(header-includes)$
374$header-includes$
375$endfor$
376$if(lang)$ 365$if(lang)$
377\ifXeTeX 366\ifLuaTeX
378 % Load polyglossia as late as possible: uses bidi with RTL langages (e.g. Hebrew, Arabic) 367\usepackage[bidi=basic]{babel}
379 \usepackage{polyglossia}
380 \setmainlanguage[$for(polyglossia-lang.options)$$polyglossia-lang.options$$sep$,$endfor$]{$polyglossia-lang.name$}
381$for(polyglossia-otherlangs)$
382 \setotherlanguage[$for(polyglossia-otherlangs.options)$$polyglossia-otherlangs.options$$sep$,$endfor$]{$polyglossia-otherlangs.name$}
383$endfor$
384\else 368\else
385 \usepackage[$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel} 369\usepackage[bidi=default]{babel}
370\fi
371\babelprovide[main,import]{$babel-lang$}
372$for(babel-otherlangs)$
373\babelprovide[import]{$babel-otherlangs$}
374$endfor$
386% get rid of language-specific shorthands (see #6817): 375% get rid of language-specific shorthands (see #6817):
387\let\LanguageShortHands\languageshorthands 376\let\LanguageShortHands\languageshorthands
388\def\languageshorthands#1{} 377\def\languageshorthands#1{}
389$if(babel-newcommands)$
390 $babel-newcommands$
391$endif$
392\fi
393$endif$ 378$endif$
379$for(header-includes)$
380$header-includes$
381$endfor$
394\ifLuaTeX 382\ifLuaTeX
395 \usepackage{selnolig} % disable illegal ligatures 383 \usepackage{selnolig} % disable illegal ligatures
396\fi 384\fi
397$if(dir)$ 385$if(dir)$
398\ifXeTeX
399 % Load bidi as late as possible as it modifies e.g. graphicx
400 \usepackage{bidi}
401\fi
402\ifPDFTeX 386\ifPDFTeX
403 \TeXXeTstate=1 387 \TeXXeTstate=1
404 \newcommand{\RL}[1]{\beginR #1\endR} 388 \newcommand{\RL}[1]{\beginR #1\endR}