Generalcommand \th already defined

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Lumy
Posts: 24
Joined: Tue Jan 06, 2009 2:41 pm

command \th already defined

Post by Lumy »

Hello,

Here is my preamble:

Code: Select all

\input{aipcheck}

\documentclass[
    ,final            % use final for the camera ready runs
%%  ,draft            % use draft while you are working on the paper
  ,numberedheadings % uncomment this option for numbered sections
%%  ,                 % add further options here if necessary
  ]
  {aipproc}

\layoutstyle{6x9}



\usepackage{amsmath,amssymb,amsthm}

\numberwithin{equation}{section} 
\theoremstyle{plain}
\newtheorem{df}{Definition}[section]
\newtheorem{th}[df]{Theorem}
\newtheorem{prop}[df]{Proposition}
\newtheorem{lem}[df]{Lemma}
\newtheorem{cor}[df]{Corollary}
\newtheorem{rem}[df]{Remark}
and I can't compile. I get the Latex Error: Command \th already defined


Thank you.

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

command \th already defined

Post by frabjous »

Is there a reason you can't change

Code: Select all

\newtheorem{th}[df]{Theorem}
to something else, e.g.:

Code: Select all

\newtheorem{theo}[df]{Theorem}
and then change all the:

Code: Select all

begin{th}
..
\end{th}
to

Code: Select all

begin{theo}
..
\end{theo}
?

Or does that not solve your problem?
Post Reply