Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/src/resources/formats/pdf/pandoc/babel-lang.tex
12923 views
1
$--
2
$-- Babel language support
3
$--
4
$if(lang)$
5
\ifLuaTeX
6
\usepackage[bidi=basic$if(shorthands)$$else$,shorthands=off$endif$$for(babeloptions)$,$babeloptions$$endfor$]{babel}
7
\else
8
\usepackage[bidi=default$if(shorthands)$$else$,shorthands=off$endif$$for(babeloptions)$,$babeloptions$$endfor$]{babel}
9
\fi
10
$if(babel-lang)$
11
$if(mainfont)$
12
\ifPDFTeX
13
\else
14
\babelfont{rm}[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$$if(mainfontfallback)$,RawFeature={fallback=mainfontfallback}$endif$]{$mainfont$}
15
\fi
16
$endif$
17
$endif$
18
$for(babelfonts/pairs)$
19
\babelfont[$babelfonts.key$]{rm}{$babelfonts.value$}
20
$endfor$
21
\ifLuaTeX
22
\usepackage{selnolig} % disable illegal ligatures
23
\fi
24
$endif$
25