0

Is it possible to set the environment in such a way that sections are indexed with numbers, and subsections with both numbers and letters? For example,

1 First section

1.1 First subsection

1.2 Second subsection

1.A first letter subsection

1.B second letter subsection

...

2
  • 1
    And what about the next subsection? Are there, in the same section, some subsections with numbers followed by some with letters? Or are they intermixed?
    – egreg
    Feb 12, 2023 at 16:51
  • I think that's pretty easy to do with Denis's answer cause you can just use \renewcommand{\thesubsection}{\arabic{section}.\Alph{subsection}} replace \Alph and \arabic as you see fit
    – Math_Day
    Feb 13, 2023 at 18:16

1 Answer 1

2

Yes, of course. Quick and dirty, try:

\documentclass[12pt]{article}
\begin{document}
\section{First section}
\subsection{First subsection}
\setcounter{subsection}{0}
\renewcommand{\thesubsection}{\arabic{section}.\Alph{subsection}}
\subsection{Second subsection}
\end{document} 

enter image description here

2
  • 1
    Of course at some point you might have to go back to the original "indexing" scheme, perhaps for a subsections within a later section. Feb 12, 2023 at 18:52
  • @PeterWilson Sure. This why I said it was quick and dirty
    – Denis
    Feb 13, 2023 at 8:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .