Better language defaults in LaTeX template.
Thansk to Francois Gannaz. The lang variable is now included, if set, in documentclass options. polyglossia is used instead of babel if xetex.
This commit is contained in:
parent
5aaa69eda5
commit
49e113d0d1
1 changed files with 7 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
\documentclass[$if(fontsize)$$fontsize$,$endif$]{$documentclass$}
|
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$]{$documentclass$}
|
||||||
\usepackage{amssymb,amsmath}
|
\usepackage{amssymb,amsmath}
|
||||||
\usepackage{ifxetex,ifluatex}
|
\usepackage{ifxetex,ifluatex}
|
||||||
\ifxetex
|
\ifxetex
|
||||||
|
@ -93,7 +93,12 @@ $if(verbatim-in-note)$
|
||||||
\VerbatimFootnotes % allows verbatim text in footnotes
|
\VerbatimFootnotes % allows verbatim text in footnotes
|
||||||
$endif$
|
$endif$
|
||||||
$if(lang)$
|
$if(lang)$
|
||||||
\usepackage[$lang$]{babel}
|
\ifxetex
|
||||||
|
\usepackage{polyglossia}
|
||||||
|
\setmainlanguage{$lang$}
|
||||||
|
\else
|
||||||
|
\usepackage[$lang$]{babel}
|
||||||
|
\fi
|
||||||
$endif$
|
$endif$
|
||||||
$for(header-includes)$
|
$for(header-includes)$
|
||||||
$header-includes$
|
$header-includes$
|
||||||
|
|
Loading…
Add table
Reference in a new issue