3

I need to redefine the theorem style. Is it possible to change the numbers to letters?

\theoremstyle{definition}
\newtheorem{problem}{Problem}
\begin{problem}
fff
\end{problem}
\begin{problem}
ccc
\end{problem}

I need to do this:

Problem A. fff

Problem B. ccc

instead of using numbers.

user32680
  • 269

1 Answers1

3

Change the representation for the counter, in this case, problem is the counter, and \theproblem holds the representation:

\documentclass{article}
\usepackage{amsthm}

\theoremstyle{definition} 
\newtheorem{problem}{Problem}
\renewcommand\theproblem{\Alph{problem}}

\begin{document}

\begin{problem}
test
\end{problem}

\end{document}

enter image description here

Of course, be careful to reset the counter after maximum 26 problems.

Gonzalo Medina
  • 505,128
  • @user32680: With this standard method you are limited to 26 problems ;-). See here for a solution: http://tex.stackexchange.com/questions/118283/transforming-numbers-to-alph-numbers – Marco Daniel Jun 28 '13 at 15:01
  • And if I want to redefine proof environment? When I begin, I want to have the text "Solution". Is it possible? – user32680 Jun 28 '13 at 15:12
  • @user32680 Use \renewcommand\proofname{Solution} or define a new theorem-like structure giving you the required settings. – Gonzalo Medina Jun 28 '13 at 15:15
  • I really thank you a lot! Thank you for your time! – user32680 Jun 28 '13 at 15:17