Is there any way from the code below that a number letter/number theorem can be generated? I am trying to achieve a theorem labeled 1.1A.
\documentclass{book}
\usepackage{amsthm}
\newtheorem{theo}{Theorem}[chapter]
\newcounter{tmp}
\begin{document}
\chapter{Test Chapter}
\begin{theo}
test
\end{theo}
\begingroup
\setcounter{tmp}{\value{theo}}% store current value of theorem counter
\setcounter{theo}{0} %assign desired value to theorem counter
\renewcommand\thetheo{\Alph{theo}}% locally redefine the representation of the theorem counter
\begin{theo}
test
\end{theo}
\endgroup
\end{document}
Best Answer
In my opinion, a
2nd
theorem environment which 'depends' on theupper
level environmenttheo
is a cleaner solution than to use\begingroup...\endgroup
etc. and storing the counter, changing the output etc.