Regina Anger wrote:
> Hi folks,
> 
> I would like to insert an algorithm float in my document.
> However, even for empty documents, doing so results in:
> 
> LaTeX Error: Command \newfloat already defined.
> LaTeX Error: Missing \begin{document}.
> 
> 
> Any idea what could be wrong here?

Your file compiles fine here. This is with most recent TL 2012 and LyX 
2.0.6dev. Maybe some of your packages are outdated. The versions are printed 
to the log file if you enter \listfiles into the preamble. Here's mine:

 *File List*
  memoir.cls    2011/03/06 v3.6j configurable book, report, article document 
class
   ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)
  ifetex.sty    2011/12/15 v1.2 ifetex
 ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional
ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
    etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)
   mem10.clo    2008/01/30 v0.3 memoir class 10pt size option
mempatch.sty    2009/07/24 v6.0f Patches for memoir class v1.6180339
 fontenc.sty
   t1enc.def    2005/09/27 v1.99g Standard LaTeX file
inputenc.sty    2008/03/30 v1.1d Input encoding file
  latin9.def    2008/03/30 v1.1d Input encoding file
   float.sty    2001/11/08 v1.3d Float enhancements (AL)
  amsthm.sty    2009/07/02 v2.20.1
 amsmath.sty    2000/07/18 v2.13 AMS math features
 amstext.sty    2000/06/29 v2.01
  amsgen.sty    1999/11/30 v2.0
  amsbsy.sty    1999/11/29 v1.2d
  amsopn.sty    1999/12/14 v2.01 operator names
   babel.sty    2008/07/08 v3.8m The Babel package
 english.ldf    2005/03/30 v3.3o English support from the babel system
 ***********

HTH
Jürgen

Reply via email to