@@ -1,4 +1,5 @@
1+% Options for packages loaded elsewhere
1−\PassOptionsToPackage{unicode=true$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref} % options for packages loaded elsewhere
2+\PassOptionsToPackage{unicode=true$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref}
2\PassOptionsToPackage{hyphens}{url}
3\PassOptionsToPackage{hyphens}{url}
3$if(colorlinks)$
4$if(colorlinks)$
4\PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor}
5\PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor}
@@ -46,7 +47,7 @@ $endif$
46$for(beameroption)$
47$for(beameroption)$
47\setbeameroption{$beameroption$}
48\setbeameroption{$beameroption$}
49−% Prevent slide breaks in the middle of a paragraph:
50+% Prevent slide breaks in the middle of a paragraph
50\widowpenalties 1 10000
51\widowpenalties 1 10000
51\raggedbottom
52\raggedbottom
52$if(section-titles)$
53$if(section-titles)$
@@ -173,7 +174,7 @@ $if(outertheme)$
173\useoutertheme{$outertheme$}
174\useoutertheme{$outertheme$}
176−% use upquote if available, for straight quotes in verbatim environments
177+% Use upquote if available, for straight quotes in verbatim environments
177\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
178\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
178\IfFileExists{microtype.sty}{% use microtype if available
179\IfFileExists{microtype.sty}{% use microtype if available
179 \usepackage[$for(microtypeoptions)$$microtypeoptions$$sep$,$endfor$]{microtype}
180 \usepackage[$for(microtypeoptions)$$microtypeoptions$$sep$,$endfor$]{microtype}
@@ -218,10 +219,10 @@ $if(colorlinks)$
218 citecolor=$if(citecolor)$$citecolor$$else$Blue$endif$,
219 citecolor=$if(citecolor)$$citecolor$$else$Blue$endif$,
219 urlcolor=$if(urlcolor)$$urlcolor$$else$Blue$endif$,
220 urlcolor=$if(urlcolor)$$urlcolor$$else$Blue$endif$,
221− pdfborder={0 0 0},
222+ hidelinks,
223− breaklinks=true}
224+}
224−\urlstyle{same} % don't use monospace font for urls
225+\urlstyle{same} % disable monospaced font for URLs
225$if(verbatim-in-note)$
226$if(verbatim-in-note)$
226\VerbatimFootnotes % allows verbatim text in footnotes
227\VerbatimFootnotes % allows verbatim text in footnotes
@@ -247,7 +248,7 @@ $if(tables)$
247\usepackage{longtable,booktabs}
248\usepackage{longtable,booktabs}
248$if(beamer)$
249$if(beamer)$
249\usepackage{caption}
250\usepackage{caption}
250−% These lines are needed to make table captions work with longtable:
251+% Make caption package work with longtable
251\makeatletter
252\makeatletter
252\def\fnum@table{\tablename~\thetable}
253\def\fnum@table{\tablename~\thetable}
253\makeatother
254\makeatother
@@ -274,10 +275,10 @@ $if(links-as-notes)$
275$if(strikeout)$
276$if(strikeout)$
276\usepackage[normalem]{ulem}
277\usepackage[normalem]{ulem}
277−% avoid problems with \sout in headers with hyperref:
278+% Avoid problems with \sout in headers with hyperref
278\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
279\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
280−\setlength{\emergencystretch}{3em} % prevent overfull lines
281+\setlength{\emergencystretch}{3em} % prevent overfull lines
281\providecommand{\tightlist}{%
282\providecommand{\tightlist}{%
282 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
283 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
283$if(numbersections)$
284$if(numbersections)$
@@ -304,7 +305,7 @@ $if(pagestyle)$
304\pagestyle{$pagestyle$}
305\pagestyle{$pagestyle$}
307−% set default figure placement to htbp
308+% Set default figure placement to htbp
308\makeatletter
309\makeatletter
309\def\fps@figure{htbp}
310\def\fps@figure{htbp}
310\makeatother
311\makeatother
@@ -313,23 +314,23 @@ $for(header-includes)$
313$header-includes$
314$header-includes$
315$if(lang)$
316$if(lang)$
316−\ifnum 0\ifxetex 1\fi=0 % if pdftex or luatex
317+\ifxetex
317− \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
318−$if(babel-newcommands)$
322− % load polyglossia as late as possible as it *could* call bidi if RTL lang (e.g. Hebrew or Arabic)
318+ % Load polyglossia as late as possible: uses bidi with RTL langages (e.g. Hebrew, Arabic)
323 \usepackage{polyglossia}
319 \usepackage{polyglossia}
324 \setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$}
320 \setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$}
325$for(polyglossia-otherlangs)$
321$for(polyglossia-otherlangs)$
326 \setotherlanguage[$polyglossia-otherlangs.options$]{$polyglossia-otherlangs.name$}
322 \setotherlanguage[$polyglossia-otherlangs.options$]{$polyglossia-otherlangs.name$}
325+ \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
326+$if(babel-newcommands)$
332− % load bidi as late as possible as it modifies e.g. graphicx
333+ % Load bidi as late as possible as it modifies e.g. graphicx
333 \usepackage{bidi}
334 \usepackage{bidi}
335\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
336\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex