On Sat, Sep 21, 2002 at 06:33:37PM +0200, Pascal Francq wrote: > I am using the algorithm package. In the preamble of my LyX document, I have > inserted "\usepackage[chapter]{algorithm}". When I insert an algorithm trough
LyX 1.2.x does not use the algorithm package. > the corresponding float menu in LyX, the algorithm numerotation is global > (1,2,3, ...) rather chapter specific (1.1,1.2,2.1,....). > Any ideas? Add to the preamble: \renewcommand{\thealgorithm}{\thechapter.\arabic{algorithm}} \@addtoreset{algorithm}{chapter}