From 1afa6a740f87006c685adc54d0ac6132c554cc17 Mon Sep 17 00:00:00 2001
From: Jan Wille <jan.wille@stud.hs-hannover.de>
Date: Thu, 2 May 2024 15:45:42 +0200
Subject: [PATCH] change 'text'  suffix to ' name'

---
 src/HsH-article.cls | 24 ++++++++++++------------
 src/HsH-classes.dtx | 33 +++++++++++++++++++++------------
 src/HsH-classes.pdf |  4 ++--
 src/HsH-report.cls  | 24 ++++++++++++------------
 4 files changed, 47 insertions(+), 38 deletions(-)

diff --git a/src/HsH-article.cls b/src/HsH-article.cls
index 59d25ab..d973341 100644
--- a/src/HsH-article.cls
+++ b/src/HsH-article.cls
@@ -326,6 +326,15 @@
 \def\@firstexaminer{\@empty}
 \newcommand{\secondexaminer}[1]{\gdef\@secondexaminer{#1}}
 \def\@secondexaminer{\@empty}
+\newcommand{\professorname}{Professor}
+\newcommand{\firstexaminername}{First examiner}
+\newcommand{\secondexaminername}{Second examiner}
+\newcaptionname{english}\professorname{Professor}
+\newcaptionname{english}\firstexaminername{First examiner}
+\newcaptionname{english}\secondexaminername{Second examiner}
+\newcaptionname{german,ngerman}\professorname{Professor(in)/Lehrbeauftragte(r)}
+\newcaptionname{german,ngerman}\firstexaminername{Erstpr{\"u}fer(in)}
+\newcaptionname{german,ngerman}\secondexaminername{Zweitpr{\"u}fer(in)}
 \newcommand{\keywords}[1]{\gdef\@keywords{#1}}
 \def\@keywords{\@empty}
 \RequirePackage{pgffor}
@@ -477,15 +486,6 @@
 \ofoot*{\pagemark}
 \pagestyle{HsHheadings}
 \automark{section}
-\newcommand{\professortext}{Professor}
-\newcommand{\firstexaminertext}{First examiner}
-\newcommand{\secondexaminertext}{Second examiner}
-\newcaptionname{english}\professortext{Professor}
-\newcaptionname{english}\firstexaminertext{First examiner}
-\newcaptionname{english}\secondexaminertext{Second examiner}
-\newcaptionname{german,ngerman}\professortext{Professor(in)/Lehrbeauftragte(r)}
-\newcaptionname{german,ngerman}\firstexaminertext{Erstpr{\"u}fer(in)}
-\newcaptionname{german,ngerman}\secondexaminertext{Zweitpr{\"u}fer(in)}
 \newtoks\@tabtoks
 \newcommand\addtabtoks[1]{\global\@tabtoks\expandafter{\the\@tabtoks#1}}
 \newcommand\eaddtabtoks[1]{\edef\mytmp{#1}\expandafter\addtabtoks\expandafter{\mytmp}}
@@ -594,9 +594,9 @@
         \if\@param l\begin{tabular}{@{}l l}\fi
         \if\@param c\begin{tabular}{l l}\fi
         \if\@param r\begin{tabular}{r r@{}}\fi
-          \if\@professor\@empty\else\textbf{\professortext:}&\@professor\\\fi
-          \if\@firstexaminer\@empty\else\textbf{\firstexaminertext:}&\@firstexaminer\\\fi
-          \if\@secondexaminer\@empty\else\textbf{\secondexaminertext:}&\@secondexaminer\\\fi
+          \if\@professor\@empty\else\textbf{\professorname:}&\@professor\\\fi
+          \if\@firstexaminer\@empty\else\textbf{\firstexaminername:}&\@firstexaminer\\\fi
+          \if\@secondexaminer\@empty\else\textbf{\secondexaminername:}&\@secondexaminer\\\fi
         \end{tabular}
       }
       \ifx\@dedication\@empty\else
diff --git a/src/HsH-classes.dtx b/src/HsH-classes.dtx
index e1d4c9f..0c0193a 100644
--- a/src/HsH-classes.dtx
+++ b/src/HsH-classes.dtx
@@ -1204,6 +1204,24 @@ http://www.latex-project.org/lppl.txt
 %    \end{macrocode}
 %     \end{macro}
 %
+%     \begin{macro}{\professorname,\firstexaminername,\secondexaminername}
+%       \changes{v3.02}{2024-05-02}{change the suffix to 'name', which is more inline with general \LaTeX{}}
+%
+%       For the three previous macros, we also need descriptive text to print on the titlepage.
+%       The commands storing that text are defined here:
+%    \begin{macrocode}
+\newcommand{\professorname}{Professor}
+\newcommand{\firstexaminername}{First examiner}
+\newcommand{\secondexaminername}{Second examiner}
+\newcaptionname{english}\professorname{Professor}
+\newcaptionname{english}\firstexaminername{First examiner}
+\newcaptionname{english}\secondexaminername{Second examiner}
+\newcaptionname{german,ngerman}\professorname{Professor(in)/Lehrbeauftragte(r)}
+\newcaptionname{german,ngerman}\firstexaminername{Erstpr{\"u}fer(in)}
+\newcaptionname{german,ngerman}\secondexaminername{Zweitpr{\"u}fer(in)}
+%    \end{macrocode}
+%     \end{macro}
+%
 %     \begin{macro}{\keywords,\@keywords}
 %       The macro-group defines and holds keywords which describe the document. They
 %       are used when printing the abstract as well as in the PDF's meta-data.
@@ -1547,15 +1565,6 @@ http://www.latex-project.org/lppl.txt
 %       \KOMAScript{} parrentclass, but was modified to create the desired style.
 %    \begin{macrocode}
 %<*article|report>
-\newcommand{\professortext}{Professor}
-\newcommand{\firstexaminertext}{First examiner}
-\newcommand{\secondexaminertext}{Second examiner}
-\newcaptionname{english}\professortext{Professor}
-\newcaptionname{english}\firstexaminertext{First examiner}
-\newcaptionname{english}\secondexaminertext{Second examiner}
-\newcaptionname{german,ngerman}\professortext{Professor(in)/Lehrbeauftragte(r)}
-\newcaptionname{german,ngerman}\firstexaminertext{Erstpr{\"u}fer(in)}
-\newcaptionname{german,ngerman}\secondexaminertext{Zweitpr{\"u}fer(in)}
 \newtoks\@tabtoks
 \newcommand\addtabtoks[1]{\global\@tabtoks\expandafter{\the\@tabtoks#1}}
 \newcommand\eaddtabtoks[1]{\edef\mytmp{#1}\expandafter\addtabtoks\expandafter{\mytmp}}
@@ -1726,9 +1735,9 @@ http://www.latex-project.org/lppl.txt
         \if\@param l\begin{tabular}{@{}l l}\fi
         \if\@param c\begin{tabular}{l l}\fi
         \if\@param r\begin{tabular}{r r@{}}\fi
-          \if\@professor\@empty\else\textbf{\professortext:}&\@professor\\\fi
-          \if\@firstexaminer\@empty\else\textbf{\firstexaminertext:}&\@firstexaminer\\\fi
-          \if\@secondexaminer\@empty\else\textbf{\secondexaminertext:}&\@secondexaminer\\\fi
+          \if\@professor\@empty\else\textbf{\professorname:}&\@professor\\\fi
+          \if\@firstexaminer\@empty\else\textbf{\firstexaminername:}&\@firstexaminer\\\fi
+          \if\@secondexaminer\@empty\else\textbf{\secondexaminername:}&\@secondexaminer\\\fi
         \end{tabular}
       }
 %<*article>
diff --git a/src/HsH-classes.pdf b/src/HsH-classes.pdf
index d865837..ea78068 100644
--- a/src/HsH-classes.pdf
+++ b/src/HsH-classes.pdf
@@ -1,3 +1,3 @@
 version https://git-lfs.github.com/spec/v1
-oid sha256:f8ded54f026e76b9a601a3e11c36b02ade14144ceba8415fe2bcaa6494fcd2d7
-size 315327
+oid sha256:a7ecf39cf4427d441cda9040505dc38e93416d13a982a38b1a7c88fcbe767bab
+size 315982
diff --git a/src/HsH-report.cls b/src/HsH-report.cls
index 9582d33..83a378e 100644
--- a/src/HsH-report.cls
+++ b/src/HsH-report.cls
@@ -339,6 +339,15 @@
 \def\@firstexaminer{\@empty}
 \newcommand{\secondexaminer}[1]{\gdef\@secondexaminer{#1}}
 \def\@secondexaminer{\@empty}
+\newcommand{\professorname}{Professor}
+\newcommand{\firstexaminername}{First examiner}
+\newcommand{\secondexaminername}{Second examiner}
+\newcaptionname{english}\professorname{Professor}
+\newcaptionname{english}\firstexaminername{First examiner}
+\newcaptionname{english}\secondexaminername{Second examiner}
+\newcaptionname{german,ngerman}\professorname{Professor(in)/Lehrbeauftragte(r)}
+\newcaptionname{german,ngerman}\firstexaminername{Erstpr{\"u}fer(in)}
+\newcaptionname{german,ngerman}\secondexaminername{Zweitpr{\"u}fer(in)}
 \newcommand{\keywords}[1]{\gdef\@keywords{#1}}
 \def\@keywords{\@empty}
 \RequirePackage{pgffor}
@@ -491,15 +500,6 @@
 \pagestyle{HsHheadings}
 \automark{chapter}
 \renewcommand*{\chapterpagestyle}{HsHheadings}
-\newcommand{\professortext}{Professor}
-\newcommand{\firstexaminertext}{First examiner}
-\newcommand{\secondexaminertext}{Second examiner}
-\newcaptionname{english}\professortext{Professor}
-\newcaptionname{english}\firstexaminertext{First examiner}
-\newcaptionname{english}\secondexaminertext{Second examiner}
-\newcaptionname{german,ngerman}\professortext{Professor(in)/Lehrbeauftragte(r)}
-\newcaptionname{german,ngerman}\firstexaminertext{Erstpr{\"u}fer(in)}
-\newcaptionname{german,ngerman}\secondexaminertext{Zweitpr{\"u}fer(in)}
 \newtoks\@tabtoks
 \newcommand\addtabtoks[1]{\global\@tabtoks\expandafter{\the\@tabtoks#1}}
 \newcommand\eaddtabtoks[1]{\edef\mytmp{#1}\expandafter\addtabtoks\expandafter{\mytmp}}
@@ -624,9 +624,9 @@
         \if\@param l\begin{tabular}{@{}l l}\fi
         \if\@param c\begin{tabular}{l l}\fi
         \if\@param r\begin{tabular}{r r@{}}\fi
-          \if\@professor\@empty\else\textbf{\professortext:}&\@professor\\\fi
-          \if\@firstexaminer\@empty\else\textbf{\firstexaminertext:}&\@firstexaminer\\\fi
-          \if\@secondexaminer\@empty\else\textbf{\secondexaminertext:}&\@secondexaminer\\\fi
+          \if\@professor\@empty\else\textbf{\professorname:}&\@professor\\\fi
+          \if\@firstexaminer\@empty\else\textbf{\firstexaminername:}&\@firstexaminer\\\fi
+          \if\@secondexaminer\@empty\else\textbf{\secondexaminername:}&\@secondexaminer\\\fi
         \end{tabular}
       }
       \par
-- 
GitLab