Math & Science\newtheorem* already defined

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
kunigami
Posts: 9
Joined: Mon Feb 16, 2009 8:27 pm

\newtheorem* already defined

Post by kunigami »

Hi,

I'm having trouble in using theorem without numbering. When I use:

Code: Select all

\newtheorem*{KL}{Klein's Lemma}

\begin{KL} Text text ... \end{KL}
I get the following error:
Command \* already defined. \newtheorem*{kl}
Is there a way to find out where the redundancy is, or how to work around this problem?

Thansk,

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: \newtheorem* already defined

Post by frabjous »

Apparently you're not using a document class or package that supports a starred version of \newtheorem.

Your example looks like it's right out of the amsthm package documentation, so why not just add:

\usepackage{amsthm}

to your document header?

If you have that added already, then probably some other package added afterwards is conflicting with it. Post a MWE if need be.
kunigami
Posts: 9
Joined: Mon Feb 16, 2009 8:27 pm

\newtheorem* already defined

Post by kunigami »

Your example looks like it's right out of the amsthm package documentation, so why not just add:

\usepackage{amsthm}

to your document header?
Weird, I think it was working without that before. But adding this package did the trick!

Thank you!
Post Reply