-
Notifications
You must be signed in to change notification settings - Fork 4
/
Vorlage-MI-Produkt.tex
123 lines (103 loc) · 4.66 KB
/
Vorlage-MI-Produkt.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
% Dokumentinformationen
% Vorlage erstellt von Luca Mazzoleni aufbaudend auf der Vorlage von Stefan Reinli.
% https://github.com/HSR-Stud/Vorlage-MI-Bericht-Produkt
%Beim Wechsel auf eine Zweiseitige Vorlage:
% - Documentclass onside mit twoside ersetzen.
%Margins rechts:
% - Bei newgeometry reversemarginpar entfernen
% - Grösse left, right vertauschen
% - (bindingoffset = 0mm)
% !TeX program = pdflatex
% !TeX encoding = utf8
% !TeX spellcheck = de_DE
% !BIB program = bibtex
\documentclass[
11pt,
final,
oneside,
a4paper]{article}
%%%%
% Document information ===============================================
\newcommand*{\Title} {Werkzeugk\"asten \\Technische Berichte 1}
\newcommand*{\TitleInfo} {Untertitel FS 2017}
\newcommand*{\AuthorOne} {Hans Muster1}
\newcommand*{\MatrikelOne} {12345678}
\newcommand*{\AuthorTwo} {Hans Muster2}
\newcommand*{\MatrikelTwo} {12345678}
\newcommand*{\Author} {\AuthorOne, \AuthorTwo}
\newcommand*{\Prof} {Name des Dozenten}
\newcommand*{\Modul} {Name des Moduls}
\newcommand*{\Betreuer} {Name des Betreuers}
\newcommand*{\Version} {1.0}
\newcommand*{\ErstellDatum} {26. Februar 2018}
\newcommand*{\Place} {Ort}
\newcommand*{\LogoHSR} {\includegraphics[height = 1cm]{header/hsrlogo}}
\newcommand*{\LogoCompany} {\includegraphics[height = 1cm]{header/logo}}
\newcommand*{\Print} {false} % true for black links (print version), false for color links (pdf version)
%==== Header ====
\include{header/header}
%\include{header/codelayout} %Einkommentieren wenn Layouts für Codes gebraucht werden.
%================
%\includeonly{ sections/bsp,
% sections/Einleitung
% }
\setcounter{secnumdepth}{4}
% tcolorbox setup
\tcbset{width=(\linewidth-1mm)/2,before=,after=\hfill,arc=0mm,
colframe=red!50!black,colback=white,colback = red!10}
%\newcommand{\hsp}{\hspace{20pt}}
%\titleformat{\section}[hang]{\Huge\bfseries}{\thesection\hsp\textcolor{gray80}{|}\hsp}{0pt}{\Huge\bfseries}
%\titleformat{\subsection}[hang]{\huge\bfseries}{\thesubsection\hsp\textcolor{gray60}{|}\hsp}{0pt}{\Large\bfseries}
%\titleformat{\subsubsection}[hang]{\Large\bfseries}{\thesubsubsection\hsp\textcolor{gray40}{|}\hsp}{0pt}{\large\bfseries}
%\titleformat{\paragraph}[hang]{\large\bfseries}{\theparagraph\hsp\textcolor{gray20}{|}\hsp}{0pt}{\large\bfseries}
\newcommand{\hsp}{\hspace{20pt}}
\titleformat{\section}[hang]{\Huge\bfseries}{\thesection\hsp}{0pt}{\Huge\bfseries}[{\vspace{-0.1cm}\titlerule[0.8pt]}\vspace{0.1cm}]
\titleformat{\subsection}[hang]{\huge\bfseries}{\thesubsection\hsp}{0pt}{\Large\bfseries}[{\vspace{-0.1cm}\titlerule[0.8pt]}\vspace{0.1cm}]
\titleformat{\subsubsection}[hang]{\Large\bfseries}{\thesubsubsection\hsp}{0pt}{\large\bfseries}[{\vspace{-0.1cm}\titlerule[0.8pt]}\vspace{0.1cm}]
\titleformat{\paragraph}[hang]{\large\bfseries}{\theparagraph\hsp}{0pt}{\large\bfseries}[{\vspace{-0.1cm}\titlerule[0.8pt]}\vspace{0.1cm}]
% fontstyle
%\renewcommand\familydefault{\sfdefault} % Arial
% Document ================================================================
%==========================================================================
\begin{document}
\pagenumbering{Roman}
\thispagestyle{empty}
\include{sections/titlepage}
\clearpage \pagebreak
\thispagestyle{empty}
\listoftodos %In der finalen Version auskommentieren.
\cleardoublepage \pagebreak
\pagenumbering{arabic}
\setcounter{page}{1}
\thispagestyle{empty}
\newgeometry{left=4.5cm,right=1.5cm,top=1cm,bottom=1cm,headsep=1.5cm, marginparwidth=30mm,marginparsep=3mm,includeheadfoot,reversemarginpar,bindingoffset=0mm}
\savegeometry{margin}
\thispagestyle{empty}
\include{sections/Abstract}
\newgeometry{left=2.5cm,right=1.5cm,top=1cm,bottom=1cm,headsep=1.5cm, marginparwidth=0mm,marginparsep=0mm,includeheadfoot,reversemarginpar,bindingoffset=0mm} %Seitenränder Dokument ohne Titelblatt und Abstract
\savegeometry{no-margin}
\input{sections/Anderungsnachweis}
% \cleardoublepage
\vspace{1cm}
\begin{spacing}{1}
\startcontents[sections]
\printcontents[sections]{l}{1}{\setcounter{tocdepth}{4}\section*{Inhaltsverzeichnis}}
\end{spacing}
\cleardoublepage
\loadgeometry{margin}
\include{sections/Aufgabenstellung}
% \cleardoublepage
\include{sections/bsp}
\include{sections/Einleitung}
\include{sections/KlarenAufgabenstellung}
\include{sections/Konzipieren}
\include{sections/Entwerfen}
\include{sections/Ausarbeiten}
\include{sections/Schlussfolgerung}
\loadgeometry{no-margin}
\include{sections/Eigenstaendigkeitserklaerung}
\include{sections/Verzeichnisse}
\pagestyle{appendix}
\include{sections/Anhang}
\cleardoublepage
\end{document}