GeneralIncompatible algorithm packages, but I need them all :S!

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
seb_lz
Posts: 2
Joined: Fri May 14, 2010 2:02 pm

Incompatible algorithm packages, but I need them all :S!

Post by seb_lz »

Hello,

I'm currently working on my thesis, and I need to insert other .tex files in my document. Some of them use the algorithm and algorithmic packages (from algorithms bundle), and some use the algpseudocode package (from algorithmicx bundle). The algpseudocode package defines the \algorithmic environment but it's already defined in the algorithmic package. Is there a way to easily rename the \algorithmic environment of algpseudocode to \algorithmic2 for instance ?

Thanks a lot for your help.

Recommended reading 2024:

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

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

Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Incompatible algorithm packages, but I need them all :S!

Post by Montag »

I guess you'd have to go into the packege's own definitions and put something like

Code: Select all

\newenvironment{centernew}{\begin{center}}{\end{center}}
there.
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
seb_lz
Posts: 2
Joined: Fri May 14, 2010 2:02 pm

Re: Incompatible algorithm packages, but I need them all :S!

Post by seb_lz »

Thanks for the reply enrico !

I eventually edited the latex code fo a few files to make it compatible with the packages from the algorithmicx bundle so that I didn't need the other bundle anymore. I will note the tip for the next time though, thanks!
Post Reply