
para el
subparagraph
, no está en línea con el párrafo¿Por qué el contenido de
subparagrah
no va a la segunda línea como otros?
\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
Y para el preámbulo:
\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
Respuesta1
Esto se supone que la clase de documento utilizada es book
:
Con la book
clase de documento, el comportamiento predeterminado de los encabezados de párrafos y subpárrafos es el siguiente:
\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}
Con
\makeatletter
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
{-2.5ex\@plus -1ex \@minus -.25ex}%
{1.25ex \@plus .25ex}%
{\normalfont\normalsize\bfseries}}
\makeatother
cambió el estilo de paragraph
los encabezados, subparagraph
pero los encabezados permanecen sin cambios. Esto se puede hacer como se muestra en el siguiente MWE:
\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}