I use scrartcl. I would like the sections to be numbered 1A, 1B, 2A, 2B, etc. I would like subsections etc. to be numbered 1A.1, 1A.2, etc. the idea is to present theory in the "A" sections and examples in the "B" sections.

Please ask if more clarity is needed.

  • 1
    Are all sections divided into two parts? – egreg Jul 12 '12 at 23:21
  • @egreg: yes, all sections are divided into "A" and "B" parts. Your solution, posted below, seems to do the trick. – Shay Jul 13 '12 at 12:45
  • One might think to redefine directly \section so that it produces alternately \sectionA and \sectionB, but I believe that having a specific mark up is better. – egreg Jul 13 '12 at 12:48

You can define appropriate commands for introducing the two types of sections:


% This part is necessary when hyperref is needed

% end of hyperref part


\sectionA{First, theory}

\sectionB{First, examples}

\sectionA{Second, theory}

\sectionB{Second, examples}


As you see, one has to do some adjustments when hyperref is loaded. Add all the desired options to it, of course.

| improve this answer | |

If you're just considered sectional headings, then you can use \sections, \subsections and \subsubsections with the following counter redefinitions way:


The above changes the numbering scheme representation for sections to \arabic (actually, the default), subsections to \Alph (for theory and examples) and subsubsections to \arabic (also, the default). It also makes sure that the display conforms to your requirements in terms of concatenation.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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