Document ClassesRe: ! LaTeX Error: Command \algorithm* already defined.

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: ! LaTeX Error: Command \algorithm* already defined.

Post by localghost »

Just for information to other users for awareness of possibly already existing solutions. The question has also been posted to MrUnix and goLaTeX (two German LaTeX forums) and already got an answer. Please read what our administrator thinks about that.
Board Rules wrote:A crossposting is always contra-productive. But there is nothing really against it as long as it is mentioned. This means that a direct link has to be added. So other users who want to help are preserved from double efforts and waste of time.
The class defines a theorem-like environment algorithm. Contact the class maintainer(s) and ask for help. There is detailed contact information on the mentioned site for the case of upcoming problems.

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

david611
Posts: 1
Joined: Thu May 03, 2018 8:30 pm

! LaTeX Error: Command \algorithm* already defined.

Post by david611 »

I have exactly that problem:

Code: Select all

Code, edit and compile here:
! LaTeX Error: Command \algorithm* already defined.
Or name \end... illegal, see p.192 of the manual.
See the LaTeX manual or LaTeX Companion for explanation.
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
I managed to undefine the algorithm environment as follows:

\makeatletter
\let\algorithm\@undefined
\let\endalgorithm\@undefined
\makeatother

but when I tried the same thing for algorithm* :

\makeatletter
\let\algorithm\@undefined
\let\endalgorithm\@undefined
\let\algorithm*\@undefined
\let\endalgorithm*\@undefined
\makeatother

I got the LaTex error:

Undefined control sequence.
1.6 \let\algorithm*\@undefined

Can anyone tell me how to undefine the algorithm* environment?
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

! LaTeX Error: Command \algorithm* already defined.

Post by Johannes_B »

Hi and welcome,

please open a new thread. A minimal working example would also be needed in order to help.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply