@@ -1,4 +1,5 @@
1−\PassOptionsToPackage{unicode=true$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref} % options for packages loaded elsewhere
1+% Options for packages loaded elsewhere
2+\PassOptionsToPackage{unicode=true$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref}
23\PassOptionsToPackage{hyphens}{url}
34$if(colorlinks)$
45\PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor}
@@ -46,7 +47,7 @@ $endif$
4647$for(beameroption)$
4748\setbeameroption{$beameroption$}
4849$endfor$
49−% Prevent slide breaks in the middle of a paragraph:
50+% Prevent slide breaks in the middle of a paragraph
5051\widowpenalties 1 10000
5152\raggedbottom
5253$if(section-titles)$
@@ -173,7 +174,7 @@ $if(outertheme)$
173174\useoutertheme{$outertheme$}
174175$endif$
175176$endif$
176−% use upquote if available, for straight quotes in verbatim environments
177+% Use upquote if available, for straight quotes in verbatim environments
177178\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
178179\IfFileExists{microtype.sty}{% use microtype if available
179180 \usepackage[$for(microtypeoptions)$$microtypeoptions$$sep$,$endfor$]{microtype}
@@ -218,10 +219,10 @@ $if(colorlinks)$
218219 citecolor=$if(citecolor)$$citecolor$$else$Blue$endif$,
219220 urlcolor=$if(urlcolor)$$urlcolor$$else$Blue$endif$,
220221$else$
221− pdfborder={0 0 0},
222+ hidelinks,
222223$endif$
223− breaklinks=true}
224−\urlstyle{same} % don't use monospace font for urls
224+}
225+\urlstyle{same} % disable monospaced font for URLs
225226$if(verbatim-in-note)$
226227\VerbatimFootnotes % allows verbatim text in footnotes
227228$endif$
@@ -247,7 +248,7 @@ $if(tables)$
247248\usepackage{longtable,booktabs}
248249$if(beamer)$
249250\usepackage{caption}
250−% These lines are needed to make table captions work with longtable:
251+% Make caption package work with longtable
251252\makeatletter
252253\def\fnum@table{\tablename~\thetable}
253254\makeatother
@@ -274,10 +275,10 @@ $if(links-as-notes)$
274275$endif$
275276$if(strikeout)$
276277\usepackage[normalem]{ulem}
277−% avoid problems with \sout in headers with hyperref:
278+% Avoid problems with \sout in headers with hyperref
278279\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
279280$endif$
280−\setlength{\emergencystretch}{3em} % prevent overfull lines
281+\setlength{\emergencystretch}{3em} % prevent overfull lines
281282\providecommand{\tightlist}{%
282283 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
283284$if(numbersections)$
@@ -304,7 +305,7 @@ $if(pagestyle)$
304305\pagestyle{$pagestyle$}
305306$endif$
306307
307−% set default figure placement to htbp
308+% Set default figure placement to htbp
308309\makeatletter
309310\def\fps@figure{htbp}
310311\makeatother
@@ -313,23 +314,23 @@ $for(header-includes)$
313314$header-includes$
314315$endfor$
315316$if(lang)$
316−\ifnum 0\ifxetex 1\fi=0 % if pdftex or luatex
317− \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
318−$if(babel-newcommands)$
319− $babel-newcommands$
320−$endif$
321−\else % if xetex
322− % load polyglossia as late as possible as it *could* call bidi if RTL lang (e.g. Hebrew or Arabic)
317+\ifxetex
318+ % Load polyglossia as late as possible: uses bidi with RTL langages (e.g. Hebrew, Arabic)
323319 \usepackage{polyglossia}
324320 \setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$}
325321$for(polyglossia-otherlangs)$
326322 \setotherlanguage[$polyglossia-otherlangs.options$]{$polyglossia-otherlangs.name$}
327323$endfor$
324+\else
325+ \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
326+$if(babel-newcommands)$
327+ $babel-newcommands$
328+$endif$
328329\fi
329330$endif$
330331$if(dir)$
331332\ifxetex
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
333334 \usepackage{bidi}
334335\fi
335336\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex