git.iko.soy/typeable/pandoc
on master help sign in
LaTeX and beamer templates: add babel-otherlangs and babel-newcommands
commite3cfba292613faa21c61d539f6e33929fd08fade authormb21 <mb21@users.noreply.github.com> dateSat 17 Oct 2015, 17:48 (11 years ago) parent319b641
2 files changed+8−6
default.beamer+4−3 default.latex+4−3
default.beamer+4−3
@@ -67,14 +67,15 @@ $endif$
6767\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
6868}{}
6969$if(lang)$
70−\ifxetex
70+\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
71+ \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$$sep$,$endfor$,main=$babel-lang$]{babel}
72+ $babel-newcommands$
73+\else
7174 \usepackage{polyglossia}
7275 \setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$}
7376$for(polyglossia-otherlangs)$
7477 \setotherlanguage[$polyglossia-otherlangs.options$]{$polyglossia-otherlangs.name$}
7578$endfor$
76−\else
77− \usepackage[shorthands=off,$babel-lang$]{babel}
7879\fi
7980$endif$
8081$if(natbib)$
default.latex+4−3
@@ -80,14 +80,15 @@ $endif$
8080 $if(hidelinks)$,hidelinks,$endif$}
8181\urlstyle{same} % don't use monospace font for urls
8282$if(lang)$
83−\ifxetex
83+\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
84+ \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$$sep$,$endfor$,main=$babel-lang$]{babel}
85+ $babel-newcommands$
86+\else
8487 \usepackage{polyglossia}
8588 \setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$}
8689$for(polyglossia-otherlangs)$
8790 \setotherlanguage[$polyglossia-otherlangs.options$]{$polyglossia-otherlangs.name$}
8891$endfor$
89−\else
90− \usepackage[shorthands=off,$babel-lang$]{babel}
9192\fi
9293$endif$
9394$if(natbib)$