
für das
subparagraph
, es ist nicht inline mit Absatzwarum wird der Inhalt
subparagrah
nicht wie bei anderen in die zweite Zeile verschoben?
\chapter{Chapter 5}
\label{chap:chapter-5}
\section{section}
Testing
\subsection{subsection}
Testing
\subsubsection{subsubsection}
Testing
\subsubsection{subsubsection}
Testing
\subsubsection{subsubsection}
Testing
\subsubsection{subsubsection}
Testing
\paragraph{paragraph}
Testing
\subparagraph{subparagraph}
Testing
Und zur Präambel:
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}% %for section paragraph
{-2.5ex\@plus -1ex \@minus -.25ex}% %for section paragraph
{1.25ex \@plus .25ex}% %for section paragraph
{\normalfont\normalsize\bfseries}} %for section paragraph
\makeatother %for section paragraph
\setcounter{secnumdepth}{5} % how many sectioning levels to assign numbers to %for section paragraph
\setcounter{tocdepth}{5} % how many sectioning levels to show in ToC %for section paragraph
%for section paragraph
Antwort1
Dies setzt voraus, dass die verwendete Dokumentklasse folgende ist book
:
Bei der book
Dokumentklasse ist das Standardverhalten von Absatz- und Unterabsatzüberschriften das Folgende:
\documentclass{book}
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}
\begin{document}
\chapter{Chapter}
\section{section}
Section text
\subsection{subsection}
subsection text
\subsubsection{subsubsection}
subsubsection text
\paragraph{paragraph}
paragraph text
\subparagraph{subparagraph}
subparagraph text
\end{document}
Mit
\makeatletter
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
{-2.5ex\@plus -1ex \@minus -.25ex}%
{1.25ex \@plus .25ex}%
{\normalfont\normalsize\bfseries}}
\makeatother
Sie haben den Stil der paragraph
Überschriften geändert, subparagraph
die Überschriften selbst bleiben jedoch unverändert. Dies kann wie im folgenden MWE gezeigt erfolgen:
\documentclass{book}
\makeatletter
%%%%% Change the style of paragraph headings %%%%%
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
{-2.5ex\@plus -1ex \@minus -.25ex}%
{1.25ex \@plus .25ex}%
{\normalfont\normalsize\bfseries}}
%%%%% Change the style of subparagraph headings %%%%%
\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\z@}%
{-2.5ex\@plus -1ex \@minus -.25ex}%
{1.25ex \@plus .25ex}%
{\normalfont\normalsize\bfseries}}
\makeatother
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}
\begin{document}
\chapter{Chapter}
\section{section}
Section text
\subsection{subsection}
subsection text
\subsubsection{subsubsection}
subsubsection text
\paragraph{paragraph}
paragraph text
\subparagraph{subparagraph}
subparagraph text
\end{document}