diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..3b742fd0363afefb127de8ae76cacce08a738f5c --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +*.synctex.* +*.aux +*.lof +*.log +*.toc +build/ +img/logos-fakultäten.svg diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000000000000000000000000000000000000..5f9c3f4ebc63d089cb5bb094dfd84d61cd8c6d1a --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,19 @@ +{ + "latex-workshop.latex.outDir": "%DIR%/build", + "latex-workshop.latex.tools": [ + { + "name": "pdflatex", + "command": "pdflatex", + "args": [ + "-synctex=1", + "-interaction=nonstopmode", + "-file-line-error", + "--output-directory=build", + "%DOC%" + ], + "env": { + "TEXINPUTS": "%DIR%/src" + } + } + ] +} \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..4b47d26219ed51c73850ad27d7fcc566c5699895 --- /dev/null +++ b/Makefile @@ -0,0 +1,45 @@ +# Makefile for Latex project + +NAME = test +PDF = pdflatex +BIB = biber + +OUTDIR = .\build + +export TEXINPUTS:=.\src + + +pdf: $(NAME).tex + $(PDF) -synctex=1 -interaction=nonstopmode -file-line-error --output-directory=$(OUTDIR) $(NAME).tex + + +clean: tidy + if exist $(OUTDIR)\$(NAME).pdf del $(OUTDIR)\$(NAME).pdf + if exist $(OUTDIR) rmdir $(OUTDIR) + +tidy: + if exist $(OUTDIR)\$(NAME).aux del $(OUTDIR)\$(NAME).aux + if exist $(OUTDIR)\$(NAME).bbl del $(OUTDIR)\$(NAME).bbl + if exist $(OUTDIR)\$(NAME).bcf del $(OUTDIR)\$(NAME).bcf + if exist $(OUTDIR)\$(NAME).blg del $(OUTDIR)\$(NAME).blg + if exist $(OUTDIR)\$(NAME).idx del $(OUTDIR)\$(NAME).idx + if exist $(OUTDIR)\$(NAME).ind del $(OUTDIR)\$(NAME).ind + if exist $(OUTDIR)\$(NAME).lof del $(OUTDIR)\$(NAME).lof + if exist $(OUTDIR)\$(NAME).lot del $(OUTDIR)\$(NAME).lot + if exist $(OUTDIR)\$(NAME).out del $(OUTDIR)\$(NAME).out + if exist $(OUTDIR)\$(NAME).toc del $(OUTDIR)\$(NAME).toc + if exist $(OUTDIR)\$(NAME).acn del $(OUTDIR)\$(NAME).acn + if exist $(OUTDIR)\$(NAME).acr del $(OUTDIR)\$(NAME).acr + if exist $(OUTDIR)\$(NAME).alg del $(OUTDIR)\$(NAME).alg + if exist $(OUTDIR)\$(NAME).glg del $(OUTDIR)\$(NAME).glg + if exist $(OUTDIR)\$(NAME).glo del $(OUTDIR)\$(NAME).glo + if exist $(OUTDIR)\$(NAME).gls del $(OUTDIR)\$(NAME).gls + if exist $(OUTDIR)\$(NAME).ist del $(OUTDIR)\$(NAME).ist + if exist $(OUTDIR)\$(NAME).fls del $(OUTDIR)\$(NAME).fls + if exist $(OUTDIR)\$(NAME).log del $(OUTDIR)\$(NAME).log + if exist $(OUTDIR)\$(NAME).nav del $(OUTDIR)\$(NAME).nav + if exist $(OUTDIR)\$(NAME).snm del $(OUTDIR)\$(NAME).snm + if exist $(OUTDIR)\$(NAME).fdb_latexmk del $(OUTDIR)\$(NAME).fdb_latexmk + if exist $(OUTDIR)\$(NAME).synctex.gz del $(OUTDIR)\$(NAME).synctex.gz + if exist $(OUTDIR)\$(NAME).run.xml del $(OUTDIR)\$(NAME).run.xml + if exist $(OUTDIR)\$(NAME).bc del $(OUTDIR)\$(NAME).bc \ No newline at end of file diff --git a/README.md b/README.md index 1b602114f7744533bda4713170dd84ea2cf0e9d4..3ef3a706028261aa9a9f83f25e1ecca2f92988df 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,80 @@ -# LaTex-Template-HsH +# What this is -Hier soll eine Projektvolage entstehen, mit der Berichte und Arbeiten an der HsH geschrieben werden können. Diese soll Klassen enthalten, welche -spezifische Vorgaben unserer Hochschule erfüllen, sowie eine Vorlage mit Paketvorschlägen und Beispielen. +This is a template designed to ease the workflow when wrighting documents for the Hochschule Hannover. It is intendet to be used in all sufisticated +works, from lab-reporst to masters thesisies. +The project provieds custom document-classes cariing the `HsH-` prefix as well as support files. These classes extend the well known KOMA-script classes and customise them +them with specifig configurations and presets as well as providing comonly needed features. -# geplante Features: +**Provides classes are:** -- angepasstes Deckblatt, inklusive Logo der HsH (möglicherweise Fakultät vorgebar??) -- indizes grundsätzlich steil -- ränder anpassen -- druckbarkeit auf HsH druckern sicherstellen -- + HsH-article (planed) + HsH-report + HsH-book (planed) -# ToDo: +# Quick start guide: -- custom Klassen, basierend auf KOMA-script: - - HsH-article - - HsH-report - - HsH-book -- Vorlage -- Beispiele in den Unterordnern +## Quick and dirty +To get started, create a new folder for your project somewhere on your PC and create your `.tex` file. Copy the classfile (`.cls`) you want to use and +the `HsH-logo.pdf` from the src folder to your projectfolder. You can optionaly copy the `config.tex` and the `personal.tex`, but you can also +configre everything in your preamble. + +## using a proper subfolder structure + +The projects also provieds a recomondation for a subfolder structure, to keep things organised. Cloning the complete projekt into your projectfolder +will allow you to use it easiely. + +## writing your document + +Write your Latexdocument as usual, starting with: `\documentclass{HsH-report}` +You may provide all usuall classoptions as well as specifying your fakultie (f1 to f5), so the correct logo can be picked. Here is a recomendation: + + \documentclass[11pt,a4paper,twoside,f1]{HsH-report} + + +# What are the presonal.tex and config.tex? + +These files are a easy way to configre your project in a single central location, so it can be used over multiple documents in the same project as +well as allowing easy reuse of configs for other projects. +The provied classes automaticly check for thes files and use them, if they are present. But they are completly optional, so you can just ditch them if +you want to. Keep in mind that the `config.tex` will be includet rigth befor the `\begin{document}`, so it overides all settings you may have put in +your preamble. + +The `personal.tex` is intednet for presonal information displayed on the titlepage and elsewhere. For example the definitions of `\autor{}` and +`\title{}` are here. + +The `config.tex` is intendet for configurations. For example new- or redefinitions of commands should be put here. Also pakages specifig configs are +loadet here. The `\@ifpackageloaded{pakagename}{true}{false}` Makro allows to check for the existans of a pakage, so that you can reuse config files, +even if you dont use all the same pakeges. + +# Creating a titlepage + +The `\maketitel` command has bin changed from the standart implementation. It now provides a titlepage containing the HsH-logo as well as allowing for +some more stuff. +Standart KOMA commands (read also [KOMA-documentation](https://golatex.de//wiki/Titelseite_mit_KOMA-Script)): +`\titlehead{}` +`\subject{}` +`\title{}` +`\subtitle{}` +`\date{}` + +Custom Commands: +`\author{A,B,C}` needs to be a comma seperated list, to make the declaration of autorship work properly, `\thanks{}` may still be used +`\publishers{}` has no effect + +It is very importand, that the HsH-logo file can be found when using this command. The standart config looks on the enviroment path, but if you whant to +customise it, you can use `\HsHlogoPath{path/to/logo}` to provide the path yourself. Note that the `\HsHlogoPage{num}` must also be set to point to the +correct page inside the providet file (standart is 1). + +# Declation of autorship + +TODO + + \declarationAuthorship + + +# other providet commands + +`\abs{}` sets vertical lines left and right of the contained expression to mark an absolout value. Only works in mathmode # Für Beamer gibt es das schon: diff --git a/img/HSH-Logo.pdf b/img/HSH-Logo.pdf new file mode 100644 index 0000000000000000000000000000000000000000..f6ddc0fa82f4999a70cbe8ca9834745f4a8a2108 Binary files /dev/null and b/img/HSH-Logo.pdf differ diff --git a/img/bild.png b/img/bild.png new file mode 100644 index 0000000000000000000000000000000000000000..3bd7ffc0879f3e5e0a6b6122b493de9a70868ef0 Binary files /dev/null and b/img/bild.png differ diff --git a/plt/README.md b/plt/README.md index 66682a4b48fd3b5fe6d572bd5c19f8247115d2ee..b20c692b34755d91ee1e46b600397467499f2c19 100644 --- a/plt/README.md +++ b/plt/README.md @@ -1,4 +1,5 @@ # Der Plots-Ordner -Ein Ordner für alle Plots und Graphen. Dieser Existiert vor allem, da die erstellung mit PGF-Plots empfohlen wird. Dies erfordert eine eigene .tex -Datei für jeden Plot, spart aber Compilezeit, da nicht jedes mal alle Plots neu erstellt werden. Dadurch ist es aber möglich, direkt auch .csv Daten zuzugreifen. \ No newline at end of file +Ein Ordner für alle Plots und Graphen. Dieser Existiert vor allem, da die Erstellung mit PGF-Plots empfohlen wird. Dies erfordert eine eigene .tex +Datei für jeden Plot, spart aber Compilezeit, da nicht jedes mal alle Plots neu erstellt werden. Dadurch ist es aber möglich, direkt auch .csv Daten +zuzugreifen. \ No newline at end of file diff --git a/src/HSH-Logo.pdf b/src/HSH-Logo.pdf new file mode 100644 index 0000000000000000000000000000000000000000..a3b13236394013628e252dfdce359822621b2473 Binary files /dev/null and b/src/HSH-Logo.pdf differ diff --git a/src/HsH-report.cls b/src/HsH-report.cls index 30d74d258442c7c65512eafab474568dd706c430..eab5c048c49c0825b785ca46a2f1c665fa75d737 100644 --- a/src/HsH-report.cls +++ b/src/HsH-report.cls @@ -1 +1,468 @@ -test \ No newline at end of file +\typeout{Adapted from KOMA script for use in Hochschule Hannover <2020-08-21> Jan Wille} +\NeedsTeXFormat{LaTeX2e} + +\newcommand{\myClassName}{HsH-report} +\ProvidesClass{\myClassName}[2020/09/21 HsH Report based on KOMA] +\LoadClass[bibliography=totoc,listof=totoc]{scrreprt} + +\newcommand{\HsHlogoPath}{HSH-Logo.pdf} +\newcommand{\HsHlogoPage}{1} +\newcommand{\includeHsHlogohere}{\includegraphics[width=5cm,page=\HsHlogoPage]{\HsHlogoPath}} +\providecommand{\abs}[1]{\ensuremath{\left\vert#1\right\vert}} % Makro für Betragsstriche + +\newif\if@german% + +\DeclareOption{ngerman}{% + \PassOptionsToPackage{\CurrentOption}{babel} + \renewcaptionname{ngerman}{\figurename}{Abb.} %Figure + \renewcaptionname{ngerman}{\tablename}{Tab.} %Table + \@germantrue +} +\DeclareOption{english}{% + \PassOptionsToPackage{\CurrentOption}{babel} + \renewcaptionname{english}{\figurename}{Fig.} %Figure + \renewcaptionname{english}{\tablename}{Tab.} %Table +} +\DeclareOption{f1}{% + \renewcommand{\HsHlogoPage}{2} +} +\DeclareOption{f2}{% + \renewcommand{\HsHlogoPage}{3} +} +\DeclareOption{f3}{% + \renewcommand{\HsHlogoPage}{4} +} +\DeclareOption{f4}{% + \renewcommand{\HsHlogoPage}{5} +} +\DeclareOption{f5}{% + \renewcommand{\HsHlogoPage}{6} +} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrreprt}} + +\@ifclasswith{\myClassName}{english}{}{\@ifclasswith{\myClassName}{ngerman}{}{\ExecuteOptions{ngerman}}} +\ProcessOptions\relax + +\InputIfFileExists{personal.tex}{ + \ClassInfo{\myClassName}{personal.tex was found. Using it...} +}{ + \ClassInfo{\myClassName}{no personal.tex! Configre the titlepage yourselfe} +} + +% enforced options for packages +\PassOptionsToPackage{utf8}{inputenc} +\PassOptionsToPackage{T1}{fontenc} +\PassOptionsToPackage{left=3cm,right=2.5cm,top=3cm,bottom=3cm}{geometry} +\PassOptionsToPackage{babel, german=quotes}{csquotes} +\PassOptionsToPackage{headsepline}{scrlayer-scrpage} +\PassOptionsToPackage{free-standing-units}{siunitx} +\PassOptionsToPackage{european,EFvoltages,straightvoltages}{circuitikz} + +%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 +\if@german\RequirePackage{ziffer}\fi % german dezimal numbers + +% should these be in? +\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 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 % setting upright as default + +% do stuff +\setlength\parindent{0pt} % indentation of new paragraphs +\raggedbottom +\renewcommand{\fps@figure}{h!t} % positioning of figures +\renewcommand{\fps@table}{h!t} % Positonierung of tables + +\newcommand\declarationAuthorship{ + \thispagestyle{plain} + \vspace*{\fill} + {\rule{\textwidth}{0.1pt}} + \vspace{0.5cm} + + \renewcommand{\thanks}{\empty} + \newcommand{\tempA}{ich} + \newcommand{\tempB}{} + \foreach \x [count=\i] in \@author{ + \ifnum\i>1 + \gdef\tempA{wir} + \gdef\tempB{n} + \else\fi + } + \begin{center} + \huge \textbf{Versicherung}\\ + \Large über selbstständiges Erarbeiten dieses Berichtes\\ + \end{center} + \vspace{1cm}\normalsize + Hiermit bestätige\tempB\space\tempA, dass \tempA\space die folgende Arbeit unter Berücksichtigung der zur Verfügung + gestellten Aufgabenstellung sowie dem Arbeitsmaterial unter Angabe aller verwendeten Quellen + selbstständig erarbeitet habe\tempB.\\ + \begin{flushright} + \foreach \x [count=\i] in \@author{ + \vspace{1cm} + \begin{tabular}[t]{r} + \rule{4cm}{0.4pt} \\ + {\footnotesize\x} + \end{tabular} + } + \end{flushright} +} + +\renewenvironment{abstract}{% + \chapter*{\centering\abstractname} + \addcontentsline{toc}{chapter}{\abstractname} + \small + \quotation +}{% + \endquotation +} + +\AtBeginDocument { + \makeatletter + \InputIfFileExists{config.tex}{ + \ClassInfo{\myClassName}{config.tex was found. Using it...} + }{ + \ClassInfo{\myClassName}{no config.tex!! I hope you configered it yourself.} + } + \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 + \raisebox{0pt}[\ht\strutbox][\dp\strutbox]{\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 +}% + +\renewcommand*{\@maketitle}{% + \global\@topnum=\z@ + \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 + \raisebox{0pt}[\ht\strutbox][\dp\strutbox]{\includeHsHlogohere} + \end{minipage} + \raisebox{10pt}{\rule{\textwidth}{0.5pt}} + % end Customised: -------------------------------------------------------- + \null + \vskip 2em% + \begin{center}% + \ifx\@subject\@empty \else + {\usekomafont{subject}{\@subject \par}}% + \vskip 1.5em + \fi + {\usekomafont{title}{\huge \@title \par}}% + \vskip .5em + {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}% + \vskip 1em + {% + \usekomafont{author}{% + \lineskip .5em% + \begin{tabular}[t]{c} + \@author + \end{tabular}\par + }% + }% + \vskip 1em% + {\usekomafont{date}{\@date \par}}% + \vskip \z@ \@plus 1em + {\usekomafont{publishers}{\@publishers \par}}% + \ifx\@dedication\@empty \else + \vskip 2em + {\usekomafont{dedication}{\@dedication \par}}% + \fi + \end{center}% + \par + \vskip 2em +}% \ No newline at end of file diff --git a/src/config.tex b/src/config.tex new file mode 100644 index 0000000000000000000000000000000000000000..98423800d5412c5be5d9d82e26ed4fe536727399 --- /dev/null +++ b/src/config.tex @@ -0,0 +1,70 @@ +\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, + tight-spacing=true, + per-mode=symbol, + output-decimal-marker={,}, + scientific-notation=engineering, + round-mode = places, + round-precision = 3, + } +}{}% +\@ifpackageloaded{listings}{ + \lstset{ + commentstyle=\color{gray}, + keywordstyle=\color{red}, + stringstyle=\color{blue}, + showstringspaces=false, + basicstyle=\footnotesize, + literate={Ö}{{\"O}}1{Ä}{{\"A}}1{Ü}{{\"U}}1{ß}{{\ss}}1{ü}{{\"u}}1{ä}{{\"a}}1{ö}{{\"o}}1, + escapeinside={(*@}{@*)}, + } +}{}% +\@ifpackageloaded{circuitikz}{ + \ctikzset{ + font=\footnotesize, + resistors/scale=0.7, + transistors/scale=0.75, + default/scale=0.5, + bipole annotation style/.style={font=\tiny ,inner sep=1pt}, + } +}{}% +\@ifpackageloaded{pgfplots}{ + \usepackage{pgfplotstable} + \usepgfplotslibrary{fillbetween} % mark areas under or between graphs + \pgfplotsset{ + compat=1.16, + /pgf/number format/use comma, + /pgf/number format/read comma as period, + every tick label/.append style={font=\tiny}, + every axis legend/.append style={font=\footnotesize}, + MyPlots/.style = { % Style für alle Plots + width=.6\textwidth, + grid=major, % Gitter für haupt Ticks + grid style={dashed,gray!50}, % Hinergrund Gitter + legend pos=outer north east, % Positon der Legende + FM1/.style = {blue, thick, mark=x, mark size=1.5,samples=100}, % Format 1 + FM2/.style = {orange, thick, mark=*, mark size=1,samples=100}, % Format 2 + FM3/.style = {green, thick, mark=square*, mark size=1,samples=100}, % Format 3 + FM4/.style = {red, thick, mark=diamond*, mark size=1,samples=100}, % Format 4 + FM5/.style = {pink, thick, mark=triangel*, mark size=1,samples=100},% Format 5 + errBars/.style = {error bars/.cd, y dir=both, y explicit, % ermöglich Fehlerbalken + error mark options={mark size=1pt,rotate=90}}, + } + } + \pgfplotstableset{ + col sep=semicolon, % global seperator for csv files + } +}{}% diff --git a/src/help_clsguide.pdf b/src/help_clsguide.pdf new file mode 100644 index 0000000000000000000000000000000000000000..767f8aa0274f89faa51f8c837cef7ea011305bf0 Binary files /dev/null and b/src/help_clsguide.pdf differ diff --git a/src/help_hefferon.pdf b/src/help_hefferon.pdf new file mode 100644 index 0000000000000000000000000000000000000000..2a9853fe23af353c82d3a682b0ea7f89190ed433 Binary files /dev/null and b/src/help_hefferon.pdf differ diff --git a/src/personal.tex b/src/personal.tex new file mode 100644 index 0000000000000000000000000000000000000000..c49f78a9baeb094702df896d90dc06d5dba34743 --- /dev/null +++ b/src/personal.tex @@ -0,0 +1,13 @@ +\author{ + Max Mustermann\thanks{test}, + Mira Musterfrau\thanks{temp}, + Max Mustermann, + Mira Musterfrau, + Max Mustermann +} +\titlehead{Fachbereich} +\subject{Grund der Arbeit} +\title{Mustertitel} +\subtitle{Untertitle} +\date{\today} +\publishers{HERAUSGEBER} diff --git a/test.tex b/test.tex new file mode 100644 index 0000000000000000000000000000000000000000..c64ab0509b13e6ed202d605302415e7c317c0836 --- /dev/null +++ b/test.tex @@ -0,0 +1,39 @@ +\documentclass[11pt,a4paper,twoside,f1,ngerman]{HsH-report} + +\usepackage{color} +\usepackage{lipsum} +\usepackage{siunitx} + +\begin{document} + +\pagenumbering{Roman} +\maketitle +\declarationAuthorship + +\begin{abstract} + \lipsum[5-8] +\end{abstract} + +\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 + \begin{figure} + \centering + \includegraphics[width=.15\textwidth]{img/bild} + \caption{test} + \end{figure} + + noch ein test \normalsubscripts$R_t$ \upsubscripts$R_t$ + + mit einheit: $R=200\,\milli\ohm+ \SI{0.34567453}{\volt\per\metre}$ + \vspace{2cm}\\\pagebreak + eine zahl: $3,5+3.5$\\ + + +\listoffigures +\end{document}