svm-latex-article2.tex 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666
  1. % Options for packages loaded elsewhere
  2. \PassOptionsToPackage{unicode$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref}
  3. \PassOptionsToPackage{hyphens}{url}
  4. $if(colorlinks)$
  5. \PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor}
  6. $endif$
  7. $if(dir)$
  8. $if(latex-dir-rtl)$
  9. \PassOptionsToPackage{RTLdocument}{bidi}
  10. $endif$
  11. $endif$
  12. $if(CJKmainfont)$
  13. \PassOptionsToPackage{space}{xeCJK}
  14. $endif$
  15. %
  16. \documentclass[
  17. $if(fontsize)$
  18. $fontsize$,
  19. $endif$
  20. $if(lang)$
  21. $babel-lang$,
  22. $endif$
  23. $if(papersize)$
  24. $papersize$paper,
  25. $endif$
  26. $if(beamer)$
  27. ignorenonframetext,
  28. $if(handout)$
  29. handout,
  30. $endif$
  31. $if(aspectratio)$
  32. aspectratio=$aspectratio$,
  33. $endif$
  34. $endif$
  35. $for(classoption)$
  36. $classoption$$sep$,
  37. $endfor$
  38. ]{$documentclass$}
  39. $if(beamer)$
  40. $if(background-image)$
  41. \usebackgroundtemplate{%
  42. \includegraphics[width=\paperwidth]{$background-image$}%
  43. }
  44. $endif$
  45. \usepackage{pgfpages}
  46. \setbeamertemplate{caption}[numbered]
  47. \setbeamertemplate{caption label separator}{: }
  48. \setbeamercolor{caption name}{fg=normal text.fg}
  49. \beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$
  50. $for(beameroption)$
  51. \setbeameroption{$beameroption$}
  52. $endfor$
  53. % Prevent slide breaks in the middle of a paragraph
  54. \widowpenalties 1 10000
  55. \raggedbottom
  56. $if(section-titles)$
  57. \setbeamertemplate{part page}{
  58. \centering
  59. \begin{beamercolorbox}[sep=16pt,center]{part title}
  60. \usebeamerfont{part title}\insertpart\par
  61. \end{beamercolorbox}
  62. }
  63. \setbeamertemplate{section page}{
  64. \centering
  65. \begin{beamercolorbox}[sep=12pt,center]{part title}
  66. \usebeamerfont{section title}\insertsection\par
  67. \end{beamercolorbox}
  68. }
  69. \setbeamertemplate{subsection page}{
  70. \centering
  71. \begin{beamercolorbox}[sep=8pt,center]{part title}
  72. \usebeamerfont{subsection title}\insertsubsection\par
  73. \end{beamercolorbox}
  74. }
  75. \AtBeginPart{
  76. \frame{\partpage}
  77. }
  78. \AtBeginSection{
  79. \ifbibliography
  80. \else
  81. \frame{\sectionpage}
  82. \fi
  83. }
  84. \AtBeginSubsection{
  85. \frame{\subsectionpage}
  86. }
  87. $endif$
  88. $endif$
  89. $if(beamerarticle)$
  90. \usepackage{beamerarticle} % needs to be loaded first
  91. $endif$
  92. $if(fontfamily)$
  93. \usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$}
  94. $else$
  95. \usepackage{lmodern}
  96. $endif$
  97. $if(linestretch)$
  98. \usepackage{setspace}
  99. $endif$
  100. \usepackage{amssymb,amsmath}
  101. \usepackage{ifxetex,ifluatex}
  102. \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
  103. \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
  104. \usepackage[utf8]{inputenc}
  105. \usepackage{textcomp} % provide euro and other symbols
  106. \else % if luatex or xetex
  107. $if(mathspec)$
  108. \ifxetex
  109. \usepackage{mathspec}
  110. \else
  111. \usepackage{unicode-math}
  112. \fi
  113. $else$
  114. \usepackage{unicode-math}
  115. $endif$
  116. \defaultfontfeatures{Scale=MatchLowercase}
  117. \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
  118. $if(mainfont)$
  119. \setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
  120. $endif$
  121. $if(sansfont)$
  122. \setsansfont[$for(sansfontoptions)$$sansfontoptions$$sep$,$endfor$]{$sansfont$}
  123. $endif$
  124. $if(monofont)$
  125. \setmonofont[$for(monofontoptions)$$monofontoptions$$sep$,$endfor$]{$monofont$}
  126. $endif$
  127. $for(fontfamilies)$
  128. \newfontfamily{$fontfamilies.name$}[$for(fontfamilies.options)$$fontfamilies.options$$sep$,$endfor$]{$fontfamilies.font$}
  129. $endfor$
  130. $if(mathfont)$
  131. $if(mathspec)$
  132. \ifxetex
  133. \setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
  134. \else
  135. \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
  136. \fi
  137. $else$
  138. \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
  139. $endif$
  140. $endif$
  141. $if(CJKmainfont)$
  142. \ifxetex
  143. \usepackage{xeCJK}
  144. \setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
  145. \fi
  146. $endif$
  147. $if(luatexjapresetoptions)$
  148. \ifluatex
  149. \usepackage[$for(luatexjapresetoptions)$$luatexjapresetoptions$$sep$,$endfor$]{luatexja-preset}
  150. \fi
  151. $endif$
  152. $if(CJKmainfont)$
  153. \ifluatex
  154. \usepackage[$for(luatexjafontspecoptions)$$luatexjafontspecoptions$$sep$,$endfor$]{luatexja-fontspec}
  155. \setmainjfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
  156. \fi
  157. $endif$
  158. \fi
  159. $if(beamer)$
  160. $if(theme)$
  161. \usetheme[$for(themeoptions)$$themeoptions$$sep$,$endfor$]{$theme$}
  162. $endif$
  163. $if(colortheme)$
  164. \usecolortheme{$colortheme$}
  165. $endif$
  166. $if(fonttheme)$
  167. \usefonttheme{$fonttheme$}
  168. $endif$
  169. $if(mainfont)$
  170. \usefonttheme{serif} % use mainfont rather than sansfont for slide text
  171. $endif$
  172. $if(innertheme)$
  173. \useinnertheme{$innertheme$}
  174. $endif$
  175. $if(outertheme)$
  176. \useoutertheme{$outertheme$}
  177. $endif$
  178. $endif$
  179. % Use upquote if available, for straight quotes in verbatim environments
  180. \IfFileExists{upquote.sty}{\usepackage{upquote}}{}
  181. \IfFileExists{microtype.sty}{% use microtype if available
  182. \usepackage[$for(microtypeoptions)$$microtypeoptions$$sep$,$endfor$]{microtype}
  183. \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
  184. }{}
  185. $if(indent)$
  186. $else$
  187. \makeatletter
  188. \@ifundefined{KOMAClassName}{% if non-KOMA class
  189. \IfFileExists{parskip.sty}{%
  190. \usepackage{parskip}
  191. }{% else
  192. \setlength{\parindent}{0pt}
  193. \setlength{\parskip}{6pt plus 2pt minus 1pt}
  194. }
  195. }{% if KOMA class
  196. \KOMAoptions{parskip=half}}
  197. \makeatother
  198. $endif$
  199. $if(verbatim-in-note)$
  200. \usepackage{fancyvrb}
  201. $endif$
  202. \usepackage{xcolor}
  203. \IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
  204. \urlstyle{same} % disable monospaced font for URLs
  205. $if(verbatim-in-note)$
  206. \VerbatimFootnotes % allow verbatim text in footnotes
  207. $endif$
  208. $if(geometry)$
  209. $if(beamer)$
  210. \geometry{$for(geometry)$$geometry$$sep$,$endfor$}
  211. $else$
  212. \usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
  213. $endif$
  214. $endif$
  215. $if(beamer)$
  216. \newif\ifbibliography
  217. $endif$
  218. $if(listings)$
  219. \usepackage{listings}
  220. \newcommand{\passthrough}[1]{#1}
  221. \lstset{defaultdialect=[5.3]Lua}
  222. \lstset{defaultdialect=[x86masm]Assembler}
  223. $endif$
  224. $if(lhs)$
  225. \lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
  226. $endif$
  227. $if(highlighting-macros)$
  228. $highlighting-macros$
  229. $endif$
  230. $if(tables)$
  231. \usepackage{longtable,booktabs}
  232. $if(beamer)$
  233. \usepackage{caption}
  234. % Make caption package work with longtable
  235. \makeatletter
  236. \def\fnum@table{\tablename~\thetable}
  237. \makeatother
  238. $else$
  239. % Correct order of tables after \paragraph or \subparagraph
  240. \usepackage{etoolbox}
  241. \makeatletter
  242. \patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{}
  243. \makeatother
  244. % Allow footnotes in longtable head/foot
  245. \IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}}
  246. \makesavenoteenv{longtable}
  247. $endif$
  248. $endif$
  249. $if(graphics)$
  250. \usepackage{graphicx}
  251. \makeatletter
  252. \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
  253. \def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
  254. \makeatother
  255. % Scale images if necessary, so that they will not overflow the page
  256. % margins by default, and it is still possible to overwrite the defaults
  257. % using explicit options in \includegraphics[width, height, ...]{}
  258. \setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
  259. % Set default figure placement to htbp
  260. \makeatletter
  261. \def\fps@figure{htbp}
  262. \makeatother
  263. $endif$
  264. $if(links-as-notes)$
  265. % Make links footnotes instead of hotlinks:
  266. \DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}}
  267. $endif$
  268. $if(strikeout)$
  269. \usepackage[normalem]{ulem}
  270. % Avoid problems with \sout in headers with hyperref
  271. \pdfstringdefDisableCommands{\renewcommand{\sout}{}}
  272. $endif$
  273. \setlength{\emergencystretch}{3em} % prevent overfull lines
  274. \providecommand{\tightlist}{%
  275. \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
  276. $if(numbersections)$
  277. \setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$5$endif$}
  278. $else$
  279. \setcounter{secnumdepth}{-\maxdimen} % remove section numbering
  280. $endif$
  281. $if(beamer)$
  282. $else$
  283. $if(block-headings)$
  284. % Make \paragraph and \subparagraph free-standing
  285. \ifx\paragraph\undefined\else
  286. \let\oldparagraph\paragraph
  287. \renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
  288. \fi
  289. \ifx\subparagraph\undefined\else
  290. \let\oldsubparagraph\subparagraph
  291. \renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
  292. \fi
  293. $endif$
  294. $endif$
  295. $if(pagestyle)$
  296. \pagestyle{$pagestyle$}
  297. $endif$
  298. $if(lang)$
  299. \ifxetex
  300. % Load polyglossia as late as possible: uses bidi with RTL langages (e.g. Hebrew, Arabic)
  301. \usepackage{polyglossia}
  302. \setmainlanguage[$for(polyglossia-lang.options)$$polyglossia-lang.options$$sep$,$endfor$]{$polyglossia-lang.name$}
  303. $for(polyglossia-otherlangs)$
  304. \setotherlanguage[$for(polyglossia-otherlangs.options)$$polyglossia-otherlangs.options$$sep$,$endfor$]{$polyglossia-otherlangs.name$}
  305. $endfor$
  306. \else
  307. \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
  308. $if(babel-newcommands)$
  309. $babel-newcommands$
  310. $endif$
  311. \fi
  312. $endif$
  313. \ifluatex
  314. \usepackage{selnolig} % disable illegal ligatures
  315. \fi
  316. $if(dir)$
  317. \ifxetex
  318. % Load bidi as late as possible as it modifies e.g. graphicx
  319. \usepackage{bidi}
  320. \fi
  321. \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
  322. \TeXXeTstate=1
  323. \newcommand{\RL}[1]{\beginR #1\endR}
  324. \newcommand{\LR}[1]{\beginL #1\endL}
  325. \newenvironment{RTL}{\beginR}{\endR}
  326. \newenvironment{LTR}{\beginL}{\endL}
  327. \fi
  328. $endif$
  329. $if(natbib)$
  330. \usepackage[$natbiboptions$]{natbib}
  331. \bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
  332. $endif$
  333. $if(biblatex)$
  334. \usepackage[$if(biblio-style)$style=$biblio-style$,$endif$$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$]{biblatex}
  335. $for(bibliography)$
  336. \addbibresource{$bibliography$}
  337. $endfor$
  338. $endif$
  339. $if(title)$
  340. \title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
  341. $endif$
  342. $if(subtitle)$
  343. $if(beamer)$
  344. $else$
  345. \usepackage{etoolbox}
  346. \makeatletter
  347. \providecommand{\subtitle}[1]{% add subtitle to \maketitle
  348. \apptocmd{\@title}{\par {\large #1 \par}}{}{}
  349. }
  350. \makeatother
  351. $endif$
  352. \subtitle{$subtitle$}
  353. $endif$
  354. \author{$for(author)$$author$$sep$ \and $endfor$}
  355. \date{$date$}
  356. $if(beamer)$
  357. $if(institute)$
  358. \institute{$for(institute)$$institute$$sep$ \and $endfor$}
  359. $endif$
  360. $if(titlegraphic)$
  361. \titlegraphic{\includegraphics{$titlegraphic$}}
  362. $endif$
  363. $if(logo)$
  364. \logo{\includegraphics{$logo$}}
  365. $endif$
  366. $endif$
  367. % Jesus, okay, everything above this comment is default Pandoc LaTeX template. -----
  368. % ----------------------------------------------------------------------------------
  369. % I think I had assumed beamer and LaTex were somehow different templates.
  370. \usepackage{kantlipsum}
  371. \usepackage{abstract}
  372. \renewcommand{\abstractname}{} % clear the title
  373. \renewcommand{\absnamepos}{empty} % originally center
  374. \renewenvironment{abstract}
  375. {{%
  376. \setlength{\leftmargin}{0mm}
  377. \setlength{\rightmargin}{\leftmargin}%
  378. }%
  379. \relax}
  380. {\endlist}
  381. \makeatletter
  382. \def\@maketitle{%
  383. \newpage
  384. % \null
  385. % \vskip 2em%
  386. % \begin{center}%
  387. \let \footnote \thanks
  388. $if(sansitup)$
  389. {\fontsize{14.5}{20}\selectfont\bfseries\sffamily\raggedright \setlength{\parindent}{0pt} \@title \par}%
  390. $else$
  391. {\fontsize{18}{20}\selectfont\raggedright \setlength{\parindent}{0pt} \@title \par}
  392. $endif$
  393. }
  394. %\fi
  395. \makeatother
  396. $if(title)$
  397. \title{$title$$if(subtitle)$: $subtitle$$endif$$if(anonymous)$$else$$if(thanks)$\thanks{$thanks$} $endif$$endif$ }
  398. $endif$
  399. %$if(anonymous)$$else$\author{$for(author)$\Large $author.name$\vspace{0.05in} \newline\normalsize\emph{$author.affiliation$} $sep$ \and $endfor$}$endif$
  400. \date{}
  401. \usepackage{titlesec}
  402. % $if(sansitup)$\sffamily\uppercase$else$$endif$
  403. \titleformat*{\section}{\large\bfseries$if(sansitup)$\sffamily\uppercase$else$$endif$}
  404. \titleformat*{\subsection}{$if(sansitup)$\bfseries\sffamily$else$\normalsize\itshape$endif$} % \small\uppercase
  405. \titleformat*{\subsubsection}{\normalsize\itshape}
  406. \titleformat*{\paragraph}{\normalsize\itshape}
  407. \titleformat*{\subparagraph}{\normalsize\itshape}
  408. % add some other packages ----------
  409. % \usepackage{multicol}
  410. % This should regulate where figures float
  411. % See: https://tex.stackexchange.com/questions/2275/keeping-tables-figures-close-to-where-they-are-mentioned
  412. \usepackage[section]{placeins}
  413. \makeatletter
  414. \@ifpackageloaded{hyperref}{}{%
  415. \ifxetex
  416. \PassOptionsToPackage{hyphens}{url}\usepackage[setpagesize=false, % page size defined by xetex
  417. unicode=false, % unicode breaks when used with xetex
  418. xetex]{hyperref}
  419. \else
  420. \PassOptionsToPackage{hyphens}{url}\usepackage[draft,unicode=true]{hyperref}
  421. \fi
  422. }
  423. \@ifpackageloaded{color}{
  424. \PassOptionsToPackage{usenames,dvipsnames}{color}
  425. }{%
  426. \usepackage[usenames,dvipsnames]{color}
  427. }
  428. \makeatother
  429. \hypersetup{breaklinks=true,
  430. bookmarks=true,
  431. pdfauthor={$if(anonymous)$$else$$for(author)$$author.name$ ($author.affiliation$)$sep$ and $endfor$$endif$},
  432. pdfkeywords = {$if(keywords)$$keywords$$endif$},
  433. pdftitle={$title$$if(subtitle)$: $subtitle$$endif$},
  434. colorlinks=true,
  435. citecolor=$if(citecolor)$$citecolor$$else$blue$endif$,
  436. urlcolor=$if(urlcolor)$$urlcolor$$else$blue$endif$,
  437. linkcolor=$if(linkcolor)$$linkcolor$$else$magenta$endif$,
  438. pdfborder={0 0 0}}
  439. \urlstyle{same} % don't use monospace font for urls
  440. % Add an option for endnotes. -----
  441. $if(endnotes)$
  442. \usepackage{endnotes}
  443. \renewcommand{\enotesize}{\normalsize}
  444. \let\footnote=\endnote
  445. $endif$
  446. $if(appendix)$
  447. \renewcommand*\thetable{$appendixletter$.\arabic{table}}
  448. \renewcommand*\thefigure{$appendixletter$.\arabic{figure}}
  449. $endif$
  450. % This will better treat References as a section when using natbib
  451. % https://tex.stackexchange.com/questions/49962/bibliography-title-fontsize-problem-with-bibtex-and-the-natbib-package
  452. $if(natbib)$
  453. \renewcommand\bibsection{%
  454. \section*{References}%
  455. \markboth{\MakeUppercase{\refname}}{\MakeUppercase{\refname}}%
  456. }%
  457. $else$
  458. $endif$
  459. % set default figure placement to htbp
  460. \makeatletter
  461. \def\fps@figure{htbp}
  462. \makeatother
  463. $for(header-includes)$
  464. $header-includes$
  465. $endfor$
  466. \newtheorem{hypothesis}{Hypothesis}
  467. \begin{document}
  468. % \textsf{\textbf{This is sans-serif bold text.}}
  469. % \textbf{\textsf{This is bold sans-serif text.}}
  470. $if(removetitleabstract)$
  471. $else$
  472. $if(title)$
  473. % \maketitle
  474. {% \usefont{T1}{pnc}{m}{n}
  475. \setlength{\parindent}{0pt}
  476. \thispagestyle{plain}
  477. {%\fontsize{18}{20}\selectfont\raggedright
  478. \maketitle % title \par
  479. }
  480. {
  481. \vskip 13.5pt\relax \normalsize\fontsize{11}{12}
  482. $if(sansitup)$
  483. $if(anonymous)$\hfill $else$$for(author)$\MakeUppercase{\textsf{\large $author.name$}}, \small{$author.affiliation$} $sep$ \par $endfor$ $endif$
  484. $else$
  485. $if(anonymous)$\hfill $else$$for(author)$\MakeUppercase{$author.name$}, \small{$author.affiliation$} $sep$ \par \vskip -3.5pt $endfor$ $endif$
  486. $endif$
  487. }
  488. }
  489. $endif$
  490. $if(abstract)$
  491. \begin{abstract}
  492. % \hbox{\vrule height .2pt width 39.14pc}
  493. \vskip 8.5pt % \small
  494. \noindent \small{$abstract$}
  495. $if(keywords)$
  496. \vskip 8.5pt \noindent \emph{Keywords}: $keywords$ \par
  497. % \hbox{\vrule height .2pt width 39.14pc}
  498. $else$
  499. % \hbox{\vrule height .2pt width 39.14pc}
  500. $endif$
  501. \end{abstract}
  502. $endif$
  503. \vskip -8.5pt
  504. $if(toc)$
  505. {
  506. \hypersetup{linkcolor=black}
  507. \setcounter{tocdepth}{$toc-depth$}
  508. \tableofcontents
  509. }
  510. $endif$
  511. $endif$ % removetitleabstract
  512. $for(include-before)$
  513. $include-before$
  514. $endfor$
  515. $if(toc)$
  516. $if(toc-title)$
  517. \renewcommand*\contentsname{$toc-title$}
  518. $endif$
  519. $if(beamer)$
  520. \begin{frame}[allowframebreaks]
  521. $if(toc-title)$
  522. \frametitle{$toc-title$}
  523. $endif$
  524. \tableofcontents[hideallsubsections]
  525. \end{frame}
  526. $else$
  527. {
  528. $if(colorlinks)$
  529. \hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$$endif$}
  530. $endif$
  531. \setcounter{tocdepth}{$toc-depth$}
  532. \tableofcontents
  533. }
  534. $endif$
  535. $endif$
  536. $if(lot)$
  537. \listoftables
  538. $endif$
  539. $if(lof)$
  540. \listoffigures
  541. $endif$
  542. $if(linestretch)$
  543. \setstretch{$linestretch$}
  544. $endif$
  545. $if(has-frontmatter)$
  546. \mainmatter
  547. $endif$
  548. $if(pandocparas)$
  549. $else$
  550. \setlength{\parindent}{16pt}
  551. \setlength{\parskip}{0pt}
  552. $endif$
  553. $body$
  554. $if(has-frontmatter)$
  555. \backmatter
  556. $endif$
  557. $if(natbib)$
  558. $if(bibliography)$
  559. $if(biblio-title)$
  560. $if(has-chapters)$
  561. \renewcommand\bibname{$biblio-title$}
  562. $else$
  563. \renewcommand\refname{$biblio-title$}
  564. $endif$
  565. $endif$
  566. $if(beamer)$
  567. \begin{frame}[allowframebreaks]{$biblio-title$}
  568. \bibliographytrue
  569. $endif$
  570. \bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
  571. $if(beamer)$
  572. \end{frame}
  573. $endif$
  574. $endif$
  575. $endif$
  576. $if(biblatex)$
  577. $if(beamer)$
  578. \begin{frame}[allowframebreaks]{$biblio-title$}
  579. \bibliographytrue
  580. \printbibliography[heading=none]
  581. \end{frame}
  582. $else$
  583. \printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
  584. $endif$
  585. $endif$
  586. $for(include-after)$
  587. $include-after$
  588. $endfor$
  589. \end{document}