# [OS X TeX] No room for a new \write

Axel E. Retif axretif at igo.com.mx
Sat Apr 28 03:41:48 EDT 2007

```On  27 Apr, 2007, at 13:41, Alan Munn wrote:

> At 8:20 PM +0200 4/27/07, Roberto Avanzi wrote:
>> On 27 Apr 2007, at 10:57, Ralph Martin wrote:
>>
>>> I am working on a Proceedings composed of many papers. After
>>> adding one more paper, I  now get the error message below, which
>>> seems to indicate I cannot open any more files for writing.
>>>
>>> What can I do to resolve this, if anything?
>>>
>>> ---------------------------------------
>>> (./46470000.toc [7])
>>> ! No room for a new \write .
>>> \ch at ck ...\else \errmessage {No room for a new #3}
>>>                                                   \fi
>>> l.172 \tableofcontents
>>>
>>> ? x
>>> Output written on 46470000.dvi (3 pages, 10960 bytes).
>>> ---------------------------------------
>>
>> It seems your tex memory has been exhausted?  You should
>
> No, this error is regarding the number of currently open files that
> TeX can deal with (and is not changeable).  You may need to give
> a solution.

Indeed, the tocloft PDF says:

> For a document that includes a ToC but no other extra ancilliary
> files (e.g., no index or bibliography output files) the maximum
> number of LoX’s, including a LoF and LoT, is no more than about
> eleven. If you try and create too many new listings LaTeX will
> respond with the error message:
>
> No room for a new write
>
> If you get such a message the only recourse is to redesign your
> document.

Best,

Axel