.png)
Posso ter algo assim?
1. section one
1.1 subsection one
1.2 subsction two
2. section two
2.1 subsection two
A. title
1) subtitle A.1
2) subtitle A.2
B. title
1) subtitle B.1
a) subsubtitle B.1.a
b) subsubtitle B.1.b
2) subtitle B.2
C. title
.
.
.
.
etc
2.1.1 subsubsection two one
2.1.2 subsubsection two two
2.1.3 subsubsection two three
2.1.4 subsubsection two four
A ideia é introduzir um título/seção que seja enumerado com umcartaou eventualmente outra coisa, mas sem alterar a estrutura das seções. Portanto, esta enumeração pode parecer a mesma emtoc.
Responder1
Você pode adicionar novos níveis de seção comtitlesec
. O exemplo a seguir introduz dois novos níveis de seção, \Title
e \subtitle
(o T maiúsculo existe para evitar confusão com o \title
comando), que estão abaixo \subsection
e acima de \subsubsection
.
\documentclass{article}
\usepackage{titlesec}
\titleclass{\Title}{straight}[\subsection]
\titleclass{\subtitle}{straight}[\Title]
\newcounter{Title}
\newcounter{subtitle}
\renewcommand*{\theTitle}{\Alph{Title}}
\renewcommand*{\thesubtitle}{\arabic{subtitle})}
\titleformat{\Title}{\bfseries\large}{\theTitle}{1em}{}
\titleformat{\subtitle}{\bfseries}{\thesubtitle}{1em}{}
\titlespacing*{\Title}{1.5em}{6pt}{6pt}
\titlespacing*{\subtitle}{3em}{6pt}{6pt}
\setcounter{secnumdepth}{5}
\begin{document}
\section{Section one}
\subsection{Subsection one}
\subsection{Subsection two}
\section{Section two}
\subsection{Subsection one}
\Title{Title}
\subtitle{Subtitle A.1}
\subtitle{Subtitle A.2}
\subsubsection{Subsubsection one}
\subsubsection{Subsubsection two}
\end{document}
A saída é a seguinte.
A formatação geral dos novos níveis de seção pode ser alterada com \titleformat
e \titlespacing
, e a numeração pode ser alterada com os comandos \theTitle
e \thesubtitle
. Com este exemplo, os novos níveis de seção aparecerão no ToC, mas a formatação deverá ser tratada manualmente, por exemplo com titletoc
.