From 9b6859a64a89d0e3758d6adf8d8d88a6b6ddef03 Mon Sep 17 00:00:00 2001
From: Malin Freeborn <malinfreeborn@posteo.net>
Date: Fri, 15 Dec 2023 00:58:53 +0100
Subject: [PATCH] set titlesec explicitly

---
 layout.sty | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/layout.sty b/layout.sty
index d4718bdd..beea58ba 100644
--- a/layout.sty
+++ b/layout.sty
@@ -40,7 +40,8 @@
 \RequirePackage{graphicx}
 \RequirePackage{etoolbox}
 \RequirePackage{xparse}
-\RequirePackage{titlesec,titletoc}
+\RequirePackage[explicit]{titlesec}
+\RequirePackage{titletoc}
 \RequirePackage{fancyhdr}
 \RequirePackage{adforn}% for fancy headrules
 \RequirePackage{needspace}
@@ -644,7 +645,7 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west)
   \node[minimum width=.25\textwidth, inner sep=-5, outer sep=0, anchor=south west, text width=.25\textwidth, align=left] at (chapname.south east) {\chapnumfont\textcolor{chapnumcol}{\Roman{chapter}}};
 \end{tikzpicture}}
 {0pt}
-{\Huge}
+{\Huge#1}
 
 
 \titleformat{\section}%
@@ -656,7 +657,7 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west)
   }%
   {\Roman{section}}%
   {1pc}%
-  {}%
+  {#1}%
   [\textcolor{\pageSideColor}{\titlerule}]%
 
 \renewcommand*{\thesection}{\arabic{section}}
@@ -668,7 +669,7 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west)
   \LARGE}%
   {\thesubsection}%
   {1em}%
-  {}%
+  {\adforn{26}~#1~\adforn{54}}%
   [\textcolor{\pageSideColor}{\titlerule}%
   \vspace{1ex}%
   \setcounter{list}{0}]
@@ -677,7 +678,7 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west)
 {\needspace{3em}\filright
 \titleFont
 \large}
-{}{.5em}{}
+{}{.5em}{#1}
 
 \titlespacing{\subsubsection}
 {9pc}{1.5ex plus .1ex minus .2ex}{1pc}
-- 
GitLab