Skip to content

Commit

Permalink
Onepage Layout mit Margins links
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Mazzoleni committed Sep 18, 2018
1 parent 998b6d2 commit c6b5c26
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
30 changes: 22 additions & 8 deletions Vorlage-MI-Produkt.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
% 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
Expand All @@ -10,12 +18,12 @@
\documentclass[
11pt,
final,
twoside,
oneside,
a4paper]{article}
%%%%

% Document information ===============================================
\newcommand*{\Title} {Hier k\"ommt der\\ Titel der Arbeit}
\newcommand*{\Title} {Werkzeugk\"asten \\Technische Berichte 1}
\newcommand*{\TitleInfo} {Untertitel FS 2017}
\newcommand*{\AuthorOne} {Hans Muster1}
\newcommand*{\MatrikelOne} {12345678}
Expand Down Expand Up @@ -43,11 +51,17 @@
\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\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}
\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
Expand All @@ -69,7 +83,7 @@
\setcounter{page}{1}
\thispagestyle{empty}

\newgeometry{left=2cm,right=4cm,top=1cm,bottom=1cm,headsep=1.5cm, marginparwidth=30mm,marginparsep=3mm,includeheadfoot}
\newgeometry{left=4cm,right=2cm,top=1cm,bottom=1cm,headsep=1.5cm, marginparwidth=30mm,marginparsep=3mm,includeheadfoot,reversemarginpar,bindingoffset=2mm}
\thispagestyle{empty}
\input{sections/Abstract}
\clearpage
Expand All @@ -87,7 +101,7 @@



\newgeometry{left=2cm,right=4cm,top=1cm,bottom=1cm,headsep=1.5cm, marginparwidth=30mm,marginparsep=3mm,includeheadfoot}
\newgeometry{left=4cm,right=2cm,top=1cm,bottom=1cm,headsep=1.5cm, marginparwidth=30mm,marginparsep=3mm,includeheadfoot,reversemarginpar,bindingoffset=2mm}
\pagebreak
\input{sections/Aufgabenstellung}
\cleardoublepage
Expand Down
2 changes: 1 addition & 1 deletion header/header.tex
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
\usepackage{longtable}
\usepackage{lastpage} %Lastpage ref for Footer
\usepackage{marginnote} % Für Seitenkommentare \marginnote
\usepackage{mathtools} % Vor mathabx laden!
\usepackage{mathabx} % Package mit vielen weiteren Mathe Symbolen
\usepackage{mathtools}
\usepackage{mparhack} % Improved marginpar placement
\usepackage{multicol} % In­ter­mix sin­gle and mul­ti­ple columns
\usepackage{multirow} % Create tabular cells spanning multiple rows
Expand Down
2 changes: 1 addition & 1 deletion sections/Anderungsnachweis.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ \section*{Änderungsnachweis}
\begin{tabular}{|C{1.5cm}|p{10cm}|p{2cm}|C{1.8cm}|}
\hline
Version & Änderungsgrund & Kürzel& Datum\\ \hline
1.0 & Erstellung des Dokumentes & STUD & 26.02.2018\\ \hline
1.0 & Erstellen der Vorlage & lmazzole & 26.02.2018\\ \hline
\end{tabular}

0 comments on commit c6b5c26

Please sign in to comment.