[Tex/LaTex] How to enumerate theorems using letters with amsthm without losing the section numbering

amsthmnumberingtheorems

It seems \renewcommand{\theexample}{\Alph{example}} makes the section numbering disappear. Is there a way to avoid this?

\documentclass{article}
\usepackage{amsthm}

\theoremstyle{definition}
\newtheorem{example}{Example}[section]
\renewcommand*{\theexample}{\Alph{example}}

\begin{document}
\section{Intro}
\begin{example}[special curve]
Let something be something.
\end{example}
\section{Outro}
\begin{example}[special manifold]
Let something be something.
\end{example}
\end{document}

Best Answer

When you do

\newtheorem{example}{Example}[section]

then \theexample is defined by

\newcommand{\theexample}{\thesection.\arabic{example}}

and the example counter is reset any time section is stepped.

So you want to redefine \theexample by

\renewcommand*{\theexample}{\thesection.\Alph{example}}