Hello LyXers,

I was playing a bit with the algorithm-float because I didn't know for what purpose it is implemented. As result I still don't know it .-(. I tried to use it for program codelines, but the package for this purpose, listings, comes with its own float type.
So could you tell me for what the algorithm float is useful?


While playing with floats, I noticed the following problem:

When using hyperref to reference floats with hyperlinks, new floats have to be defined after loading hyperref. But LyX inserts the float definition at the beginning of the preamble. E.g. I get

-------------------------------------------------
\makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\floatstyle{ruled}
\newfloat{algorithm}{tbp}{loa}
\floatname{algorithm}{Algorithm}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\usepackage{verbatim}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{hyperref}

\AtBeginDocument{
--------------------------------------------------------

but need the section "LyX specific LaTeX" behind the section "User specified LaTeX commands". This should be easy to fix and I don't know a case where float definitions must be defined at first. Opinions?

thanks and regards
Uwe



Reply via email to