Re: Another Lyx Error Detected

2010-02-08 Thread Uwe Stöhr

 Another problem I am having is with too many floating figures. I have a
 large document with anywhere from 3-100 figures within each chapter.
 I keep getting the error regarding too many floats.

This is not a LyX bug but a restriction of LaTeX. LaTeX's floating algorithm works perfectly for a 
few floats but will fail for too many floats. The limit of currently unprocessed floats is therefore 
set to 18. There is a way to increase this limit to 36 floats but this only cures the symptom.


It can be that LaTeX cannot process one particular float and therefore runs into the limit. Fixing 
this is not trivial. The best is to cut parts of your document beginning from the end. After every 
cutting try to compile it as PDF. When it compiles, you know that the problematic float is within 
the recently deleted part of your document.


Either a float setting is not correct (like rotation settings), or there are too many floats for the 
page. In this case adopt the float placement options as described in sec. 3.5 of the EmbededObjects 
manual that you find in LyX's Help menu. If you have many pages without text, you should use the 
page of floats option.


 I worked around this issue by placing /clearpage every so often to make it 
produce a PDF.

If you are using a book document class, you need to use \cleardoublepage.
But you should nevertheless only use clearpage if it is really necessary because the resulting 
whitespace cannot be avoided easily.


Important note: The too many floats error can also occur when having too many margin notes. 
Therefore also check this.


regards Uwe

p.s. Such problems are better reported at the lyx-users mailing list I'm 
forwarding this mail to.


Re: Another Lyx Error Detected

2010-02-08 Thread Florian Rubach

Am 09.02.2010 01:56, schrieb Uwe Stöhr:

 Another problem I am having is with too many floating figures. I have a
 large document with anywhere from 3-100 figures within each chapter.
 I keep getting the error regarding too many floats.

This is not a LyX bug but a restriction of LaTeX. LaTeX's floating 
algorithm works perfectly for a few floats but will fail for too many 
floats. The limit of currently unprocessed floats is therefore set to 18.


Couldn't this be handled by the package placeins, with the command 
\FloatBarrier? Placing that command every now and then?

Just my first thought...


Re: Another Lyx Error Detected

2010-02-08 Thread Uwe Stöhr

 Another problem I am having is with too many floating figures. I have a
 large document with anywhere from 3-100 figures within each chapter.
 I keep getting the error regarding too many floats.

This is not a LyX bug but a restriction of LaTeX. LaTeX's floating algorithm works perfectly for a 
few floats but will fail for too many floats. The limit of currently unprocessed floats is therefore 
set to 18. There is a way to increase this limit to 36 floats but this only cures the symptom.


It can be that LaTeX cannot process one particular float and therefore runs into the limit. Fixing 
this is not trivial. The best is to cut parts of your document beginning from the end. After every 
cutting try to compile it as PDF. When it compiles, you know that the problematic float is within 
the recently deleted part of your document.


Either a float setting is not correct (like rotation settings), or there are too many floats for the 
page. In this case adopt the float placement options as described in sec. 3.5 of the EmbededObjects 
manual that you find in LyX's Help menu. If you have many pages without text, you should use the 
page of floats option.


 I worked around this issue by placing /clearpage every so often to make it 
produce a PDF.

If you are using a book document class, you need to use \cleardoublepage.
But you should nevertheless only use clearpage if it is really necessary because the resulting 
whitespace cannot be avoided easily.


Important note: The too many floats error can also occur when having too many margin notes. 
Therefore also check this.


regards Uwe

p.s. Such problems are better reported at the lyx-users mailing list I'm 
forwarding this mail to.


Re: Another Lyx Error Detected

2010-02-08 Thread Florian Rubach

Am 09.02.2010 01:56, schrieb Uwe Stöhr:

 Another problem I am having is with too many floating figures. I have a
 large document with anywhere from 3-100 figures within each chapter.
 I keep getting the error regarding too many floats.

This is not a LyX bug but a restriction of LaTeX. LaTeX's floating 
algorithm works perfectly for a few floats but will fail for too many 
floats. The limit of currently unprocessed floats is therefore set to 18.


Couldn't this be handled by the package placeins, with the command 
\FloatBarrier? Placing that command every now and then?

Just my first thought...


Re: Another Lyx Error Detected

2010-02-08 Thread Uwe Stöhr

> Another problem I am having is with too many floating figures. I have a
> large document with anywhere from 3-100 figures within each chapter.
> I keep getting the error regarding too many floats.

This is not a LyX bug but a restriction of LaTeX. LaTeX's floating algorithm works perfectly for a 
few floats but will fail for too many floats. The limit of currently unprocessed floats is therefore 
set to 18. There is a way to increase this limit to 36 floats but this only cures the symptom.


It can be that LaTeX cannot process one particular float and therefore runs into the limit. Fixing 
this is not trivial. The best is to cut parts of your document beginning from the end. After every 
cutting try to compile it as PDF. When it compiles, you know that the problematic float is within 
the recently deleted part of your document.


Either a float setting is not correct (like rotation settings), or there are too many floats for the 
page. In this case adopt the float placement options as described in sec. 3.5 of the EmbededObjects 
manual that you find in LyX's Help menu. If you have many pages without text, you should use the 
"page of floats" option.


> I worked around this issue by placing /clearpage every so often to make it 
produce a PDF.

If you are using a book document class, you need to use \cleardoublepage.
But you should nevertheless only use clearpage if it is really necessary because the resulting 
whitespace cannot be avoided easily.


Important note: The "too many floats" error can also occur when having too many margin notes. 
Therefore also check this.


regards Uwe

p.s. Such problems are better reported at the lyx-users mailing list I'm 
forwarding this mail to.


Re: Another Lyx Error Detected

2010-02-08 Thread Florian Rubach

Am 09.02.2010 01:56, schrieb Uwe Stöhr:

> Another problem I am having is with too many floating figures. I have a
> large document with anywhere from 3-100 figures within each chapter.
> I keep getting the error regarding too many floats.

This is not a LyX bug but a restriction of LaTeX. LaTeX's floating 
algorithm works perfectly for a few floats but will fail for too many 
floats. The limit of currently unprocessed floats is therefore set to 18.


Couldn't this be handled by the package placeins, with the command 
\FloatBarrier? Placing that command every now and then?

Just my first thought...