I found the following example of how one should be able to avoid numbering in theorems. However for me this is not working. Here is some code ( I wanted to test if the non numbering works for Propostion):
\documentclass{amsart}
\usepackage[utf8]{inputenc}
\usepackage{color}
\usepackage{xcolor}
\usepackage{enumerate}
\usepackage[pdftex,citecolor=green,linkcolor=red]{hyperref}
\usepackage{listings}
\usepackage{nameref}
\usepackage{amssymb}
\usepackage{amsmath,amssymb,amsfonts,mathrsfs,datetime}
\usepackage{listings}
\theoremstyle{definition}
\newtheorem{thm}{Theorem}[section]
\newtheorem*{prop*}[thm]{Proposition}
\theoremstyle{definition}
\newtheorem{definition}[thm]{Definition}
\newtheorem{example}[thm]{Example}
\theoremstyle{remark}
\newtheorem{remark}[thm]{Remark}
\numberwithin{equation}{section}
\newcommand{\R}{\mathbf{R}} % The real numbers.
\usepackage{Sweave}
\begin{document}
\definecolor{mygreen}{HTML}{4C886B}
\definecolor{mygray}{rgb}{0.5,0.5,0.5}
\definecolor{mymauve}{rgb}{0.58,0,0.82}
\title{Big doc}
\begin{abstract}
test1
\end{abstract}
\maketitle
\section{Introduction}
Test2
\end{document}
I get the following error message:
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
So what is going wrong in my example?
\newtheorem*{prop*}{Proposition}
, not\newtheorem*{prop*}[thm]{Proposition}
.\newtheorem*
does not take an optional argument.amsmath
oramsfonts
; they're already loaded byamsart
. andamssymb
should really be loaded only once.\newtheorem
is defined byamsthm
, which is built intoamsart
.