From c6b5c26a73bbae0393f914f016346253d1389d79 Mon Sep 17 00:00:00 2001 From: Luca Mazzoleni Date: Tue, 18 Sep 2018 10:31:07 +0200 Subject: [PATCH] Onepage Layout mit Margins links --- Vorlage-MI-Produkt.tex | 30 ++++++++++++++++++++++-------- header/header.tex | 2 +- sections/Anderungsnachweis.tex | 2 +- 3 files changed, 24 insertions(+), 10 deletions(-) diff --git a/Vorlage-MI-Produkt.tex b/Vorlage-MI-Produkt.tex index 248231e..ed20d54 100644 --- a/Vorlage-MI-Produkt.tex +++ b/Vorlage-MI-Produkt.tex @@ -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 @@ -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} @@ -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 @@ -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 @@ -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 diff --git a/header/header.tex b/header/header.tex index 71ab271..42d702a 100644 --- a/header/header.tex +++ b/header/header.tex @@ -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 diff --git a/sections/Anderungsnachweis.tex b/sections/Anderungsnachweis.tex index 1da6728..99acf8c 100644 --- a/sections/Anderungsnachweis.tex +++ b/sections/Anderungsnachweis.tex @@ -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} \ No newline at end of file