diff options
| author | Paul Jungeblut <paul.jungeblut@gmail.com> | 2016-10-05 23:56:16 +0200 |
|---|---|---|
| committer | Paul Jungeblut <paul.jungeblut@gmail.com> | 2016-10-05 23:56:16 +0200 |
| commit | b585d932530f755e80829bfc5d28d97b5afe1e15 (patch) | |
| tree | d31a09d47ad83ccc22bb884a5841ee08ed97f93d | |
| parent | 691fdec875864a589bc57aadca25a98cc8fd9ab8 (diff) | |
Restructuring main latex file.
| -rw-r--r-- | latexHeaders/layout.tex | 32 | ||||
| -rw-r--r-- | latexHeaders/listings.tex | 44 | ||||
| -rw-r--r-- | latexHeaders/math.tex | 58 | ||||
| -rw-r--r-- | tcr.pdf | bin | 265366 -> 265366 bytes | |||
| -rw-r--r-- | tcr.tex | 140 |
5 files changed, 139 insertions, 135 deletions
diff --git a/latexHeaders/layout.tex b/latexHeaders/layout.tex new file mode 100644 index 0000000..d2e9fed --- /dev/null +++ b/latexHeaders/layout.tex @@ -0,0 +1,32 @@ +% Don't waste space at the page borders. Use two column layout. +\usepackage[ + top=2cm, + bottom=1cm, + left=1cm, + right=1cm, + landscape +]{geometry} + + +% Headline and bottomline. +\usepackage{scrpage2} +\pagestyle{scrheadings} +\clearscrheadfoot +\ihead{\university} +\chead{\teamname} +\ohead{\pagemark} + +% Shift the title up to waste less space. +\usepackage{titling} +\setlength{\droptitle}{-8em} + +% Nice enumerations without wasting space above and below. +\usepackage{enumitem} +\setlist{nosep} + +% Multicol layout for the table of contents. +\usepackage{multicol} +\usepackage{multirow} + +% Automatically have table fill horizontal space. +\usepackage{tabularx} diff --git a/latexHeaders/listings.tex b/latexHeaders/listings.tex new file mode 100644 index 0000000..02b34bd --- /dev/null +++ b/latexHeaders/listings.tex @@ -0,0 +1,44 @@ +% Colors, used for syntax highlighting. +% To print this document, set all colors to black! +\usepackage{xcolor} +\definecolor{keyword}{rgb}{0, 0, 1} +\definecolor{string}{rgb}{1, 0, 0} +\definecolor{comment}{rgb}{0.2, 0.6, 0.2} +\definecolor{identifier}{rgb}{0, 0, 0} + +% Source code listings. +\usepackage{pxfonts} +\usepackage{listings} +\lstset{ + language={C++}, + numbers=left, + stepnumber=1, + numbersep=6pt, + numberstyle=\footnotesize, + breaklines=true, + breakautoindent=true, + breakatwhitespace=false, + postbreak=\space, + tabsize=2, + basicstyle=\ttfamily\footnotesize, + showspaces=false, + showstringspaces=false, + extendedchars=true, + keywordstyle=\color{keyword}\bfseries, + stringstyle=\color{string}\bfseries, + commentstyle=\color{comment}\bfseries, + identifierstyle=\color{identifier}, + frame=trbl +} + +% Listings doesn't support UTF8. This is just enough for German umlauts. +\lstset{literate=% + {Ö}{{\"O}}1 + {Ä}{{\"A}}1 + {Ü}{{\"U}}1 + {ß}{{\ss}}1 + {ü}{{\"u}}1 + {ä}{{\"a}}1 + {ö}{{\"o}}1 + {~}{{\textasciitilde}}1 +} diff --git a/latexHeaders/math.tex b/latexHeaders/math.tex new file mode 100644 index 0000000..5d75f58 --- /dev/null +++ b/latexHeaders/math.tex @@ -0,0 +1,58 @@ +% Display math. +\usepackage{amsmath} +\usepackage{mathtools} +\usepackage{amssymb} + +% New enviroment for remarks. +\newtheorem{bem}{Bemerkung} + +% New commands for math operators. +% Binomial coefficients. +\renewcommand{\binom}[2]{ + \biggl( + \begin{matrix} + #1 \\ + #2 + \end{matrix} + \biggr) +} +% Euler numbers, first kind. +\newcommand{\eulerI}[2]{ + \biggl\langle + \begin{matrix} + #1 \\ + #2 + \end{matrix} + \biggr\rangle +} +% Euler numbers, second kind. +\newcommand{\eulerII}[2]{ + \biggl\langle + \negthinspace + \biggl\langle + \begin{matrix} + #1 \\ + #2 + \end{matrix} + \biggr\rangle + \negthinspace + \biggr\rangle +} +% Stirling numbers, first kind. +\newcommand{\stirlingI}[2]{ + \biggl[ + \begin{matrix} + #1 \\ + #2 + \end{matrix} + \biggr] +} +% Stirling numbers, second kind. +\newcommand{\stirlingII}[2]{ + \biggl\{ + \begin{matrix} + #1 \\ + #2 + \end{matrix} + \biggr\} +} Binary files differ@@ -9,140 +9,10 @@ \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} -% Display math. -\usepackage{amsmath} -\usepackage{mathtools} -\usepackage{amssymb} - -% Nice enumerations without wasting space above and below. -\usepackage{enumitem} -\setlist{nosep} - -% Headline and bottomline. -\usepackage{scrpage2} -\pagestyle{scrheadings} -\clearscrheadfoot -\ihead{\university} -\chead{\teamname} -\ohead{\pagemark} - -% Colors, used for syntax highlighting. -% To print this document, set all colors to black! -\usepackage{xcolor} -\definecolor{keyword}{rgb}{0, 0, 1} -\definecolor{string}{rgb}{1, 0, 0} -\definecolor{comment}{rgb}{0.2, 0.6, 0.2} -\definecolor{identifier}{rgb}{0, 0, 0} - -% Source code listings. -\usepackage{pxfonts} -\usepackage{listings} -\lstset{ - language={C++}, - numbers=left, - stepnumber=1, - numbersep=6pt, - numberstyle=\footnotesize, - breaklines=true, - breakautoindent=true, - breakatwhitespace=false, - postbreak=\space, - tabsize=2, - basicstyle=\ttfamily\footnotesize, - showspaces=false, - showstringspaces=false, - extendedchars=true, - keywordstyle=\color{keyword}\bfseries, - stringstyle=\color{string}\bfseries, - commentstyle=\color{comment}\bfseries, - identifierstyle=\color{identifier}, - frame=trbl -} -% Listings doesn't support UTF8. This is just enough for German umlauts. -\lstset{literate=% - {Ö}{{\"O}}1 - {Ä}{{\"A}}1 - {Ü}{{\"U}}1 - {ß}{{\ss}}1 - {ü}{{\"u}}1 - {ä}{{\"a}}1 - {ö}{{\"o}}1 - {~}{{\textasciitilde}}1 -} - -% Don't waste space at the page borders. Use two column layout. -\usepackage[ - top=2cm, - bottom=1cm, - left=1cm, - right=1cm, - landscape -]{geometry} - -% Multicol layout for the table of contents. -\usepackage{multicol} -\usepackage{multirow} - -% Automatically have table fill horizontal space. -\usepackage{tabularx} - -% New enviroment for remarks. -\newtheorem{bem}{Bemerkung} - -% New commands for math operators. -% Binomial coefficients. -\renewcommand{\binom}[2]{ - \biggl( - \begin{matrix} - #1 \\ - #2 - \end{matrix} - \biggr) -} -% Euler numbers, first kind. -\newcommand{\eulerI}[2]{ - \biggl\langle - \begin{matrix} - #1 \\ - #2 - \end{matrix} - \biggr\rangle -} -% Euler numbers, second kind. -\newcommand{\eulerII}[2]{ - \biggl\langle - \negthinspace - \biggl\langle - \begin{matrix} - #1 \\ - #2 - \end{matrix} - \biggr\rangle - \negthinspace - \biggr\rangle -} -% Stirling numbers, first kind. -\newcommand{\stirlingI}[2]{ - \biggl[ - \begin{matrix} - #1 \\ - #2 - \end{matrix} - \biggr] -} -% Stirling numbers, second kind. -\newcommand{\stirlingII}[2]{ - \biggl\{ - \begin{matrix} - #1 \\ - #2 - \end{matrix} - \biggr\} -} - -% Shift the title up to waste less space. -\usepackage{titling} -\setlength{\droptitle}{-8em} +% Include headers. +\input{latexHeaders/layout} +\input{latexHeaders/math} +\input{latexHeaders/listings} % Title and author information. \title{Team Contest Reference} @@ -168,4 +38,4 @@ \input{sonstiges/sonstiges} \end{multicols} -\end{document}
\ No newline at end of file +\end{document} |
