Let me start with an MWE which illustrates my question.
\documentclass{book}
\usepackage{amsthm}
\newtheorem{theorem}{Theorem}[section]
\begin{document}
\chapter{Some title}
\section{Another title}
\begin{theorem}
A nice theorem
\end{theorem}
\section{Yet another title}
\begin{theorem}
Another nice theorem
\end{theorem}
\section*{Optional section}
\begin{theorem}
An optional theorem
\end{theorem}
\end{document}
The resulting theorem numbers will be
Theorem 1.1.1
Theorem 1.2.1
Theorem 1.2.2.
What I would like to achieve instead is
Theorem 1.1.1
Theorem 1.2.1
Theorem 1.E.1.
In other words, I would like the counter to restart (this I think I can do with \setcounter
), but I would like there to be a different symbol for the section counter, like an E for "extra". Should I do this at the level of the section, by redefining \thesection
? Or by modifying the theorem
environment (preferably not)? Should I define a new theorem environment (also preferably not)?
I would prefer a systematic solution rather than an ad-hoc approach (where I would need to act separately on each instance of the theorem environment).
Thank you all in advance.
EDIT: As Andrew noted in his answer, I mistyped the theorem numbers in my question. I have now corrected them to avoid confusion to other users who may be interested in this question.
amsmath
. theorems are (almost) entirely separate from the math component. i addedamsthm
since that is what you are using in your mwe.