Here is an example document.
\documentclass[a4paper]{amsart}
\usepackage{tikz}
\theoremstyle{definition}
\newtheorem{baseTheorem}{Base Theorem}[section]
\foreach \x in % 1
{conjecture, definition, example} % 2
{\newtheorem{\x}[baseTheorem]{\MakeUppercase{\x}}} % 3
\begin{document}
\section{Even numbers}
\begin{definition}
A number is called \emph{even} if its remainder on division by $2$ is zero.
\end{definition}
\begin{example}
$2$ and $0$ are both even numbers.
\end{example}
\begin{conjecture}
The sum of two even numbers is again an even number.
\end{conjecture}
\end{document}
This document does not compile. It produces the following error:
! Undefined control sequence.
<argument> \x
l.16 A
number is called \emph{even} if its remainder on division by $2$ i...
However, if the lines numbered 1, 2 and 3 are replaced with the following lines...
\newtheorem{conjecture}[baseTheorem]{\MakeUppercase{conjecture}}
\newtheorem{definition}[baseTheorem]{\MakeUppercase{definition}}
\newtheorem{example}[baseTheorem]{\MakeUppercase{example}}
... then the document does compile, and looks as I expect. (What I really want is to capitalise the first letter of "Conjecture" etc., not the entire word, but this is a separate problem.)
Additionally, if \x is changed to \t in the original versions of lines 1 and 3, a different error message is obtained:
! Argument of \UseTextAccent has an extra }.
<inserted text>
\par
l.16 A
number is called \emph{even} if its remainder on division by $2$ ...
I reasoned that the issue might be that the third argument of \newtheorem was being recorded verbatim and only evaluated when it comes time to typeset an individual theorem environment. I tried the following:
\foreach \x in
{conjecture, definition, example}
{\def\uppercased\MakeUppercase{\x} \newtheorem{\x}[baseTheorem]{\uppercased}}
But it did not get around the problem:
! Undefined control sequence.
<argument> \uppercased
l.16 A
number is called \emph{even} if its remainder on division by $2$ ...
What can I do?


\usepackage{titlecaps}and replace each instance of\MakeUppercase{}with\titlecap{}. – Steven B. Segletes Sep 16 '13 at 15:29