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

Merge branch 'development'

parents 090a0ed1 b97ad1bc
No related branches found
Tags
No related merge requests found
...@@ -12,7 +12,7 @@ them with specific configurations and presets as well as providing commonly need ...@@ -12,7 +12,7 @@ them with specific configurations and presets as well as providing commonly need
HsH-book (planed) HsH-book (planed)
HsH-standalone HsH-standalone
**Version:** BETA 0.3, 24.01.2021 **Version:** BETA 0.4, 08.02.2021
## Check out the **Example-Branche** ## Check out the **Example-Branche**
......
\typeout{Adapted from KOMA script for use in Hochschule Hannover <2022-01-22> Jan Wille} \typeout{Adapted from KOMA script for use in Hochschule Hannover <2022-02-09> Jan Wille}
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\newcommand{\myClassName}{HsH-report} \newcommand{\myClassName}{HsH-report}
\ProvidesClass{\myClassName}[2021/01/22 HsH Report based on KOMA] \ProvidesClass{\myClassName}[2021/02/09 HsH Report based on KOMA]
\LoadClass[bibliography=totoc,listof=totoc]{scrreprt}
\newcommand{\HsHlogoPath}{HSH-Logo.pdf} \newcommand{\HsHlogoPath}{HSH-Logo.pdf}
\newcommand{\HsHlogoPage}{1} \newcommand{\HsHlogoPage}{1}
\newcommand{\includeHsHlogohere}{\includegraphics[width=5cm,page=\HsHlogoPage]{\HsHlogoPath}}
\newif\if@german% \newif\if@german%
\DeclareOption{german}{% \DeclareOption{german}{%
\PassOptionsToPackage{ngerman}{babel} \PassOptionsToPackage{ngerman}{babel}
\renewcaptionname{ngerman}{\figurename}{Abb.} %Figure
\renewcaptionname{ngerman}{\tablename}{Tab.} %Table
\@germantrue \@germantrue
} }
\DeclareOption{ngerman}{% \DeclareOption{ngerman}{%
\PassOptionsToPackage{\CurrentOption}{babel} \PassOptionsToPackage{\CurrentOption}{babel}
\renewcaptionname{ngerman}{\figurename}{Abb.} %Figure
\renewcaptionname{ngerman}{\tablename}{Tab.} %Table
\@germantrue \@germantrue
} }
\DeclareOption{english}{% \DeclareOption{english}{%
\PassOptionsToPackage{\CurrentOption}{babel} \PassOptionsToPackage{\CurrentOption}{babel}
\renewcaptionname{english}{\figurename}{Fig.} %Figure
\renewcaptionname{english}{\tablename}{Tab.} %Table
} }
\DeclareOption{f1}{% \DeclareOption{f1}{%
\renewcommand{\HsHlogoPage}{2} \renewcommand{\HsHlogoPage}{2}
...@@ -48,6 +39,10 @@ ...@@ -48,6 +39,10 @@
\@ifclasswith{\myClassName}{english}{}{\@ifclasswith{\myClassName}{ngerman}{}{\ExecuteOptions{ngerman}}} \@ifclasswith{\myClassName}{english}{}{\@ifclasswith{\myClassName}{ngerman}{}{\ExecuteOptions{ngerman}}}
\ProcessOptions\relax \ProcessOptions\relax
% Load KOMA class
\LoadClass{scrreprt}
\KOMAoption{toc}{bibliography,listof}
% standart options for packages % standart options for packages
\PassOptionsToPackage{utf8}{inputenc} \PassOptionsToPackage{utf8}{inputenc}
\PassOptionsToPackage{T1}{fontenc} \PassOptionsToPackage{T1}{fontenc}
...@@ -116,6 +111,7 @@ ...@@ -116,6 +111,7 @@
\MakeOuterQuote{"} % easy quotationmarks \MakeOuterQuote{"} % easy quotationmarks
% custom commands % custom commands
\newcommand{\includeHsHlogohere}{\includegraphics[width=5cm,page=\HsHlogoPage]{\HsHlogoPath}}
\providecommand{\abs}[1]{\ensuremath{\left\vert#1\right\vert}} % Makro for vertical lines around absolute values \providecommand{\abs}[1]{\ensuremath{\left\vert#1\right\vert}} % Makro for vertical lines around absolute values
\newcommand\declarationAuthorship{ \newcommand\declarationAuthorship{
\thispagestyle{plain} \thispagestyle{plain}
......
\if@german
\renewcommand{\abstractname}{Abstract} % Abstract \renewcommand{\abstractname}{Abstract} % Abstract
\renewcaptionname{ngerman}{\figurename}{Abb.} %Figure
\renewcaptionname{ngerman}{\tablename}{Tab.} %Table
\else
\renewcaptionname{english}{\figurename}{Fig.} %Figure
\renewcaptionname{english}{\tablename}{Tab.} %Table
\fi
\ifx\KOMAScriptVersion\undefined\else % check if KOMA is used \ifx\KOMAScriptVersion\undefined\else % check if KOMA is used
\g@addto@macro\@floatboxreset\centering % center all floats \g@addto@macro\@floatboxreset\centering % center all floats
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment