This Topic is complementary to my first forum topic:
https://latex.org/forum/viewtopic.php?f=48&t=34795
Till now I´ve been mainly working with KOMA-script and it´s documentation

Here are the adjustments I´ve done before:
Code: Select all
\documentclass[
% paper=a4,
fontsize=12pt,
]{scrreprt}
\usepackage{lipsum}
\usepackage{tgadventor}
\renewcommand*\familydefault{\sfdefault} % Only if the base font of the document is to be sans serif
\usepackage[T1]{fontenc}
%% NEW ADJUSTMENTS TO THE HEADINGS
%\newcommand*{\chapterformat}{
% \thechapter\autodot\enskip}
%%END NEW ADJUSTMENTS TO THE HEADINGS
\usepackage{xcolor}
\setlength{\fboxsep}{10pt}
\makeatletter
\renewcommand{\chapterlinesformat}[3]{%
\fcolorbox{black}{lightgray}{%
% \framebox{
\parbox{\dimexpr\linewidth-5
\fboxrule-2\fboxsep}{%
\@hangfrom{#2}#3%
}%
}%
}%}
\makeatother
\begin{document}
\chapter{Allemeine Anaben}
\lipsum[2]
\section{Konsensinhaber}
\lipsum[5]
\subsection{Subsection}
\lipsum[3]
\subsubsection{Subsubsection}
\end{document}
- The number should be "1. First Chapter" - also in section, subsection, subsubsection...
- The chaptertitle should use Uppercase letters or kapitälchen
As I´ve detected there are the following entries predefined for the command "\chapterformat"
Code: Select all
\newcommand*{\chapterformat}{%
\thechapter\autodot\enskip}
To achieve the dot at the end of the number I´would simply replace "\autodot" by "."
But I get the Error: "Command \chapterformat already defined. \thechapter\autodot\enskip}"
To understand the thing behind the surface:
What´s the difference between "\newcommand" and "\newcommand*"?
What does the command "\autodot" do by default?
Do you have some general tipps how to search for such answers - to prevent the need of a forum Topic next time?
To achieve the Uppercase letters in the chapter´s heading I´ve added tho following code:
Code: Select all
%% NEW ADJUSTMENTS TO THE HEADINGS
\addtokomafont{chapter}{\MakeUppercase}
%%END NEW ADJUSTMENTS TO THE HEADINGS
"Package xcolor Error: Undefined color `BLACK'. \chapter{Allemeine Anaben}"
Thanks and best regards Christoph