On Mon, 27 Aug 2007, Thomas Schmidt apparently wrote: >> \newfloat{Xalgorithm}{tbp}{loa} >> \floatname{Xalgorithm}{Algorithmus} >> \newcommand{\theHalgorithm}{\theHXalgorithm} >> \renewenvironment{algorithm}[1][tbp] >> {\begin{Xalgorithm}[#1]}{\end{Xalgorithm}} >> \numberwithin{Xalgorithm}{chapter}
It is unclear to me what you are getting from all that! All you should need I think is \newfloat{Xalgorithm}{htb}{loa}[chapter] \begin{Xalgorithm} Your code, perhaps in a verbatim environment. \end{Xalgorithm} Cheers, Alan Isaac