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.
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.
The numbering of subsection
s 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}}
\renewcommand{\thesubsubsection}{\thesubsection.\alph{subsubsection}}
doesn't need \makeatletter
and \makeatother
.
Nov 22, 2013 at 14:38
\alph
is there just for this purpose.
\alph{<counter>}
is defined in terms of \@alph
and \c@<counter>
and because I like using low-level commands...