0

I need to put some pseudocodes in a job, but I get the following errors:

! 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.Type H for immediate help.... }

! 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.Type H for immediate help.... }

! 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.Type H for immediate help.... }

! LaTeX Error: Command \listofalgorithms already defined.Or name \end... illegal, see p.192 of the manual.See the LaTeX manual or LaTeX Companion for explanation.Type H for immediate help.... }

I have not even put a pseudocode and already made this error in the compilation

Thank

  • 2
    This looks like some kind of packages clash... One hackish way would be \let\algorithm\undefined before loading algorithm2e. But I advise you not to do that. Instead of the errors, show us a [minimal working example (MWE)](https://tex.meta.stackexchange.com/q/228) that produces the error, so that we can sort it out. – Phelype Oleinik May 29 '18 at 13:46
  • 2
    I guess you loaded several aglorithm typesetting packages such as algorithmic,algorithmicx, algorithm2e – BambOo May 29 '18 at 14:02
  • Any updates here? Please provide us with a minimal working example, as suggested in the first comment. – Troy Jun 18 '18 at 2:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.