0

I would like to change from section numbering 4.3.1 to 4.3.A, and then 4.4.1 to 4.4.B, 4.4.C and then also keep it counting into the next section. such that there is a consistent count from A - Z. I couldn't find a solution so far, any thoughts?

enter image description here

To clarify: I want them to have the numbering of the respective subsection but the subsubsection should count without resetting (I am trying to number Exeriments across different sections)

  • 1
    Are all \subsubsections to be numbered this way? Or just for Chapter 4? What \documentclass are you using? – Werner Aug 17 '17 at 14:48
  • 1
    Welcome to TeX.SX! You already ask this question here. It looks like you've got two separate accounts, which means you cannot edit your original post or leave comments. The Stack Exchange staff can merge them together for you. – Bobyandbob Aug 17 '17 at 15:54
  • This would just be needed for this chapter 4 and I am using \documentclass[bibtotoc,liststotoc]{scrbook}. – Oliver Ebrle Aug 17 '17 at 19:01
  • @Werner Do you think this is possible? Just can't get it to work properly. – Oliver Ebrle Aug 18 '17 at 11:07
0

Three steps:

  1. Redefine the way \thesubsection is printed:

    \renewcommand{\thesubsection}{\thesection.\Alph{subsection}}
    

    This will ensure the subsections are enumerated using A, B, C, ...

  2. Skip the first subsection number for section 4.4 using

    \stepcounter{subsection}
    
  3. Restore the original \thesubsection formatting:

    \renewcommand{\thesubsection}{\thesection.\arabic{subsection}}
    

Here's a minimal example:

enter image description here

\documentclass[bibliography=totoc,listof=totoc]{scrbook}

\begin{document}

\tableofcontents

\setcounter{chapter}{3}% Just for this example

\chapter{Experiments and Results}

\section{Datasets}

\section{Optimization}

\section{High-level model}

% Change formatting of subsection counter representation
\renewcommand{\thesubsection}{\thesection.\Alph{subsection}}

\subsection{A: Deep Gaze II}

\section{Lower-level models}

% Skip typical first subsection numbering
\stepcounter{subsection}

\subsection{B: ICF}

\subsection{C: Parameterized Gabor}

\subsection{D: ICF + Parameterized Gabor}

\subsection{E: Itti \& Koch}

\subsection{F: I\& K + ICF}

% Restore typical subsection numbering/representation (if needed)
\renewcommand{\thesubsection}{\thesection.\arabic{subsection}}

\section{Summary}

\end{document} 
  • Works great, thanks a lot! I wanted to include a subsubsection e.g. 4.4.E.1 which didn't work, my command: \renewcommand{\thesubsubsection}{\thesection.\Alph{subsection}.\thesubsubsection} ? – Oliver Ebrle Aug 19 '17 at 8:53
  • Do subsubsections in your document have display numbers already? – Werner Aug 19 '17 at 9:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.