From ed26235d6c5ddea9a17428605b3bada3ca151ef5 Mon Sep 17 00:00:00 2001
From: Jan Wille <jan.wille@stud.hs-hannover.de>
Date: Wed, 21 Apr 2021 16:17:34 +0200
Subject: [PATCH] removed personal.tex and added german as stadart option

---
 HsH-classes.dtx        | 17 ++---------------
 src/HsH-article.cls    |  5 -----
 src/HsH-report.cls     |  5 -----
 src/HsH-standalone.cls | 21 ---------------------
 src/personal.tex       | 16 ----------------
 test.tex               | 20 +++++++++++++++++++-
 6 files changed, 21 insertions(+), 63 deletions(-)
 delete mode 100644 src/personal.tex

diff --git a/HsH-classes.dtx b/HsH-classes.dtx
index e2729f1..0d118db 100644
--- a/HsH-classes.dtx
+++ b/HsH-classes.dtx
@@ -146,17 +146,9 @@
 
 %</article|report|standalone>
 %
-%<*article|report|standalone>
+%<*article|report>
 %% title matters ----------------------------------------------------------------------------------
 %
-%<*standalone>
-\newcommand*{\@titlehead}{}%
-\newcommand{\titlehead}[1]{\gdef\@titlehead{#1}}%
-\newcommand*{\@subject}{}%
-\newcommand*{\subject}[1]{\gdef\@subject{#1}}%
-\newcommand*{\@subtitle}{}%
-\newcommand*{\subtitle}[1]{\gdef\@subtitle{#1}}%
-%</standalone>
 \newcommand*{\@matrikelnr}{}%
 \newcommand{\matrikelnr}[1]{\gdef\@matrikelnr{#1}}%
 \newcommand*{\@professor}{}%
@@ -165,13 +157,8 @@
 \newcommand{\keywords}[1]{\gdef\@keywords{#1}}%
 \let\@author\@empty
 \let\@keywords\@empty
-\InputIfFileExists{personal.tex}{
-  \ClassInfo{\myClassName}{personal.tex was found. Using it...}
-}{
-  \ClassInfo{\myClassName}{no personal.tex! Configre the titlepage yourself}
-}
 
-%</article|report|standalone>
+%</article|report>
 %
 %<*article|report|standalone>
 %% typesetting indexes upright or standart
diff --git a/src/HsH-article.cls b/src/HsH-article.cls
index 7aac362..16baa0a 100644
--- a/src/HsH-article.cls
+++ b/src/HsH-article.cls
@@ -108,11 +108,6 @@
 \newcommand{\keywords}[1]{\gdef\@keywords{#1}}%
 \let\@author\@empty
 \let\@keywords\@empty
-\InputIfFileExists{personal.tex}{
-  \ClassInfo{\myClassName}{personal.tex was found. Using it...}
-}{
-  \ClassInfo{\myClassName}{no personal.tex! Configre the titlepage yourself}
-}
 
 %% typesetting indexes upright or standart
 \def\subinrm#1{\sb{\mathrm{#1}}}
diff --git a/src/HsH-report.cls b/src/HsH-report.cls
index e4463c1..58e5c87 100644
--- a/src/HsH-report.cls
+++ b/src/HsH-report.cls
@@ -108,11 +108,6 @@
 \newcommand{\keywords}[1]{\gdef\@keywords{#1}}%
 \let\@author\@empty
 \let\@keywords\@empty
-\InputIfFileExists{personal.tex}{
-  \ClassInfo{\myClassName}{personal.tex was found. Using it...}
-}{
-  \ClassInfo{\myClassName}{no personal.tex! Configre the titlepage yourself}
-}
 
 %% typesetting indexes upright or standart
 \def\subinrm#1{\sb{\mathrm{#1}}}
diff --git a/src/HsH-standalone.cls b/src/HsH-standalone.cls
index 417fc5e..03b7ac6 100644
--- a/src/HsH-standalone.cls
+++ b/src/HsH-standalone.cls
@@ -82,27 +82,6 @@
 \PassOptionsToPackage{free-standing-units,abbreviations}{siunitx}
 \PassOptionsToPackage{european,EFvoltages,straightvoltages,betterproportions}{circuitikz}
 
-%% title matters ----------------------------------------------------------------------------------
-\newcommand*{\@titlehead}{}%
-\newcommand{\titlehead}[1]{\gdef\@titlehead{#1}}%
-\newcommand*{\@subject}{}%
-\newcommand*{\subject}[1]{\gdef\@subject{#1}}%
-\newcommand*{\@subtitle}{}%
-\newcommand*{\subtitle}[1]{\gdef\@subtitle{#1}}%
-\newcommand*{\@matrikelnr}{}%
-\newcommand{\matrikelnr}[1]{\gdef\@matrikelnr{#1}}%
-\newcommand*{\@professor}{}%
-\newcommand{\professor}[1]{\gdef\@professor{#1}}%
-\newcommand*{\@keywords}{}%
-\newcommand{\keywords}[1]{\gdef\@keywords{#1}}%
-\let\@author\@empty
-\let\@keywords\@empty
-\InputIfFileExists{personal.tex}{
-  \ClassInfo{\myClassName}{personal.tex was found. Using it...}
-}{
-  \ClassInfo{\myClassName}{no personal.tex! Configre the titlepage yourself}
-}
-
 %% typesetting indexes upright or standart
 \def\subinrm#1{\sb{\mathrm{#1}}}
 {\catcode`\_=13 \global\let_=\subinrm}
diff --git a/src/personal.tex b/src/personal.tex
deleted file mode 100644
index 625f792..0000000
--- a/src/personal.tex
+++ /dev/null
@@ -1,16 +0,0 @@
-% \extratitle{SCHMUTZTITEL}
-\author{
-	Max Mustermann,
-	Mira Musterfrau
-}
-\matrikelnr{
-	1234567,
-	9876543
-}
-\titlehead{titlehead}
-\subject{Subject}
-\title{Title}
-\subtitle{Subtitle}
-\date{\today}
-\professor{Professor}
-\keywords{test, baum}
diff --git a/test.tex b/test.tex
index 41ba96d..9542069 100644
--- a/test.tex
+++ b/test.tex
@@ -1,4 +1,4 @@
-\documentclass[twoside,f1,ngerman]{HsH-report}
+\documentclass[twoside,f1]{HsH-report}
 
 \usepackage{color}
 \usepackage{lipsum}
@@ -7,6 +7,24 @@
 \usepackage{soul}
 \addbibresource{bib/localBibliography.bib}
 
+%% documents personal data:
+\author{
+	Max Mustermann,
+	Mira Musterfrau
+}
+\matrikelnr{
+	1234567,
+	9876543
+}
+\titlehead{titlehead}
+\subject{Subject}
+\title{Title}
+\subtitle{Subtitle}
+\date{\today}
+\professor{Professor}
+\keywords{test, baum}
+
+
 \begin{document}
 
 \pagenumbering{Roman}
-- 
GitLab