git.iko.soy/typeable/pandoc
on master help sign in
Merge pull request #137 from mb21/lang-inlines

LaTeX template: add babel-otherlangs and babel-newcommands

commit5d0aaa0b395c069b76b71a06c60a5292e94c1ef8 authorJohn MacFarlane <jgm@berkeley.edu> dateMon 19 Oct 2015, 23:01 (11 years ago) parent60228b4e3cfba2
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)$