|
1 | 1 | % Options for packages loaded elsewhere |
2 | 2 | \PassOptionsToPackage{unicode,linktoc=all,hidelinks}{hyperref} |
3 | 3 | \PassOptionsToPackage{hyphens}{url} |
4 | | -\PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor} |
| 4 | +\PassOptionsToPackage{dvipsnames,svgnames,x11names}{xcolor} |
5 | 5 | % |
6 | 6 | \documentclass[ |
7 | 7 | 12pt, |
|
17 | 17 | headings=optiontohead, |
18 | 18 | svgnames, |
19 | 19 | dvipsnames]{scrreprt} |
20 | | -\usepackage{amsmath} |
21 | | -\usepackage{ifxetex,ifluatex} |
22 | | -\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex |
| 20 | +\title{Technical Documents} |
| 21 | +\usepackage{etoolbox} |
| 22 | +\makeatletter |
| 23 | +\providecommand{\subtitle}[1]{% add subtitle to \maketitle |
| 24 | + \apptocmd{\@title}{\par {\large #1 \par}}{}{} |
| 25 | +} |
| 26 | +\makeatother |
| 27 | +\subtitle{Demonstrating the Power of Markdown with Pandoc} |
| 28 | +\author{Gabriel Nützi \and The Community} |
| 29 | +\date{2. December 2020} |
| 30 | + |
| 31 | +\usepackage{amsmath,amssymb} |
| 32 | +\usepackage{lmodern} |
| 33 | +\usepackage{iftex} |
| 34 | +\ifPDFTeX |
23 | 35 | \usepackage[T1]{fontenc} |
24 | 36 | \usepackage[utf8]{inputenc} |
25 | 37 | \usepackage{textcomp} % provide euro and other symbols |
26 | | - \usepackage{amssymb} |
27 | 38 | \else % if luatex or xetex |
28 | 39 | \usepackage{unicode-math} |
29 | 40 | \defaultfontfeatures{Scale=MatchLowercase} |
|
33 | 44 | \setmonofont[]{Latin Modern Mono} |
34 | 45 | \setmathfont[]{Latin Modern Math} |
35 | 46 | \fi |
| 47 | +% Use upquote if available, for straight quotes in verbatim environments |
36 | 48 | \IfFileExists{upquote.sty}{\usepackage{upquote}}{} |
37 | 49 | \IfFileExists{microtype.sty}{% use microtype if available |
38 | 50 | \usepackage[]{microtype} |
|
56 | 68 | pdfauthor={Gabriel Nützi; The Community}, |
57 | 69 | pdflang={en-GB}, |
58 | 70 | colorlinks=true, |
59 | | - linkcolor=DarkBlue, |
60 | | - filecolor=DarkBlue, |
61 | | - citecolor=DarkBlue, |
62 | | - urlcolor=MediumBlue, |
| 71 | + linkcolor={DarkBlue}, |
| 72 | + filecolor={DarkBlue}, |
| 73 | + citecolor={DarkBlue}, |
| 74 | + urlcolor={MediumBlue}, |
63 | 75 | pdfcreator={LaTeX via pandoc}} |
64 | 76 | \urlstyle{same} % disable monospaced font for URLs |
65 | 77 | \usepackage{color} |
|
100 | 112 | \newcommand{\VariableTok}[1]{\textcolor[rgb]{0.10,0.09,0.49}{#1}} |
101 | 113 | \newcommand{\VerbatimStringTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{#1}} |
102 | 114 | \newcommand{\WarningTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{#1}}}} |
103 | | -\usepackage{longtable,booktabs} |
| 115 | +\usepackage{longtable,booktabs,array} |
104 | 116 | \usepackage{calc} % for calculating minipage widths |
105 | 117 | % Correct order of tables after \paragraph or \subparagraph |
106 | 118 | \usepackage{etoolbox} |
|
114 | 126 | \providecommand{\tightlist}{% |
115 | 127 | \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} |
116 | 128 | \setcounter{secnumdepth}{3} |
| 129 | +\newlength{\cslhangindent} |
| 130 | +\setlength{\cslhangindent}{1.5em} |
| 131 | +\newlength{\csllabelwidth} |
| 132 | +\setlength{\csllabelwidth}{3em} |
| 133 | +\newlength{\cslentryspacingunit} % times entry-spacing |
| 134 | +\setlength{\cslentryspacingunit}{\parskip} |
| 135 | +\newenvironment{CSLReferences}[2] % #1 hanging-ident, #2 entry spacing |
| 136 | + {% don't indent paragraphs |
| 137 | + \setlength{\parindent}{0pt} |
| 138 | + % turn on hanging indent if param 1 is 1 |
| 139 | + \ifodd #1 |
| 140 | + \let\oldpar\par |
| 141 | + \def\par{\hangindent=\cslhangindent\oldpar} |
| 142 | + \fi |
| 143 | + % set entry spacing |
| 144 | + \setlength{\parskip}{#2\cslentryspacingunit} |
| 145 | + }% |
| 146 | + {} |
| 147 | +\usepackage{calc} |
| 148 | +\newcommand{\CSLBlock}[1]{#1\hfill\break} |
| 149 | +\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}} |
| 150 | +\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}\break} |
| 151 | +\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1} |
117 | 152 | % Set include paths |
118 | 153 | \makeatletter |
119 | 154 | \providecommand*{\input@path}{} |
|
375 | 410 | % General Settings |
376 | 411 | \KOMAoptions{cleardoublepage=empty} |
377 | 412 | \raggedbottom |
378 | | -\ifxetex |
| 413 | +\ifXeTeX |
379 | 414 | % Load polyglossia as late as possible: uses bidi with RTL langages (e.g. Hebrew, Arabic) |
380 | 415 | \usepackage{polyglossia} |
381 | 416 | \setmainlanguage[variant=british]{english} |
382 | 417 | \else |
383 | | - \usepackage[shorthands=off,main=british]{babel} |
| 418 | + \usepackage[main=british]{babel} |
| 419 | +% get rid of language-specific shorthands (see #6817): |
| 420 | +\let\LanguageShortHands\languageshorthands |
| 421 | +\def\languageshorthands#1{} |
384 | 422 | \fi |
385 | | -\ifluatex |
| 423 | +\ifLuaTeX |
386 | 424 | \usepackage{selnolig} % disable illegal ligatures |
387 | 425 | \fi |
388 | | -\newlength{\cslhangindent} |
389 | | -\setlength{\cslhangindent}{1.5em} |
390 | | -\newlength{\csllabelwidth} |
391 | | -\setlength{\csllabelwidth}{3em} |
392 | | -\newenvironment{CSLReferences}[2] % #1 hanging-ident, #2 entry spacing |
393 | | - {% don't indent paragraphs |
394 | | - \setlength{\parindent}{0pt} |
395 | | - % turn on hanging indent if param 1 is 1 |
396 | | - \ifodd #1 \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces\fi |
397 | | - % set entry spacing |
398 | | - \ifnum #2 > 0 |
399 | | - \setlength{\parskip}{#2\baselineskip} |
400 | | - \fi |
401 | | - }% |
402 | | - {} |
403 | | -\usepackage{calc} |
404 | | -\newcommand{\CSLBlock}[1]{#1\hfill\break} |
405 | | -\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}} |
406 | | -\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}\break} |
407 | | -\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1} |
408 | | - |
409 | | -\title{Technical Documents} |
410 | | -\usepackage{etoolbox} |
411 | | -\makeatletter |
412 | | -\providecommand{\subtitle}[1]{% add subtitle to \maketitle |
413 | | - \apptocmd{\@title}{\par {\large #1 \par}}{}{} |
414 | | -} |
415 | | -\makeatother |
416 | | -\subtitle{Demonstrating the Power of Markdown with Pandoc} |
417 | | -\author{Gabriel Nützi \and The Community} |
418 | | -\date{2. December 2020} |
419 | 426 |
|
420 | 427 | \begin{document} |
421 | | -\begin{titlepage} |
422 | | -\makeatletter |
423 | | -\begin{center} |
424 | | -\includesvg[inkscapearea=page,width=0.5\textwidth]{files/Logo.svg} |
425 | | -\end{center} |
426 | | -\vspace{1cm} |
427 | | -\begin{center} |
428 | | -\Huge \textbf{\@title} |
429 | | -\end{center} |
430 | | -\begin{center} |
431 | | -\LARGE Demonstrating the Power of Markdown with Pandoc |
432 | | -\end{center} |
433 | | -\vspace{1cm} |
434 | | -\begin{center} |
435 | | -\textbf{Gabriel Nützi} \\ \& \\ \textbf{The Community} |
436 | | -\end{center} |
437 | | -\begin{center} |
438 | | -\@date |
439 | | -\end{center} |
440 | | -\begin{center} |
441 | | -\vfill |
442 | | -Zürich, Switzerland |
443 | | -\vspace{1cm} |
444 | | -\end{center} |
445 | | -\makeatother |
446 | | -\end{titlepage} |
| 428 | +\maketitle |
447 | 429 | \begin{abstract} |
448 | 430 | This is a setup demonstrating the power and use of markdown for |
449 | 431 | technical documents by using a fully automated conversion sequence with |
@@ -1027,7 +1009,7 @@ \chapter*{References}\label{references}} |
1027 | 1009 | \leavevmode\vadjust pre{\hypertarget{ref-nuetzig_thesis_2016}{}}% |
1028 | 1010 | \CSLLeftMargin{{[}1{]} } |
1029 | 1011 | \CSLRightInline{G. Nützi, {‘Non-smooth granular rigid body dynamics with |
1030 | | -applications to chute flows,’} PhD thesis, ETH Zurich; ETH Zürich, |
| 1012 | +applications to chute flows’}, PhD thesis, ETH Zurich; ETH Zürich, |
1031 | 1013 | Zürich, 2016. } |
1032 | 1014 |
|
1033 | 1015 | \leavevmode\vadjust pre{\hypertarget{ref-rockafellar_convex_2015}{}}% |
|
0 commit comments