I am writing an university report and I have to answer to a series of topics divided in points. I'd like to obtain a header like this 1.1.a,b,c. I have written this command to generate a single subsubsection referring to multiple points:


\vspace{1.2\baselineskip plus .35\baselineskip minus.07\baselineskip}%
\advance\tmp by 2%
%#1 max num
%#2 text
    \advance\tmp by 1%
    \ifnum \tmp<#1%
\alph{subsubsection} #2\\%
%    \vspace{.5em}%
\vspace{.8\baselineskip plus .07\baselineskip}%

\section{First section}
\subsection{First subsection}
\multisub[2]{First two points}

The result is the following:

enter image description here

As you can see it has the form I'm looking for, but the spacing after the subsubsection header is wrong, as if the space after the header comes only after the first line of text.

How can I solve it? And how can I add this new subsection to the table of contents?

Thanks in advance.


1 Answer 1


Here is how you can define a \multisubsection command for coping with more subsections at a time.

\documentclass[oneside]{book} % oneside just to make a sensible picture


% add space for the composite numbers, adapt to your need
% increasing or decreasing 5em
\renewcommand\l@subsection{\@dottedtocline {2}{3.8em}{5em}}

 {% #1 = number of subsections to span
  % #2 = optional short title
  % #3 = title
  \tl_clear:N \l_tmpa_tl
  \int_step_inline:nn { #1 - 1 }
    \tl_put_right:Nx \l_tmpa_tl { \alph{subsection}, }







\subsection{First point}


\multisubsection{3}{Three more points}\label{a}


\subsection{Another point}


enter image description here

Also \multisubsection{<n>}[Title for the toc]{Title in the document} is supported.

How does this work? When a \multisubsection is called, I step the relevant counter one time less than the argument specifies, collecting the “numbers” (in this case, letters) followed by a comma in \l_tmpa_tl; then I redefine \thesubsection to be as usual, but with the insertion of \l_tmpa_tl before the final number; the \subsection command called in the background will do the final stepping and print the full number. Finally, the standard meaning of \thesubsection is restored.

  • thanks a lot! exactly what I was looking for
    – Luca C.
    Dec 28, 2018 at 21:56
  • @LucaC. You're welcome. I changed a little the code. A \label command can now be used as usual. Note that you can even call \multisubsection{1}{Title}, so if you later change your mind about some points, you just need to change the number.
    – egreg
    Dec 28, 2018 at 22:04
  • amazing, I've added your code to my report and works perfectly. May I ask you, why have you called the new command right after its definition?
    – Luca C.
    Dec 28, 2018 at 22:14
  • @LucaC. That's the initialization for \thesubsection in the required form “Chapter number.Section number.Subsection letter”. Just avoiding code duplication.
    – egreg
    Dec 28, 2018 at 22:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .