So I came across some problems with the chapter layout, which has to do with the \chapter*
command. This is how I have the layout set up right now, it was done by a friend, who has more experience with LaTeX and KOMA than me:
\documentclass[11pt,
chapterprefix=true
]{scrbook}
\usepackage[]{graphicx}
\usepackage[scaled=.90]{helvet}
\usepackage[automark]{scrlayer-scrpage}
\usepackage{blindtext}
\usepackage{ragged2e}
\setkomafont{chapter}{\Huge\bfseries}
\addtokomafont{chapterprefix}{\raggedleft}
\renewcommand*{\raggedsection}{\raggedright}
\renewcommand*{\chapterformat}{%
\hrulefill\enskip\mbox{\scalebox{3}{\thechapter\autodot}}\vspace{-0.6\baselineskip}}
\newcommand{\chap}[1]{\chapter{#1}\vspace{-0.8\baselineskip}\hrule\vspace{1.5\baselineskip}}
\begin{document}
\tableofcontents
\chapter*{Introduction}
\addcontentsline{toc}{chapter}{Introduction}
\blindtext
\chap{Theory}
\blindtext
\end{document}
now this results in the chapter layout I want for the "Theory" chapter, however it doesn't work for the "Introduction" chapter, because both bars are missing.
So would it be possible to have the layout like the following:
------------
Introduction
------------
text
----------1
Theory
-----------
the same way it was done in the minimal working example above, however, but also for the introduction chapter. Both chapters should be in the ToC and the "Introduction" should not be enumerated. I cannot get anything to do exactly that, maybe you guys have an idea, also any improvement to the layout in general would be greatly appreciated.