I'm trying to create:
Hypothesis 1a
Hypothesis 1b
Hypothesis 2a
Hypothesis 2b
Hypothesis 3
I followed the code from an earlier thread, but instead of getting "Hypothesis 3", I get "Hypothesis 2c".
What should I do to get "Hypothesis 3"? Thanks so much for all your help.
\documentclass{article}
\usepackage{ntheorem}
\theoremindent1\parindent
\theoremseparator{:}
\newtheorem{theorem}{Hypothesis}
\usepackage{chngcntr}
\newcounter{pretheorem}
\counterwithin{theorem}{pretheorem}
\renewcommand\thetheorem{\arabic{pretheorem}\alph{theorem}}
\newcommand{\theoremgroup}{\refstepcounter{pretheorem}}
\begin{document}
\theoremgroup
\begin{theorem}
This is Hypothesis 1a
\end{theorem}
\begin{theorem}
This is Hypothesis 1b
\end{theorem}
\theoremgroup
\begin{theorem}
This is Hypothesis 2a
\end{theorem}
\begin{theorem}
This is Hypothesis 2b
\end{theorem}
\theoremgroup
\begin{theorem}
This is Hypothesis 3, but I'm getting Hypothesis 2c
\end{theorem}
\end{document}
