Rob Oakes wrote:
Dear LyX Users,
Is anyone aware if there is a realistic limitation on the number of images
you can have in a long document (or the size of the resultant PDF)?
Yesterday, I've run into a problem that I don't know how to solve.
I have been working on the "Writing with open source tools" book, but my
overall PDF master document will no longer build. It fails with an
extremely obscure errors. Though they vary, the most common contain
reference to:
@@BOOKMARK
What is truly bizarre, however, is that if I remove one of several chapter
that has a very large number of images (examples, screenshots, etc), then
the book will compile without problem. It does not seem to matter which,
I've tested several different configurations and it seems to be overall
number of images that is the problem. (Also, I've tested all of the
individual chapter files that have been removed, and they all compile.)
I am also seeing errors in the debug output (I'm using an SVN version), and
it appears as though the worker thread is timing out.
Does anyone know what might be the cause of these problems? Does LyX or
LaTeX have any kind of limit on the number of files that it can
realistically handle? I'd be extremely appreciative of any advice.
I don't know of any limits in LyX, except for whatever limits your pc
and operating system have. Hitting those is not likely.
Latex have various limitations, especially for floating material. Is
your graphics in floats? Floats may float around, bumping into other
floats. There are some limits on how many floats latex can consider at
the same time.
If "Insert->Formatting->Clearpage" between your floats help, then
you probably hit some obscure "too many simultaneous floats" limit.
Same diagnosis if removing every other float in the chapter helps.
To distinguish between "too many floats" and "too many graphics files",
try dissolving floats instead of removing them. (i.e. the image remain
in the text, but non-floating.) If it helps, then you had a float
problem. If not, then you might have a problem with many files. Try
removing some.
Destructive tests are best done on a copy of your book. :-)
Possible fixes for float problems:
* Upgrade your latex, if possible. May also help with
other limits.
* Make sure you don't have an "unplaceable float". Typically
one that is bigger than a page, so it forces all floats
to the end of the chapter/book. And that don't work
if there are "too many".
* Fewer floats, but you probably doesn't want that.
* More text between floats, so one float can be placed before
the next is issued. If some "clearpages" help, then more
text in those locations will help too.
If you started by outlining with some headings and then
added all your figures before writing the text, then
you might get such trouble.
* Merge adjacent floats into a single float containing
several figures. (You can still have several numbered captions
and cross-reference each of them.)
* Reduce the size of some figures, placement becomes easier
for latex.
If your problems aren't float-related, then this isn't
likely to help.