This repository was archived by the owner on Dec 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharticle.tex
167 lines (117 loc) · 3.68 KB
/
article.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
\documentclass[$if(fontsize)$$fontsize$$endif$, a4paper]{article}
\usepackage[hcentering $if(geometry)$,$geometry$$endif$]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage{amsmath, amssymb, amsfonts}
\usepackage{graphicx}
\usepackage[colorlinks=true,urlcolor=blue,linkcolor=black,citecolor=black]{hyperref}
\usepackage{bookmark}
\usepackage{comment}
\begin{comment}
This should be your YAML header:
---
fontsize: 12pt
geometry: margin = 2cm, bottom = 3.5cm
linespace: onehalfspacing #singlespacing, onehalfspacing, doublespacing
title: Titel
subtitle: Subtitel
author: Thomas
date: #no date = input systemdate automatically
info: FB03 - Sozialwissenschaften
infoo: Matrikelnummer - XXXXXXX
infooo: Seminar
titlepage: false
toc: false
---
\end{comment}
% linespacing can be singlespacing, onehalfspacing, doublespacing --------------
$if(linespace)$
\usepackage[$linespace$]{setspace}
$endif$
% Für Zitationen aus einer Githubdiskussion kopiert ----------------------------------
$if(csl-refs)$
\newlength{\cslhangindent}
\setlength{\cslhangindent}{1.5em}
\newlength{\csllabelwidth}
\setlength{\csllabelwidth}{3em}
\newenvironment{CSLReferences}[2] % #1 hanging-ident, #2 entry spacing
{% don't indent paragraphs
\setlength{\parindent}{0pt}
% turn on hanging indent if param 1 is 1
\ifodd #1 \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces\fi
% set entry spacing
\ifnum #2 > 0
\setlength{\parskip}{#2\baselineskip}
\fi
}%
{}
\usepackage{calc} % for \widthof, \maxof
\newcommand{\CSLBlock}[1]{#1\hfill\break}
\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\maxof{\widthof{#1}}{\csllabelwidth}}{#1}}
\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth}{#1}}
\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
$endif$
% Für Tabellen aus pandoc default.tex template ---------------------------------
$if(tables)$
\usepackage{longtable,booktabs,array}
$if(multirow)$
\usepackage{multirow}
$endif$
\usepackage{calc}
$if(beamer)$
\usepackage{caption}
\makeatletter
\def\fnum@table{\tablename~\thetable}
\makeatother
$else$
\usepackage{etoolbox}
\makeatletter
\patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{}
\makeatother
\IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}}
\makesavenoteenv{longtable}
$endif$
$endif$
% Für Aufzählungen und Auflistungen aus pandoc-default.tex template ------------
$if(listings)$
\usepackage{listings}
\newcommand{\passthrough}[1]{#1}
\lstset{defaultdialect=[5.3]Lua}
\lstset{defaultdialect=[x86masm]Assembler}
$endif$
\setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
$if(numbersections)$
\setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$5$endif$}
$else$
\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
$endif$
%-------------------------------------------------------------------------------
%-------------------------------------------------------------------------------
\begin{document}
\begin{titlepage}
$if(title)$\title{$title$\\$if(subtitle)$\textit{$subtitle$}$endif$}$endif$
$if(author)$\author{\underline{\textbf{$author$}}}$endif$
\date{\parbox{\linewidth}{\centering%
$if(date)$$date$$else$\today$endif$\endgraf\bigskip
$if(info)$$info$$endif$ \hspace*{3cm} $if(infoo)$$infoo$$endif$ \endgraf\medskip\vspace{0,5cm}
$if(infooo)$$infooo$$endif$\endgraf
}}
$if(titlepage)$
\maketitle
$endif$
\thispagestyle{empty}
\end{titlepage}
$if(toc)$
\newpage
\tableofcontents
\thispagestyle{empty}
$endif$
\newpage
\setcounter{page}{1}
$body$
\newpage
\bibliography{/home/thomas/Zotero/Meine Bibliothek.bib}
\end{document}