I'm trying to typeset a document in amsart and I wasn't familiar with the counter used for sections, so I just redefined the section environment to try to get the look I'm going for... unfortunately, the way I've defined the environment, the counter doesn't seem to increment.
The MWE is
\documentclass{amsart}
\newcounter{thesection}
\renewenvironment{section}[1]
{{\centering\Huge {\refstepcounter{thesection}\thesection. #1}\par}}{}
\begin{document}
\section{Text}
\section{More Text}
\end{document}
Have I defined something incorrectly? And is there a more efficient way to get the look I'm going for here?
\thethesection
.\thesection
print the value ofsection
counter that is defined by ams class. But this is not the correct way to redefine\section
style. – touhami Sep 23 '15 at 6:23section
is not an environment, so using\renewenvironment
is perhaps a bit strange. – Torbjørn T. Sep 23 '15 at 6:34