diff --git a/logo-test.pdf b/logo-test.pdf new file mode 100644 index 0000000000000000000000000000000000000000..66fdcc1bf981749d6d0430b6f321b5ff10869719 Binary files /dev/null and b/logo-test.pdf differ diff --git a/logo-test.svg b/logo-test.svg new file mode 100644 index 0000000000000000000000000000000000000000..5035f055ce9085bb8f54136e1c56b82f8c959df7 --- /dev/null +++ b/logo-test.svg @@ -0,0 +1,62 @@ +<?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> diff --git a/src/HsH-report.cls b/src/HsH-report.cls index 1861e70f53919f9f3c466c1c4ca1abc29e681c7e..0a3c1e6ca12bce7b39a062f83703c772e12affca 100644 --- a/src/HsH-report.cls +++ b/src/HsH-report.cls @@ -1,27 +1,57 @@ \typeout{Adapted from KOMA script for use in Hochschule Hannover <2020-08-21> Jan Wille} \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{HsH-report}[2020/09/21 HsH Report based on KOMA] +\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[a4paper,left=3cm,right=2.5cm,top=3cm,bottom=3cm]{geometry} \RequirePackage{graphicx} -\RequirePackage{babel} + +\PassOptionsToPackage{left=3cm,right=2.5cm,top=3cm,bottom=3cm}{geometry} \DeclareOption{ngerman}{% - \PassOptionsToPackage{\CurrentOption}{babel} + \PassOptionsToPackage{\CurrentOption}{babel} + \PassOptionsToPackage{figurename=Abb.,tablename=Tab.}{caption} } \DeclareOption{english}{% - \PassOptionsToPackage{\CurrentOption}{babel} + \PassOptionsToPackage{\CurrentOption}{babel} + \PassOptionsToPackage{figurename=fig.,tablename=tab.}{caption} } -\ExecuteOptions{ngerman} -\ProcessOptions - \DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrreprt}} + +\ExecuteOptions{ngerman} \ProcessOptions\relax -\LoadClass[bibliography=totoc,listof=totoc]{scrreprt} + +\RequirePackage{babel} +\RequirePackage{geometry} +\RequirePackage{caption} + +\RequirePackage[headsepline]{scrlayer-scrpage} % kopf und Fußzeilen, linie oben (footsepline für unten) +\pagestyle{scrheadings} +\clearpairofpagestyles +\renewcommand{\chapterpagestyle}{scrheadings} % Kapitelanfang standart Kopf/Fußzeile +\automark{chapter} + +\ohead{\headmark} +\ihead{\@title} +\ofoot{\pagemark} + +% typesetting indexes upright by default +\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 + +\PassOptionsToPackage{free-standing-units}{siunitx} +\setlength\parindent{0pt} +\renewcommand{\fps@figure}{h!t} % positioning of figures +\renewcommand{\fps@table}{h!t} % Positonierung of tables \renewcommand\maketitle{ @@ -45,4 +75,35 @@ \@date \end{center} \clearpage +} + +\newcommand\declarationAuthorship{ + \pagebreak + \vspace*{\fill} + {\rule{\textwidth}{0.1pt}} + \vspace{0.5cm} + \begin{center} + \huge \textbf{Versicherung}\\ + \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 + gestellten Aufgabenstellung sowie dem Arbeitsmaterial unter Angabe aller verwendeten Quel-len + selbstständig erarbeitet habe.\\ + \vspace{1cm} + \begin{flushright} + \rule{5cm}{0.4pt} \\ + {\footnotesize\makeatletter\@author} + \end{flushright} + \newpage +} + +\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 } \ No newline at end of file diff --git a/src/config.tex b/src/config.tex new file mode 100644 index 0000000000000000000000000000000000000000..07783d91c39d62b8d53ec421a1adf6295581f21b --- /dev/null +++ b/src/config.tex @@ -0,0 +1,20 @@ +\@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, + } +}{}% diff --git a/test.pdf b/test.pdf index 06d5ee5a22a147c47079e0db4a179356a8750a2f..8c9f2b432f49e1382f43361a651148224a4b23dc 100644 Binary files a/test.pdf and b/test.pdf differ diff --git a/test.tex b/test.tex index c4a06bdbd815f853470d7571313ee85ed11f95f0..f3df3ee6a018298eba8956fda22e6e00c5aeccb6 100644 --- a/test.tex +++ b/test.tex @@ -1,15 +1,19 @@ -\documentclass[11pt,ngerman,twoside]{HsH-report} +\documentclass[11pt,a4paper,twoside]{HsH-report} \title{Test Dokument} -\author{Jan wille} +\author{Jan Wille} \date{\today} \usepackage{color} \usepackage{lipsum} +\usepackage{siunitx} +\usepackage{ziffer} \begin{document} \maketitle +\declarationAuthorship + \begin{abstract} \lipsum[5-8] \end{abstract} @@ -17,11 +21,17 @@ \tableofcontents \chapter{one} + \label{chap: one} {\color{red}test} und stuff \begin{figure} - + \centering + \includegraphics[width=.15\textwidth]{logo-test} \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}$ + \listoffigures -\end{document} \ No newline at end of file +\end{document}