From 1d9f9daec93a8f545e16ae5cf325d82f63ffd029 Mon Sep 17 00:00:00 2001
From: Jan Wille <jan.wille@stud.hs-hannover.de>
Date: Mon, 3 Jul 2023 19:50:06 +0200
Subject: [PATCH] remove catcode

---
 HsH-classes.dtx        |  1 -
 src/HsH-article.cls    | 25 ++++++++++++++++---------
 src/HsH-report.cls     | 25 ++++++++++++++++---------
 src/HsH-standalone.cls | 13 ++++++-------
 4 files changed, 38 insertions(+), 26 deletions(-)

diff --git a/HsH-classes.dtx b/HsH-classes.dtx
index 869c407..8017e89 100644
--- a/HsH-classes.dtx
+++ b/HsH-classes.dtx
@@ -190,7 +190,6 @@
 %% typesetting indexes upright or standart
 \def\subinrm#1{\sb{\mathrm{#1}}}
 {\catcode`\_=13 \global\let_=\subinrm}
-\mathcode`_="8000
 % the toggle for upright subscripts
 \newcommand\upsubscripts{\catcode`\_=12 }
 % the toggle for italic subscripts
diff --git a/src/HsH-article.cls b/src/HsH-article.cls
index 6c709cb..5240a5b 100644
--- a/src/HsH-article.cls
+++ b/src/HsH-article.cls
@@ -5,21 +5,21 @@
 %% The original source files were:
 %%
 %% HsH-classes.dtx  (with options: `article')
-%%
+%% 
 %% This is a generated file.
-%%
+%% 
 %% Copyright (C) 2021 by Jan Wille <mail@janwille.de>
-%%
+%% 
 %% This file may be distributed and/or modified under the conditions of
 %% the LaTeX Project Public License, either version 1.3 of this license
 %% or (at your option) any later version.  The latest version of this
 %% license is in:
-%%
+%% 
 %%    http://www.latex-project.org/lppl.txt
-%%
+%% 
 %% and version 1.3 or later is part of all distributions of LaTeX version
 %% 2021/01/01 or later.
-%%
+%% 
 \typeout{Adapted from KOMA script for use in Hochschule Hannover <2022-03-28> Jan Wille}
 \NeedsTeXFormat{LaTeX2e}
 \newcommand{\myClassName}{HsH-article}
@@ -140,7 +140,6 @@
 %% typesetting indexes upright or standart
 \def\subinrm#1{\sb{\mathrm{#1}}}
 {\catcode`\_=13 \global\let_=\subinrm}
-\mathcode`_="8000
 \newcommand\upsubscripts{\catcode`\_=12 }
 \newcommand\normalsubscripts{\catcode`\_=8 }
 \upsubscripts
@@ -153,14 +152,22 @@
       \ifx\@shorttitle\@empty\@title\else\@shorttitle\fi
     }%
   }
-  {\parbox[b]{\sls@headwidth}{\LaTeXraggedleft\leftmark}}
+  {
+    \parbox[b]{\sls@headwidth}{
+      \LaTeXraggedleft
+      \leftmark
+    }%
+  }
   {
     \parbox[b]{.45\sls@headwidth}{
       \LaTeXraggedright
       \ifx\@shorttitle\@empty\@title\else\@shorttitle\fi
     }%
     \hfill
-    \parbox[b]{.45\sls@headwidth}{\LaTeXraggedleft\headmark}%
+    \parbox[b]{.45\sls@headwidth}{
+      \LaTeXraggedleft
+      \headmark
+    }%
   }
   (\textwidth,.1pt)
 }{
diff --git a/src/HsH-report.cls b/src/HsH-report.cls
index 1378837..111a7ae 100644
--- a/src/HsH-report.cls
+++ b/src/HsH-report.cls
@@ -5,21 +5,21 @@
 %% The original source files were:
 %%
 %% HsH-classes.dtx  (with options: `report')
-%%
+%% 
 %% This is a generated file.
-%%
+%% 
 %% Copyright (C) 2021 by Jan Wille <mail@janwille.de>
-%%
+%% 
 %% This file may be distributed and/or modified under the conditions of
 %% the LaTeX Project Public License, either version 1.3 of this license
 %% or (at your option) any later version.  The latest version of this
 %% license is in:
-%%
+%% 
 %%    http://www.latex-project.org/lppl.txt
-%%
+%% 
 %% and version 1.3 or later is part of all distributions of LaTeX version
 %% 2021/01/01 or later.
-%%
+%% 
 \typeout{Adapted from KOMA script for use in Hochschule Hannover <2022-03-28> Jan Wille}
 \NeedsTeXFormat{LaTeX2e}
 \newcommand{\myClassName}{HsH-report}
@@ -140,7 +140,6 @@
 %% typesetting indexes upright or standart
 \def\subinrm#1{\sb{\mathrm{#1}}}
 {\catcode`\_=13 \global\let_=\subinrm}
-\mathcode`_="8000
 \newcommand\upsubscripts{\catcode`\_=12 }
 \newcommand\normalsubscripts{\catcode`\_=8 }
 \upsubscripts
@@ -153,14 +152,22 @@
       \ifx\@shorttitle\@empty\@title\else\@shorttitle\fi
     }%
   }
-  {\parbox[b]{\sls@headwidth}{\LaTeXraggedleft\leftmark}}
+  {
+    \parbox[b]{\sls@headwidth}{
+      \LaTeXraggedleft
+      \leftmark
+    }%
+  }
   {
     \parbox[b]{.45\sls@headwidth}{
       \LaTeXraggedright
       \ifx\@shorttitle\@empty\@title\else\@shorttitle\fi
     }%
     \hfill
-    \parbox[b]{.45\sls@headwidth}{\LaTeXraggedleft\headmark}%
+    \parbox[b]{.45\sls@headwidth}{
+      \LaTeXraggedleft
+      \headmark
+    }%
   }
   (\textwidth,.1pt)
 }{
diff --git a/src/HsH-standalone.cls b/src/HsH-standalone.cls
index 3ff2d25..1bdde11 100644
--- a/src/HsH-standalone.cls
+++ b/src/HsH-standalone.cls
@@ -5,21 +5,21 @@
 %% The original source files were:
 %%
 %% HsH-classes.dtx  (with options: `standalone')
-%%
+%% 
 %% This is a generated file.
-%%
+%% 
 %% Copyright (C) 2021 by Jan Wille <mail@janwille.de>
-%%
+%% 
 %% This file may be distributed and/or modified under the conditions of
 %% the LaTeX Project Public License, either version 1.3 of this license
 %% or (at your option) any later version.  The latest version of this
 %% license is in:
-%%
+%% 
 %%    http://www.latex-project.org/lppl.txt
-%%
+%% 
 %% and version 1.3 or later is part of all distributions of LaTeX version
 %% 2021/01/01 or later.
-%%
+%% 
 \typeout{Adapted from KOMA script for use in Hochschule Hannover <2022-03-28> Jan Wille}
 \NeedsTeXFormat{LaTeX2e}
 \newcommand{\myClassName}{HsH-standalone}
@@ -84,7 +84,6 @@
 %% typesetting indexes upright or standart
 \def\subinrm#1{\sb{\mathrm{#1}}}
 {\catcode`\_=13 \global\let_=\subinrm}
-\mathcode`_="8000
 \newcommand\upsubscripts{\catcode`\_=12 }
 \newcommand\normalsubscripts{\catcode`\_=8 }
 \upsubscripts
-- 
GitLab