Warum ist der Unterabsatz nicht mit dem Absatz oder Abschnitt in einer Linie?

Warum ist der Unterabsatz nicht mit dem Absatz oder Abschnitt in einer Linie?
  1. für das subparagraph, es ist nicht inline mit Absatz

  2. warum wird der Inhalt subparagrahnicht 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

Bildbeschreibung hier eingeben

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 bookDokumentklasse ist das Standardverhalten von Absatz- und Unterabsatzüberschriften das Folgende:

Bildbeschreibung hier eingeben

\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, subparagraphdie Überschriften selbst bleiben jedoch unverändert. Dies kann wie im folgenden MWE gezeigt erfolgen:

Bildbeschreibung hier eingeben

\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}

verwandte Informationen