On Tue, Sep 4, 2012 at 8:23 AM, Ivo Couckuyt wrote:
> Hi,
>
> I found the problem in the layout files:
> The actual problem lies in numreport.inc which adds a chapter counter to the
> algorithm float.
>
> numreport.inc is included in svcommon.inc (after all std*.inc includes) which
> in its turn is included by svglobal.layout/svglobal3.layout etc.
>
> Of course chapter counters in papers dont make much sense, a quick workaround
> is to redefine algorithm by putting the following in the local layout:
> "
> Format 35
> Float
> Type algorithm
> GuiName Algorithm
> Placement tbp
> Extension loa
> NumberWithin none
> Style ruled
> ListName "List of Algorithms"
> IsPredefined false
> UsesFloatPkg true
> RefPrefix alg
> End
> "
>
> Which is copy-pasted from stdfloats.inc, here NumberWithin is defined as none
> instead of chapter which I hope is the standard behaviour. At least I can
> generate pdf's with algorithm floats again.
>
> best regards,
> Ivo
Was this regression fixed?
Scott
> Hi,
>
> I'm experiencing exactly the same problem (see mail below) since I upgraded
> from lyx 2.0.1 to lyx 2.0.4. You can easily reproduce:
> - File->new from template
> - choose springer/svjour3.lyx
> - remove the figure floats (the pictures were not found in my installation,
> opensuse)
> - add one algorithm float (it's the float that generates the error, not the
> algorithm itself).
> - generate pdf
>
> I obviously could downgrade again, but I have read somewhere that lyx 2.0.4
> includes better sprinter (svjour3/svglobal) layouts. Any idea on how I can fix
> this quickly ?
>
> If there is no simple fix, I'll just downgrade for the moment as I really need
> it.
>
> best regards,
> Ivo
>
> John Perry
> Thu, 29 Mar 2012 19:36:41 -0700
>
> Hello
>
> The svjour3 class used to work fine in Lyx 2.0, even with the algorithm float.
> I just upgraded to Lyx 2.0.3 on two different computers, and I get the error,
>
>
> ! LaTeX Error: No counter 'chapter' defined.
> See the LaTeX manual or LaTeX Companion for explanation.
> Type H for immediate help.
> ...
> l.22 \newfloat{algorithm}{tbp}{loa}[chapter]
>
>
> Any advice on getting around this? I checked the layouts, and they're not
> introducing this.
>
> regards
> john perry
>