----- Original Message ----
From: Jürgen Spitzmüller <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, February 5, 2007 2:53:13 AM
Subject: Re: Too many indices, LoT, LoF?

Curtis Osterhoudt wrote:
> Hi, all,    Upon compiling my LyX document, which contains lots of
> Includes, a Table of Contents, Index, Lists of Figures and Tables, etc.,
> the LyX frontend reports that there's "No room for a new \write"
> (similarly, using pdflatex from the command line on the .tex file fails).
> I've done a little searching online; most if not all of the documents I've
> found reference the Memoir class (which I'm not using; this happens to be a
> Koma-script Report master document), but it seems that it's actually more
> of an underlying TeX problem, and I simply have too many Indices, Lists,
> etc.  

Seems so. TeX is limited in this regard (to 16 \write streams). Cf.
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=noroom

> As an attempt to remedy this, and get a nicely compiled document, 
> I've gone through each of the constituent files and deleted the any
> "Index"es or "Bibliography"[ies] which are in "comment" boxes (I put them
> in originally to test indices and bibliographies for each individual file).

That won't help. Things in comment boxes are skipped by LaTeX anyway.

> However, this does not solve the problem, and I *still* get "No room for a
> new \write" and "Bad number {16}" as error messages from LyX.     Has
> anyone run into this, and solved it? The documentation for the Memoir class
> says I have no recourse but to rearrange my document. How do people write
> books with this TeX limitation? Would it help to switch to TeX Live or
> something?      Thanks!               Curtis O.

There's no way to get rid of this limitation. You probably have to comment out 
the remaining Bibliographies, Indexes etc. by and by and see if that helps. 
Rearranging the document might indeed help as well, since the problem is not 
necessarily too many objects, but that too many write streams are used (TeX 
does not necessarily need one stream per object).

HTH,
Jürgen



======================================================
Hi, LyXers,

     (I'm the same Curtis O. who sent the original message, but am sending from 
a different account, as Hotmail seems to fumble formatting from non-IE 
browsers.)    

    Thanks especially to Jürgen and Hellmut for their replies!

     I have solved the problem (at least temporarily), but through very little 
directed effort of my own. In attempting to get my master document back to the 
way it was a few days ago, I did a recovery of a backup file. Unfortunately, I 
wasn't very careful about how I did it, and managed to wipe out my entire 
thesis directory. Scary, but I had other backups (yay!). These other backups, 
however, did not include some work I'd done over the weekend, and so I was very 
sad (aw...). Luckily, LyX stores its information in files which can be grepped, 
so I learned far more about recovering files using grep than I've ever wanted 
to know. Although they appeared to be erased (and I use an ext3 filesystem, so 
recovery efforts are somewhat uncertain), I was able to recover the work I'd 
done on the weekend. 
      Once I had that back, I was in a perturbed enough state to really go 
through my master document and move things around (for example, I had a "Front 
Matter" file included in the master file, which itself included the front 
pages, signature page, acknowledgements and introduction to my thesis). I 
ripped out a lot of nested "includes" and more sanely arranged things in the 
master file -- this seems to be what Jürgen suggests, above. 

      Now things work, and look nicer than ever.

       On a  related note, I have always included an acknowledgement of the LyX 
team in a "Technical Notes" section of my thesis. This reads
             "This document was written almost entirely in LyX. A huge 
heartfelt thanks is extended to the LyX developers."
      I'd like to know if this is acceptable to the developers.

      Thanks again!
                         Curtis O.

    






 
____________________________________________________________________________________
8:00? 8:25? 8:40? Find a flick in no time 
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

Reply via email to