On Sat, Sep 21, 2002 at 07:17:09PM +0200, Pascal Francq wrote: > > > 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} > > It works, but there problems when using with the hyperref package. On the LyX > website, it is explain to add in the preamble something like: > \newcommand{\theHalgorithm}{\thechapter.\arabic{algorithm}} ^^should be \theHchapter
> But, when doing this, I have the linear numerotation and if I use your system > it works but I have got an error. I Suppose there must be some 'trick' to > combine both? Just use them both: \renewcommand{\thealgorithm}{\thechapter.\arabic{algorithm}} \@addtoreset{algorithm}{chapter} \newcommand{\theHalgorithm}{\theHchapter.\arabic{algorithm}}