TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The following code produces 1 next to Foo and 1.1 next to Bar.


How do I produce 1 next to Foo and 1a next to Bar? And 1b for the next subsection, and so on?

share|improve this question
up vote 4 down vote accepted

You have to change the number printing mechanism for \subsection. Easiest is to use:


enter image description here

\section{A section}
\subsection{A subsection}
\subsection{A subsection}
\subsubsection{A subsubsection}
share|improve this answer
Thank you, it works great! Why is it \thesubsection and \thesection though? Why prefix it with the? – David Faux Oct 3 '12 at 23:34
@DavidFaux: See The \the command \thesection refers to the printing of the section counter, which is internally represented in a different way to what you see. The default is \arabic{<counter>}. – Werner Oct 3 '12 at 23:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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