Thanks for your suggestion. Since you CAN use algorithm2e, I know that a solution exists.

Actually, I had the problem with 1.5.5 and then upgraded to 1.5.6. I am guessing that there is something else in the original imported LaTeX file that is triggering this code to be written. I'll see if I can track it down.

Yours

ash

On Sep 24, 2008, at 4:42 AM, Nicolás wrote:

This seems to be a problem with version 1.5.6, since I have used algorithm2e with Lyx 1.5.5 and had no problem. Since I do not have installed v1.5.6 (don't know why :-)), I cannot say if you can do anything to solve your problem. Take a look at Document Settings to see if there is any option concerning algorithms. Unless anyone else gives a solution, I suggest that you file a bug in bugzilla.lyx.org. A possible workaround is to install v 1.5.5. I think it should be able to coexist with your current version.

Cheers,
Nicolás


A. Scottedward Hodel wrote:
I'm importing a student's PhD dissertation into LyX to use the "track changes" function for markup. Unfortunately, there seems to be a conflict between some LyX default behavior and the algorithm2e.sty package:
! LaTeX Error: Command \algorithm already defined.
              Or name \end... illegal, see p.192 of the manual.
I used the command line to translate LyX to LaTeX,
   lyx --export latex WahbaSummary.lyx
and found the following code in the .tex file:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}
\floatstyle{ruled}
\newfloat{algorithm}{tbp}{loa}
\floatname{algorithm}{Algorithm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
If I comment out the \newfloat and \floatname commands, then the error goes away. Is there a way to get rid of them without manually editing the .tex file?
A. Scottedward Hodel [EMAIL PROTECTED]
http://homepage.mac.com/hodelas/tar


A. Scottedward Hodel [EMAIL PROTECTED]
http://homepage.mac.com/hodelas/tar



Reply via email to