Skip to content
Snippets Groups Projects
Commit c109c311 authored by Jan Wille's avatar Jan Wille
Browse files

Titlepage works

parent 3a244c43
No related branches found
No related tags found
1 merge request!2make Master runable
......@@ -4,3 +4,5 @@
*.log
*.toc
help_*
build/
img/logos-fakultäten.svg
{
"latex-workshop.latex.outDir": "%DIR%/build",
"latex-workshop.latex.tools": [
{
"name": "pdflatex",
......@@ -7,10 +8,11 @@
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"--output-directory=build",
"%DOC%"
],
"env": {
"TEXINPUTS": "%DIR%//src"
"TEXINPUTS": "%DIR%/src"
}
}
]
......
No preview for this file type
File deleted
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
inkscape:version="1.0 (4035a4fb49, 2020-05-01)"
sodipodi:docname="logo-test.svg"
width="175.89999mm"
height="354mm"
viewBox="0 0 175.89999 354"
version="1.1"
id="svg8">
<sodipodi:namedview
inkscape:current-layer="svg8"
inkscape:window-maximized="1"
inkscape:window-y="-8"
inkscape:window-x="-8"
inkscape:cy="769.10222"
inkscape:cx="573.15333"
inkscape:zoom="0.36850798"
showgrid="false"
id="namedview8"
inkscape:window-height="1017"
inkscape:window-width="1920"
inkscape:pageshadow="2"
inkscape:pageopacity="0"
guidetolerance="10"
gridtolerance="10"
objecttolerance="10"
borderopacity="1"
bordercolor="#666666"
pagecolor="#ffffff" />
<defs
id="defs2" />
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="layer1">
<path
id="path1"
d="m 30,272.3 c 5.5,0 10.2,-4.7 10.2,-10.3 V 150.3 h 95.4 V 262 c 0,5.5 4.7,10.3 10.2,10.3 h 19.8 c 5.5,0 10.2,-4.7 10.2,-10.3 V 10.3 C 175.8,4.8 171.1,0 165.6,0 h -19.8 c -5.5,0 -10.2,4.7 -10.2,10.3 V 112.2 H 40.2 V 10.3 C 40.2,4.7 35.5,0 30,0 H 10.2 C 4.7,0 0,4.7 0,10.3 V 262 c 0,5.5 4.7,10.3 10.2,10.3 z"
style="fill:#00ffff" />
<path
id="path2"
d="m 165.7,354 c 5.5,0 10.2,-4.8 10.2,-10.4 v -20.1 c 0,-5.6 -4.7,-10.4 -10.2,-10.4 H 10.2 C 4.7,313.2 0,318 0,323.5 v 20.1 c 0,5.6 4.7,10.4 10.2,10.4 z"
style="fill:#00ffff" />
</g>
</svg>
File added
......@@ -3,84 +3,99 @@
\newcommand{\myClassName}{HsH-report}
\ProvidesClass{\myClassName}[2020/09/21 HsH Report based on KOMA]
\LoadClass[bibliography=totoc,listof=totoc]{scrreprt}
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage{lmodern}
\RequirePackage{graphicx}
\RequirePackage{hyperref}
\RequirePackage{bookmark}
\PassOptionsToPackage{left=3cm,right=2.5cm,top=3cm,bottom=3cm}{geometry}
\newcommand{\HsHlogoPath}{HSH-Logo.pdf}
\newcommand{\HsHlogoPage}{6}
\newcommand{\includeHsHlogohere}{\raisebox{0pt}[\ht\strutbox][\dp\strutbox]{\includegraphics[width=5cm,page=\HsHlogoPage]{\HsHlogoPath}}}
\newcommand{\abs}[1]{\ensuremath{\left\vert#1\right\vert}} % Makro für Betragsstriche
\DeclareOption{ngerman}{%
\PassOptionsToPackage{\CurrentOption}{babel}
\PassOptionsToPackage{figurename=Abb.,tablename=Tab.}{caption}
\renewcaptionname{ngerman}{\figurename}{Abb.} %Figure
\renewcaptionname{ngerman}{\tablename}{Tab.} %Table
}
\DeclareOption{english}{%
\PassOptionsToPackage{\CurrentOption}{babel}
\PassOptionsToPackage{figurename=fig.,tablename=tab.}{caption}
\PassOptionsToPackage{\CurrentOption,main=english}{babel}
\renewcaptionname{english}{\figurename}{Fig.} %Figure
\renewcaptionname{english}{\tablename}{Tab.} %Table
}
\DeclareOption{f1}{%
\renewcommand{\HsHlogoPage}{1}
}
\DeclareOption{f2}{%
\renewcommand{\HsHlogoPage}{2}
}
\DeclareOption{f3}{%
\renewcommand{\HsHlogoPage}{3}
}
\DeclareOption{f4}{%
\renewcommand{\HsHlogoPage}{4}
}
\DeclareOption{f5}{%
\renewcommand{\HsHlogoPage}{5}
}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrreprt}}
\ExecuteOptions{ngerman}
\ProcessOptions\relax
\RequirePackage{babel}
\RequirePackage{geometry}
\RequirePackage{caption}
\InputIfFileExists{personal.tex}{
\ClassInfo{\myClassName}{personal.tex was found. Using it...}
}{
\ClassInfo{\myClassName}{no personal.tex! Configre the titlepage yourselfe}
}
% recomendet options for packages
\PassOptionsToPackage{utf8}{inputenc}
\PassOptionsToPackage{T1}{fontenc}
\PassOptionsToPackage{left=3cm,right=2.5cm,top=3cm,bottom=3cm}{geometry}
\PassOptionsToPackage{free-standing-units}{siunitx}
\PassOptionsToPackage{babel, german=quotes}{csquotes}
\PassOptionsToPackage{headsepline}{scrlayer-scrpage}
%used packages:
\RequirePackage{inputenc} % inputencoding, utf8 recomendet
\RequirePackage{fontenc} % outputencoding, T1 recomendet
\RequirePackage{lmodern} % font
\RequirePackage{geometry} % required for changing layout
\RequirePackage{graphicx} % required for importing images
\RequirePackage{babel} % required for german names
\RequirePackage{scrlayer-scrpage} % required for header and footer
\RequirePackage{scrhack} % compatability with listings
\RequirePackage{pgffor} % foreach loops
\RequirePackage[headsepline]{scrlayer-scrpage} % kopf und Fußzeilen, linie oben (footsepline für unten)
\RequirePackage{subfigure}
\RequirePackage{pdfpages}
\RequirePackage{hyperref}
\RequirePackage{bookmark}
\RequirePackage{csquotes}
% config for header and footer
\pagestyle{scrheadings}
\clearpairofpagestyles
\renewcommand{\chapterpagestyle}{scrheadings} % Kapitelanfang standart Kopf/Fußzeile
\automark{chapter}
\ohead{\headmark}
\ihead{\@title}
\ofoot{\pagemark}
% typesetting indexes upright by default
% typesetting indexes upright or standart
\def\subinrm#1{\sb{\textnormal{#1}}}
{\catcode`\_=13 \global\let_=\subinrm}
\mathcode`_="8000
\newcommand\upsubscripts{\catcode`\_=12 } % the toggle for upright subscripts
\newcommand\normalsubscripts{\catcode`\_=8 } % the toggle for italic subscripts
\upsubscripts
\upsubscripts % setting upright as default
\PassOptionsToPackage{free-standing-units}{siunitx}
\setlength\parindent{0pt}
\setlength\parindent{0pt} % indentation of new paragraphs
\raggedbottom
\renewcommand{\fps@figure}{h!t} % positioning of figures
\renewcommand{\fps@table}{h!t} % Positonierung of tables
\renewcommand\maketitle{
\newpage
\null
\thispagestyle{empty}
\vspace{-1.5cm}
\hfill\includegraphics[width=6cm]{img/HSH-Logo-Fak1}
\rule{\textwidth}{0.5pt}
\begin{center}
\Large
\vspace*{\fill}
{\Huge\textbf{\@title}}\\
\vspace{1cm}
von \@author\\
\vfill
\vspace{10cm}
\@date
\end{center}
\clearpage
}
\newcommand\declarationAuthorship{
\pagebreak
\newpage
\thispagestyle{plain}
\vspace*{\fill}
{\rule{\textwidth}{0.1pt}}
\vspace{0.5cm}
......@@ -89,23 +104,21 @@
\Large über selbstständiges Erarbeiten dieses Berichtes\\
\end{center}
\vspace{1cm}\normalsize
Hiermit bestätige ich, dass ich die folgenden Arbeit unter Berücksichtigung der zur Verfügung
Hiermit bestätige ich, dass ich die folgende Arbeit unter Berücksichtigung der zur Verfügung
gestellten Aufgabenstellung sowie dem Arbeitsmaterial unter Angabe aller verwendeten Quel-len
selbstständig erarbeitet habe.\\
\vspace{1cm}
\begin{flushright}
\rule{5cm}{0.4pt} \\
\begin{tabular}[t]{r}
\rule{4cm}{0.4pt} \\
{\footnotesize\makeatletter\@author}
\end{tabular}
\end{flushright}
\newpage
}
\renewenvironment{abstract}{%
\renewcommand\abstractname{Abstract}
%\addchap*{\centering\abstractname}
\chapter*{\centering\abstractname}
\thispagestyle{plain}
\addcontentsline{toc}{chapter}{\abstractname}
\small
\quotation
......@@ -122,3 +135,266 @@
}
\makeatother
}
\renewcommand\maketitle[1][1]{%
\expandafter\ifnum \csname scr@v@3.12\endcsname>\scr@compatibility\relax
\else
\def\and{%
\end{tabular}%
\hskip 1em \@plus.17fil%
\begin{tabular}[t]{c}%
}%
\fi
\if@titlepage
\begin{titlepage}
\setcounter{page}{%
#1%
}%
\if@titlepageiscoverpage
\edef\titlepage@restore{%
\noexpand\endgroup
\noexpand\global\noexpand\@colht\the\@colht
\noexpand\global\noexpand\@colroom\the\@colroom
\noexpand\global\vsize\the\vsize
\noexpand\global\noexpand\@titlepageiscoverpagefalse
\noexpand\let\noexpand\titlepage@restore\noexpand\relax
}%
\begingroup
\topmargin=\dimexpr \coverpagetopmargin-1in\relax
\oddsidemargin=\dimexpr \coverpageleftmargin-1in\relax
\evensidemargin=\dimexpr \coverpageleftmargin-1in\relax
\textwidth=\dimexpr
\paperwidth-\coverpageleftmargin-\coverpagerightmargin\relax
\textheight=\dimexpr
\paperheight-\coverpagetopmargin-\coverpagebottommargin\relax
\headheight=0pt
\headsep=0pt
\footskip=\baselineskip
\@colht=\textheight
\@colroom=\textheight
\vsize=\textheight
\columnwidth=\textwidth
\hsize=\columnwidth
\linewidth=\hsize
\else
\let\titlepage@restore\relax
\fi
\let\footnotesize\small
\let\footnoterule\relax
\let\footnote\thanks
\renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
\let\@oldmakefnmark\@makefnmark
\renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}%
\ifx\@extratitle\@empty
\ifx\@frontispiece\@empty
\else
\if@twoside\mbox{}\next@tpage\fi
\noindent\@frontispiece\next@tdpage
\fi
\else
\noindent\@extratitle
\ifx\@frontispiece\@empty
\else
\next@tpage
\noindent\@frontispiece
\fi
\next@tdpage
\fi
\setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
% Customised: -----------------------------------------------------------
\IfFileExists{\HsHlogoPath}{}{
\ClassError{\myClassName}{HsH-Logo.pdf not found!}{
The HsH Logo is necasary for the titlepage! Try putting it next to your source file or use \HsHlogoPath to define the file location
}
}
\vspace*{1cm}
\begin{minipage}[t]{\textwidth}%
\ifx\@titlehead\@empty \else
\usekomafont{titlehead}{\@titlehead}%
\fi
\hfill
\includeHsHlogohere
\end{minipage}
\raisebox{10pt}{\rule{\textwidth}{0.5pt}}
% end Customised: --------------------------------------------------------
\null\vfill
\begin{center}
\ifx\@subject\@empty \else
{\usekomafont{subject}{\@subject\par}}%
\vskip 3em
\fi
{\usekomafont{title}{\huge \@title\par}}%
\vskip 1em
{\ifx\@subtitle\@empty\else\usekomafont{subtitle}{\@subtitle\par}\fi}%
\vskip 2em
{%
\usekomafont{author}{%
\lineskip 0.75em
\begin{tabular}[t]{c}
\parbox{\linewidth}{\centering\@author}
\end{tabular}\par
}%
}%
\vskip 1.5em
{\usekomafont{date}{\@date \par}}%
\vskip \z@ \@plus3fill
{\usekomafont{publishers}{\@publishers \par}}%
\vskip 3em
\end{center}\par
\@thanks\global\let\@thanks\@empty
\vfill\null
\if@twoside
\@tempswatrue
\expandafter\ifnum \@nameuse{scr@v@3.12}>\scr@compatibility\relax
\else
\ifx\@uppertitleback\@empty\ifx\@lowertitleback\@empty
\@tempswafalse
\fi\fi
\fi
\if@tempswa
\next@tpage
\begin{minipage}[t]{\textwidth}
\@uppertitleback
\end{minipage}\par
\vfill
\begin{minipage}[b]{\textwidth}
\@lowertitleback
\end{minipage}\par
\@thanks\global\let\@thanks\@empty
\fi
\else
\ifx\@uppertitleback\@empty\else
\ClassWarning{\KOMAClassName}{%
non empty \string\uppertitleback\space ignored
by \string\maketitle\MessageBreak
in `twoside=false' mode%
}%
\fi
\ifx\@lowertitleback\@empty\else
\ClassWarning{\KOMAClassName}{%
non empty \string\lowertitleback\space ignored
by \string\maketitle\MessageBreak
in `twoside=false' mode%
}%
\fi
\fi
\ifx\@dedication\@empty
\else
\next@tdpage\null\vfill
{\centering\usekomafont{dedication}{\@dedication \par}}%
\vskip \z@ \@plus3fill
\@thanks\global\let\@thanks\@empty
\cleardoubleemptypage
\fi
\ifx\titlepage@restore\relax\else\clearpage\titlepage@restore\fi
\end{titlepage}
\else
\par
\@tempcnta=%
#1%
\relax\ifnum\@tempcnta=1\else
\ClassWarning{\KOMAClassName}{%
Optional argument of \string\maketitle\space ignored\MessageBreak
in `titlepage=false' mode%
}%
\fi
\ifx\@uppertitleback\@empty\else
\ClassWarning{\KOMAClassName}{%
non empty \string\uppertitleback\space ignored
by \string\maketitle\MessageBreak
in `titlepage=false' mode%
}%
\fi
\ifx\@lowertitleback\@empty\else
\ClassWarning{\KOMAClassName}{%
non empty \string\lowertitleback\space ignored
by \string\maketitle\MessageBreak
in `titlepage=false' mode%
}%
\fi
\begingroup
\let\titlepage@restore\relax
\renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
\let\@oldmakefnmark\@makefnmark
\renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}%
\next@tdpage
\if@twocolumn
\ifnum \col@number=\@ne
\ifx\@extratitle\@empty
\ifx\@frontispiece\@empty\else\if@twoside\mbox{}\fi\fi
\else
\@makeextratitle
\fi
\ifx\@frontispiece\@empty
\ifx\@extratitle\@empty\else\next@tdpage\fi
\else
\next@tpage
\@makefrontispiece
\next@tdpage
\fi
\@maketitle
\else
\ifx\@extratitle\@empty
\ifx\@frontispiece\@empty\else\if@twoside\mbox{}\fi\fi
\else
\twocolumn[\@makeextratitle]%
\fi
\ifx\@frontispiece\@empty
\ifx\@extratitle\@empty\else\next@tdpage\fi
\else
\next@tpage
\twocolumn[\@makefrontispiece]%
\next@tdpage
\fi
\twocolumn[\@maketitle]%
\fi
\else
\ifx\@extratitle\@empty
\ifx\@frontispiece\@empty\else \mbox{}\fi
\else
\@makeextratitle
\fi
\ifx\@frontispiece\@empty
\ifx\@extratitle\@empty\else\next@tdpage\fi
\else
\next@tpage
\@makefrontispiece
\next@tdpage
\fi
\@maketitle
\fi
\ifx\titlepagestyle\@empty\else\thispagestyle{\titlepagestyle}\fi
\@thanks\global\let\@thanks\@empty
\endgroup
\fi
\setcounter{footnote}{0}%
\expandafter\ifnum \csname scr@v@3.12\endcsname>\scr@compatibility\relax
\let\thanks\relax
\let\maketitle\relax
\let\@maketitle\relax
\global\let\@thanks\@empty
\global\let\@author\@empty
\global\let\@date\@empty
\global\let\@title\@empty
\global\let\@subtitle\@empty
\global\let\@extratitle\@empty
\global\let\@frontispiece\@empty
\global\let\@titlehead\@empty
\global\let\@subject\@empty
\global\let\@publishers\@empty
\global\let\@uppertitleback\@empty
\global\let\@lowertitleback\@empty
\global\let\@dedication\@empty
\global\let\author\relax
\global\let\title\relax
\global\let\extratitle\relax
\global\let\titlehead\relax
\global\let\subject\relax
\global\let\publishers\relax
\global\let\uppertitleback\relax
\global\let\lowertitleback\relax
\global\let\dedication\relax
\global\let\date\relax
\fi
\global\let\and\relax
}%
\ No newline at end of file
\renewcaptionname{ngerman}{\abstractname}{Abstract} %Abstract
\@ifpackageloaded{biblatex}{
\ExecuteBibliographyOptions{
sorting=nyt,
bibwarn=true,
isbn=false,
url=true
}
}{}%
\@ifpackageloaded{csquotes}{
\MakeOuterQuote{"}
}{}%
\@ifpackageloaded{siunitx}{
\sisetup{
free-standing-units,
......
\author{
Max Mustermann,
Mira Musterfrau,
Max Meier
}
\titlehead{Fachbereich}
\subject{Grund der Arbeit}
\title{Mustertitel}
\subtitle{Untertitle}
\date{\today}
File deleted
\documentclass[11pt,a4paper,twoside]{HsH-report}
\title{Test Dokument}
\author{Jan Wille}
\date{\today}
\documentclass[11pt,a4paper,twoside,f1]{HsH-report}
\usepackage{color}
\usepackage{lipsum}
......@@ -10,8 +6,9 @@
\usepackage{ziffer}
\begin{document}
\maketitle
\pagenumbering{Roman}
\maketitle
\declarationAuthorship
\begin{abstract}
......@@ -20,6 +17,9 @@
\tableofcontents
\cleardoublepage % unbedingt erforderlich bei Doppelseitigem layout vor neuer Seitennummerreirung!
\pagenumbering{arabic} % Seitennummerierung normale zahlen
\chapter{one}
\label{chap: one}
{\color{red}test} und stuff
......@@ -32,6 +32,41 @@
noch ein test \normalsubscripts$R_t$ \upsubscripts$R_t$
mit einheit: $R=200\,\milli\ohm+ \SI{0.34567453}{\volt\per\metre}$
\vspace{2cm}\\
\makeatletter
\newcommand{\tempA}{A-}
\newcommand{\tempB}{B-}
\newcommand{\temp}{}
\newcommand{\declatationAutorshipAuthors}{}
\let\declatationAutorshipAuthors\@empty
\foreach \x [count=\i] in \@author{
\ifnum\i>1{
\gdef\tempA{wir}
\gdef\tempB{nicht2}
}\else\fi
\ifx\declatationAutorshipAuthors\@empty{
A
\gdef\declatationAutorshipAuthors{
\begin{tabular}[t]{r}
\rule{4cm}{0.4pt} \\
{\footnotesize first}
\end{tabular}
}
}\else{
\let\temp\declatationAutorshipAuthors
\gdef\declatationAutorshipAuthors{
\temp
\begin{tabular}[t]{r}
\rule{4cm}{0.4pt} \\
{\footnotesize test}
\end{tabular}
}
}\fi
\i\space this is \x \\
}
\declatationAutorshipAuthors
\listoffigures
\end{document}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment