[Tex/LaTex] Define number in \subsection in book class

numberingsectioningtitlesec

I must define number be for subsubsection form :

\chapter : 1

\section : 1.1

\subsection : 1.1.1

\subsubsection : 1.1.1.a

Can you help me define form.

Best Answer

The numbering of subsections in the book document class should already be in the format you require. To modify \thesubsubsection to show the final "number" in alphabetical rather than arabic-numeral format, you could issue the commands

\makeatletter
\renewcommand\thesubsubsection{\thesubsection.\@alph\c@subsubsection}
\makeatother

in the preamble of your document.

As you can probably tell from this definition, \c@subsubsection is a counter variable, \@alph instructs TeX to display the value of the counter in lowercase-alphabetical format (a, b, c, etc), and \thesubsection. instructs TeX to prepend the (already-defined) representation of the subsection counter, followed by a dot (.), to \@alph\c@subsubsection.


As @ThorstenDonig has pointed out in a comment, the preceding commands -- which are fairly low-level -- can be replaced with the following, higher-level command (which is especially nice at it obviates the need to use \makeatletter and \makeatother):

\renewcommand\thesubsubsection{\thesubsection.\alph{subsubsection}}
Related Question