How can I add a dot after the section and chapter headings? It's supposed to look like something like this:
I understand that this can be achieved by using the titlesec package (see bottom of this post), but as far as I know, KOMA isn't really compatible with titlesec and I would imagine that there is some way to do this in KOMA, without using another package, but I couldn't find out how until now.1.2. Introduction.
Any ideas?
Cheers,
moggy
Code: Select all
\documentclass{scrbook}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
% macht, das die Kapitelnumber nicht in Nummerierung der Sections (und darunter) auftaucht
\renewcommand*\thesection{\arabic{section}}
% macht, dass noch ein Punkt hinter Nummern aller (sub)sections kommt
\makeatletter
\renewcommand\@seccntformat[1]{\csname the#1\endcsname.\quad}
\makeatother
%formatting section headings
\makeatletter
\renewcommand{\section}{\@startsection
{section}% % the name
{1}% % the level
{0mm}% % the indent
{\baselineskip}% % the before skip
{-\baselineskip}% % the after skip
{\bfseries\textsc}} % the style
\makeatother
\makeatletter
\renewcommand{\subsection}{\@startsection
{subsection}% % the name
{2}% % the level
{0mm}% % the indent
{\baselineskip}% % the before skip
{-\baselineskip}% % the after skip
{\bfseries\textsc}} % the style
\makeatother
\makeatletter
\renewcommand{\subsubsection}{\@startsection
{subsubsection}% % the name
{3}% % the level
{0mm}% % the indent
{\baselineskip}% % the before skip
{-\baselineskip}% % the after skip
{\bfseries\textsc}} % the style
\makeatother
\begin{document}
\section{First Section}
some text
\subsection{First Subsection}
some more text
\subsubsection{First Subsubsection}
even more text
\end{document}