Claus Hentschel wrote:
>
> I am using the algorithm float in LyX together with the listing package.
> Most things work as I want them to use. So I am able to change the float's
> name as well as the name of the list of floats with these commands in the
> LyX preambel:
> \floatname{algorithm}{XYZ}
> \renewcommand{\listalgorithmname}{List of XYZs}
>
> But how can I change the *numbering scheme* of algorithm floats to insert
> the chapter's number? By default algotithms are just counted throuout the
> document. Every time I insert
> \usepackage{algorithm}[chapter]
> in the preamble I got errors.
in preamble:
\renewcommand{\thealgorithm}{\thechapter-\arabic{algorithm}}
\@addtoreset{algorithm}{chapter}
Herbert
--
[EMAIL PROTECTED]
http://perce.de/lyx/