von Gast » Di 8. Jan 2019, 08:05
Das Beispiel enthält eine Menge Code, der für das Problem unerheblich ist. Dein Hauptproblem ist, dass du eine mehrzeilige Kapitelüberschrift mit Präfixzeile verwenden willst, das KOMA-Script aber nicht sagst. Beachte aber bitte auch die weiteren Kommentare und Änderungen, die ich vorgenommen habe:
\documentclass[
chapterprefix, % mehrzeilige Kapitelüberschrift mit Kapitel-Nummern-Präfixzeile
]{scrbook}
\usepackage[ % page layout modifications
paper=a4paper, % - use A4 paper size
%scale={0.86,0.94}, % - total body size (h,v)
%scale={0.86,0.94}, % - total body size (h,v)
nohead, % - no header
head=13.6pt,% wegen der Warnung von scrlayer-scrpage
includefoot, % - include footer space
includemp, % - include side note space
bindingoffset=0.5cm, % - binding correction
top=2.25cm, % - total body: top margin
left=3.75cm, % - total body: left margin (odd pages)
right=0.75cm, % - total body: right margin (odd pages)
bottom=1.5cm, % - total body: bottom margin
marginparwidth=1.75cm, % - width for side note
marginparsep=10pt, % - space between notes and body text (content)
footskip=2cm, % - footer skip size
]{geometry}
\usepackage{xcolor}
\usepackage{graphicx}% Option pdftex weglassen!!!
\usepackage{blindtext}
%xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
%Define chapter veelo style
%xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
\setkomafont{chapter}{\Huge\raggedleft}
\setkomafont{chapterprefix}{\Large}
\let\raggedchapter\raggedleft
\renewcommand*{\chapterformat}{\MakeUppercase{\chapapp}\makebox[0pt][l]{\hspace*{\marginparsep}\Huge\thechapter~\rule{15mm}{\ht\strutbox}}}
%\renewcommand*{\chapterformat}{%
% \makebox[\linewidth][r]{\MakeUppercase{\chapappifchapterprefix{}}}%
% \enskip\resizebox{!}{1.2cm}{\thechapter}\rlap{ \rule{15cm}{1.2cm} }%
%}
\RedeclareSectionCommand[beforeskip=5pt,afterskip=20pt]{chapter}
%\renewcommand*\chapterheadstartvskip{\vspace{5pt}}% veraltet
%\renewcommand*\chapterheadendvskip{\vspace{20pt}}% veraltet
% --- Jetzt folgt eine Menge Zeug, das für das Problem vollkommen unerheblich ist!
%xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
% My own font definitions
%xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
\newcommand{\helv}{\fontfamily{phv}\fontsize{9}{11}\selectfont}
\newcommand{\book}{\fontfamily{pbk}\fontseries{m}\fontsize{11}{13}\selectfont}
\newcommand{\tgherosfont}{\fontfamily{qhv}\selectfont}
\addtokomafont{disposition}{\usefont{T1}{bch}{b}{n}\selectfont} % set font for ToC, LoT
\definecolor{ctcolormain}{cmyk}{0, 1, .8, .2}%
\definecolor{ctcoloraccessory}{cmyk}{0, 0, 0, .7}%
\definecolor{ctcolorblack}{gray}{0}
\definecolor{ctcolorgray}{gray}{.5}
\definecolor{ctcolorgraylight}{gray}{.8}
\colorlet{ctcolorfooterpage}{ctcolorblack}
\colorlet{ctcolorfooterline}{ctcolormain}
\colorlet{ctcolorfootermark}{ctcolorblack}
\colorlet{ctcolorfootertitle}{ctcolormain}
%xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
% Footer and Header
%xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
\usepackage[automark]{scrlayer-scrpage}% sets pagestyle scrheadings automatically
\clearpairofpagestyles
\lefoot{\hspace*{.75cm}\headmark}
\rofoot{\headmark\hspace*{.75cm}}
\newcommand*\pagenumberrule{%
{\color{ctcolorfooterline}\rule[-90pt]{1.25pt}{100pt}}%
}
\DeclareNewLayer[
foreground,
oddpage,
foot,
contents={%
\hfill
\makebox[0pt][l]{%
\pagenumberrule
\hspace*{10pt}%
\pagemark
}%
}
]{pagenumber.odd}
\DeclareNewLayer[
foreground,
evenpage,
foot,
contents={%
\makebox[0pt][r]{%
\pagemark
\hspace*{10pt}%
\pagenumberrule
}%
}
]{pagenumber.even}
\AddLayersToPageStyle{scrheadings}{pagenumber.odd,pagenumber.even}
\AddLayersToPageStyle{plain.scrheadings}{pagenumber.odd,pagenumber.even}
\setkomafont{pageheadfoot}{\color{ctcolorfootertitle}\tgherosfont\footnotesize}
\newkomafont{marknumber}{\color{ctcolorfootermark}\bfseries}
\setkomafont{pagenumber}{\color{ctcolorfooterpage}\tgherosfont\normalsize\bfseries}
\renewcommand\chaptermarkformat{{\usekomafont{marknumber}\chaptername\ \thechapter}\quad}
\renewcommand\sectionmarkformat{{\usekomafont{marknumber}\thesection}\quad}
%xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
% --- Interessant wird es erst wieder hier, wobei man im Body auch einfach \blinddocument hätte verwenden können.
\begin{document}
\chapter{Chapter Style}
\blindtext
\blindtext
\blindtext
\section{Define a section}
\blindtext
\blindtext
\end{document}
Das Beispiel enthält eine Menge Code, der für das Problem unerheblich ist. Dein Hauptproblem ist, dass du eine mehrzeilige Kapitelüberschrift mit Präfixzeile verwenden willst, das KOMA-Script aber nicht sagst. Beachte aber bitte auch die weiteren Kommentare und Änderungen, die ich vorgenommen habe: [code]\documentclass[
chapterprefix, % mehrzeilige Kapitelüberschrift mit Kapitel-Nummern-Präfixzeile
]{scrbook}
\usepackage[ % page layout modifications
paper=a4paper, % - use A4 paper size
%scale={0.86,0.94}, % - total body size (h,v)
%scale={0.86,0.94}, % - total body size (h,v)
nohead, % - no header
head=13.6pt,% wegen der Warnung von scrlayer-scrpage
includefoot, % - include footer space
includemp, % - include side note space
bindingoffset=0.5cm, % - binding correction
top=2.25cm, % - total body: top margin
left=3.75cm, % - total body: left margin (odd pages)
right=0.75cm, % - total body: right margin (odd pages)
bottom=1.5cm, % - total body: bottom margin
marginparwidth=1.75cm, % - width for side note
marginparsep=10pt, % - space between notes and body text (content)
footskip=2cm, % - footer skip size
]{geometry}
\usepackage{xcolor}
\usepackage{graphicx}% Option pdftex weglassen!!!
\usepackage{blindtext}
%xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
%Define chapter veelo style
%xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
\setkomafont{chapter}{\Huge\raggedleft}
\setkomafont{chapterprefix}{\Large}
\let\raggedchapter\raggedleft
\renewcommand*{\chapterformat}{\MakeUppercase{\chapapp}\makebox[0pt][l]{\hspace*{\marginparsep}\Huge\thechapter~\rule{15mm}{\ht\strutbox}}}
%\renewcommand*{\chapterformat}{%
% \makebox[\linewidth][r]{\MakeUppercase{\chapappifchapterprefix{}}}%
% \enskip\resizebox{!}{1.2cm}{\thechapter}\rlap{ \rule{15cm}{1.2cm} }%
%}
\RedeclareSectionCommand[beforeskip=5pt,afterskip=20pt]{chapter}
%\renewcommand*\chapterheadstartvskip{\vspace{5pt}}% veraltet
%\renewcommand*\chapterheadendvskip{\vspace{20pt}}% veraltet
% --- Jetzt folgt eine Menge Zeug, das für das Problem vollkommen unerheblich ist!
%xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
% My own font definitions
%xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
\newcommand{\helv}{\fontfamily{phv}\fontsize{9}{11}\selectfont}
\newcommand{\book}{\fontfamily{pbk}\fontseries{m}\fontsize{11}{13}\selectfont}
\newcommand{\tgherosfont}{\fontfamily{qhv}\selectfont}
\addtokomafont{disposition}{\usefont{T1}{bch}{b}{n}\selectfont} % set font for ToC, LoT
\definecolor{ctcolormain}{cmyk}{0, 1, .8, .2}%
\definecolor{ctcoloraccessory}{cmyk}{0, 0, 0, .7}%
\definecolor{ctcolorblack}{gray}{0}
\definecolor{ctcolorgray}{gray}{.5}
\definecolor{ctcolorgraylight}{gray}{.8}
\colorlet{ctcolorfooterpage}{ctcolorblack}
\colorlet{ctcolorfooterline}{ctcolormain}
\colorlet{ctcolorfootermark}{ctcolorblack}
\colorlet{ctcolorfootertitle}{ctcolormain}
%xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
% Footer and Header
%xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
\usepackage[automark]{scrlayer-scrpage}% sets pagestyle scrheadings automatically
\clearpairofpagestyles
\lefoot{\hspace*{.75cm}\headmark}
\rofoot{\headmark\hspace*{.75cm}}
\newcommand*\pagenumberrule{%
{\color{ctcolorfooterline}\rule[-90pt]{1.25pt}{100pt}}%
}
\DeclareNewLayer[
foreground,
oddpage,
foot,
contents={%
\hfill
\makebox[0pt][l]{%
\pagenumberrule
\hspace*{10pt}%
\pagemark
}%
}
]{pagenumber.odd}
\DeclareNewLayer[
foreground,
evenpage,
foot,
contents={%
\makebox[0pt][r]{%
\pagemark
\hspace*{10pt}%
\pagenumberrule
}%
}
]{pagenumber.even}
\AddLayersToPageStyle{scrheadings}{pagenumber.odd,pagenumber.even}
\AddLayersToPageStyle{plain.scrheadings}{pagenumber.odd,pagenumber.even}
\setkomafont{pageheadfoot}{\color{ctcolorfootertitle}\tgherosfont\footnotesize}
\newkomafont{marknumber}{\color{ctcolorfootermark}\bfseries}
\setkomafont{pagenumber}{\color{ctcolorfooterpage}\tgherosfont\normalsize\bfseries}
\renewcommand\chaptermarkformat{{\usekomafont{marknumber}\chaptername\ \thechapter}\quad}
\renewcommand\sectionmarkformat{{\usekomafont{marknumber}\thesection}\quad}
%xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
% --- Interessant wird es erst wieder hier, wobei man im Body auch einfach \blinddocument hätte verwenden können.
\begin{document}
\chapter{Chapter Style}
\blindtext
\blindtext
\blindtext
\section{Define a section}
\blindtext
\blindtext
\end{document}[/code]