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:
\documentclass{article}
\usepackage{lipsum}
\newcount\tmp
\newcommand{\multisub}[2][1]{%
\vspace{1.2\baselineskip plus .35\baselineskip minus.07\baselineskip}%
%\vspace{.5em}%
{\bf\thesubsection.%
\tmp=0%
\advance\tmp by 2%
%#1 max num
%#2 text
\loop%
\advance\tmp by 1%
\addtocounter{subsubsection}{1}%
\alph{subsubsection},%
\ifnum \tmp<#1%
\repeat%
\addtocounter{subsubsection}{1}%
\alph{subsubsection} #2\\%
}%
% \vspace{.5em}%
\vspace{.8\baselineskip plus .07\baselineskip}%
{\normalfont\normalsize\bfseries}%
}%
\begin{document}
\section{First section}
\subsection{First subsection}
\lipsum[1]
\multisub[2]{First two points}
\lipsum[2]
\end{document}
The result is the following:
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.