From 28fb5d41012f32fbca9eb7ae6fb449c74dd81d41 Mon Sep 17 00:00:00 2001
From: Jan Wille <jan.wille@stud.hs-hannover.de>
Date: Tue, 8 Oct 2024 18:08:08 +0200
Subject: [PATCH] disable draft for `scrlayer-scrpage` to disable
 layercontentsrulers

---
 src/HsH-article.cls    |  4 ++--
 src/HsH-classes.dtx    | 12 ++++--------
 src/HsH-classes.pdf    |  4 ++--
 src/HsH-report.cls     |  4 ++--
 src/HsH-standalone.cls |  3 +--
 5 files changed, 11 insertions(+), 16 deletions(-)

diff --git a/src/HsH-article.cls b/src/HsH-article.cls
index d65e6e9..8259013 100644
--- a/src/HsH-article.cls
+++ b/src/HsH-article.cls
@@ -17,7 +17,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}[2022-06-01]
 \ProvidesClass{HsH-article}
-  [2024-07-21 3.03 HsH-class based on KOMA]
+  [2024-08-10 3.03.dev0 HsH-class based on KOMA]
 \let\HsHClassName\@currname
 \def\HsHClassName@ParrentClass{%
   scrartcl%
@@ -426,7 +426,7 @@
 }
 \upsubscripts
 \raggedbottom
-\let\layercontentsmeasure\relax
+\PassOptionsToPackage{draft=false}{scrlayer-scrpage}
 \RequirePackage{scrlayer-scrpage}
 \FamilyOptions{KOMA}{headsepline,singlespacing=true}
 \newpagestyle{HsHheadings}{
diff --git a/src/HsH-classes.dtx b/src/HsH-classes.dtx
index 442cc1f..8db06d8 100644
--- a/src/HsH-classes.dtx
+++ b/src/HsH-classes.dtx
@@ -74,7 +74,7 @@ http://www.latex-project.org/lppl.txt
 %<report>\ProvidesClass{HsH-report}
 %<standalone>\ProvidesClass{HsH-standalone}
 %<*article|report|standalone>
-  [2024-07-21 3.03.dev0 HsH-class based on KOMA]
+  [2024-08-10 3.03.dev0 HsH-class based on KOMA]
 %</article|report|standalone>
 %<*driver> ^^A ---------- documentation driver -----------------------------------------
 \documentclass{ltxdoc}
@@ -1496,12 +1496,6 @@ http://www.latex-project.org/lppl.txt
 \raggedbottom
 %    \end{macrocode}
 %
-%     The ruler shown in the top and left margin with the \opt{draft} option is
-%     removed.
-%    \begin{macrocode}
-\let\layercontentsmeasure\relax
-%    \end{macrocode}
-%
 %   \subsubsection{Header and footer}
 %
 %    \begin{macrocode}
@@ -1509,8 +1503,10 @@ http://www.latex-project.org/lppl.txt
 %    \end{macrocode}
 %
 %     The header and footer are styled using the low-level commands provided by the
-%     \KOMAScript{} package \pkg{scrlayer-scrpage}.
+%     \KOMAScript{} package \pkg{scrlayer-scrpage}. We also disable the \opt{draft}
+%     option for this package as it produces ruler in the heading which we don't need.
 %    \begin{macrocode}
+\PassOptionsToPackage{draft=false}{scrlayer-scrpage}
 \RequirePackage{scrlayer-scrpage}
 \FamilyOptions{KOMA}{headsepline,singlespacing=true}
 %    \end{macrocode}
diff --git a/src/HsH-classes.pdf b/src/HsH-classes.pdf
index 4e060aa..f19fd6c 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:96cd98d7eb3dcc0d2310988d41d2eebd7abad0aaa3f6abcb5b7387ca64c50b39
-size 315802
+oid sha256:b51a963d3e2867ecf4d567b04984e59ae98956175daba48b541eb1a62a7cf612
+size 315912
diff --git a/src/HsH-report.cls b/src/HsH-report.cls
index e6222d7..4409e31 100644
--- a/src/HsH-report.cls
+++ b/src/HsH-report.cls
@@ -17,7 +17,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}[2022-06-01]
 \ProvidesClass{HsH-report}
-  [2024-07-21 3.03 HsH-class based on KOMA]
+  [2024-08-10 3.03.dev0 HsH-class based on KOMA]
 \let\HsHClassName\@currname
 \def\HsHClassName@ParrentClass{%
   scrreprt%
@@ -439,7 +439,7 @@
 }
 \upsubscripts
 \raggedbottom
-\let\layercontentsmeasure\relax
+\PassOptionsToPackage{draft=false}{scrlayer-scrpage}
 \RequirePackage{scrlayer-scrpage}
 \FamilyOptions{KOMA}{headsepline,singlespacing=true}
 \newpagestyle{HsHheadings}{
diff --git a/src/HsH-standalone.cls b/src/HsH-standalone.cls
index a4297c3..61a94ce 100644
--- a/src/HsH-standalone.cls
+++ b/src/HsH-standalone.cls
@@ -17,7 +17,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}[2022-06-01]
 \ProvidesClass{HsH-standalone}
-  [2024-07-21 3.03 HsH-class based on KOMA]
+  [2024-08-10 3.03.dev0 HsH-class based on KOMA]
 \let\HsHClassName\@currname
 \def\HsHClassName@ParrentClass{%
   standalone%
@@ -223,7 +223,6 @@
 \renewcommand{\labelitemiv}{\raisebox{-.1ex}{\scalebox{1.3}{$\cdot$}}}
 \upsubscripts
 \raggedbottom
-\let\layercontentsmeasure\relax
 \newcaptionname{english}\professorname{Professor}
 \newcaptionname{german,ngerman}\professorname{Professor(in)/Lehrbeauftragte(r)}
 \newcaptionname{english}\firstexaminername{First examiner}
-- 
GitLab