dotfiles/pandoc/.pandoc/templates/assignment.latex

131 lines
2.5 KiB
Plaintext
Raw Normal View History

2019-05-11 03:40:12 +02:00
\documentclass[12pt]{article}
2019-05-11 03:40:12 +02:00
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amssymb}
2019-05-11 03:40:12 +02:00
\usepackage[utf8]{inputenc}
2019-05-11 03:40:12 +02:00
\usepackage{tikz}
\usepackage{graphicx}
2019-05-11 03:40:12 +02:00
\usepackage[scaled=.95]{helvet}
\usepackage{courier}
2019-05-11 03:40:12 +02:00
\usepackage{longtable}
\usepackage{booktabs}
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
2019-05-11 03:40:12 +02:00
\usepackage[english]{babel}
\usepackage{geometry}
\geometry{verbose,a4paper,tmargin=1.5cm,bmargin=1.5cm,lmargin=1.5cm,rmargin=1.5cm}
\setlength{\parindent}{0pt}
2019-05-11 03:40:12 +02:00
\setlength{\parskip}{6pt plus 2pt minus 1pt}
\pagestyle{empty}
$if(verbatim-in-note)$
\usepackage{fancyvrb}
$endif$
$if(fancy-enums)$
% -- Redefine labelwidth for lists; otherwise, the enumerate package will cause
% -- markers to extend beyond the left margin.
\makeatletter\AtBeginDocument{%
\renewcommand{\@listi}
{\setlength{\labelwidth}{4em}}
}\makeatother
\usepackage{enumerate}
$endif$
$if(tables)$
\usepackage{array}
% -- This is needed because raggedright in table elements redefines \\:
\newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp}
\let\PBS=\PreserveBackslash
$endif$
% Redefine \includegraphics so that, unless explicit options are
% given, the image width will not exceed the width or the height of the page.
% Images get their normal width if they fit onto the page, but
% are scaled down if they would overflow the margins.
\makeatletter
2019-05-11 03:40:12 +02:00
\def\ScaleWidthIfNeeded{%
\ifdim\Gin@nat@width>\linewidth
\linewidth
\else
\Gin@nat@width
\fi
}
\def\ScaleHeightIfNeeded{%
\ifdim\Gin@nat@height>0.9\textheight
0.9\textheight
\else
\Gin@nat@width
\fi
}
\makeatother
2019-05-11 03:40:12 +02:00
\setkeys{Gin}{width=\ScaleWidthIfNeeded,height=\ScaleHeightIfNeeded,keepaspectratio}%
$if(subscript)$
\newcommand{\textsubscr}[1]{\ensuremath{_{\scriptsize\textrm{#1}}}}
$endif$
\usepackage[breaklinks=true]{hyperref}
\hypersetup{colorlinks,%
citecolor=blue,%
filecolor=blue,%
linkcolor=blue,%
urlcolor=blue}
$if(url)$
\usepackage{url}
$endif$
$if(numbersections)$
$else$
\setcounter{secnumdepth}{0}
$endif$
$if(verbatim-in-note)$
\VerbatimFootnotes % -- allows verbatim text in footnotes
$endif$
$for(header-includes)$
$header-includes$
$endfor$
\begin{document}
2019-05-11 03:40:12 +02:00
$if(title)$
\textsc{$title$ \hfill {$for(author)$$author$$sep$\\$endfor$} \\ \hfill {$date$}}
2019-05-11 03:40:12 +02:00
\rule{\linewidth}{0.4pt}
$endif$
$if(toc)$
\tableofcontents
$endif$
$if(alignment)$
\begin{$alignment$}
$endif$
$body$
%$if(alignment)$
\end{$alignment$}
$endif$
\end{document}