Latest news 2020-05-02: new blog post "Book Samples."

Bug Tracker

ID:53 🔗
Status:Closed (Not a Bug)
OS:windows 7 64 bit
Submitted by:stathis
Date:2014-01-24 09:49:54
Summary:glossaries, multibib and tableofcontents produce "weird error"


I have a situation that when I use multibib and glossaries, and I addmore than 10 \newcites (bibliographies) and have a \tableofcontents command then I get "weird error" or a "no room" error.

The bug was extremely tedious to debug (as the error changes if other packages are included or the orderof packages is different), but I found the solution here:

that using:

\usepackage{morewrites} before the glossaries package solves the problem.

I am uncertain which package is responsible for this problem, but I think other users may find the solution useful. If there is nothing to fix, I believe it may be a useful FAQ entry.

thanks for the awesome latex package!


% arara: pdflatex: {action: batchmode, draft: yes, options: "-synctex=-1 --src-specials --file-line-error-style"}
% arara: makeglossaries
% arara: pdflatex: {action: nonstopmode, draft: yes, options: "-synctex=-1 --src-specials -halt-on-error -file-line-error-style"}
% arara: pdflatex: {action: nonstopmode, options: "-synctex=-1 --src-specials -halt-on-error -file-line-error-style"}

% if morewrites is commented out, one cannot have more than 10 bibliographies
% (case a) ERROR. compile this as is and it should produce an error
% (case b) OK. uncomment line 11 and it should compile, with any number of \newcites.
% (case c) OK. keep this commented, but switch line 14 with line 15 (comment/uncomment as necessary of course) 








Thank you for your report. This is a basic limitation of TeX and its limited number of registers. As you mentioned, loading morewrites can fix the problem. An alternative is to use scrwfile. I think this is similar to the problem I get the error: "no room for a new \write". I'll have to close this as "Not a Bug" as I can't provide a fix other than to recommend using morewrites or scrwfile.

Update 2020-02-29: if you have a problem with too many write registers, you may want to consider switching to bib2gls and glossaries-extra as no write registers are required for the glossaries in that case (since the indexing information is written to the aux file).

Add comment or return to search results.

Watch This Report

If you would like to be notified whenever updates are made to this report, please fill in your email address in the box below and click on "Notify Me of Changes" button. (Please ensure the address is valid.) Your details won't be passed on to third parties in line with this site's Privacy Policy.

If you supply your name, it will be used in the email greeting, which provides a more personal message, otherwise you'll just get a generic greeting. If you have previously supplied your name when signing up for notifications, you don't need to resupply it unless you want to change it.

If you have previously subscribed to notifications for this report, you can unsubscribe by clicking on the "Stop Notification" button.

The "Confirm Bug ID" field helps to protect against spambots. Please enter the bug ID (which you can find at the top of this page).

E mail:
Confirm E mail:
Confirm Bug ID:

To unsubscribe from all notifications use the notifications page.


You can append a comment to the report using the form below. Comments are checked first before being added. Any spam or offensive content will be removed first according to this site's Terms of Website Use. Please bear in mind that I develop and maintain free software in my spare time. If you want commerical level support then you can hire a TeX consultant.

The "Confirm Bug ID" field helps to protect against spambots. Please enter the bug ID (which you can find at the top of this page).

(Optional. If provided, it will be shown with the comment.)
Confirm Bug ID:

You can use the following markup:

[pre]Displayed verbatim[/pre]
[tt]monospace text[/tt]
[em]emphasized text[/em]
[b]bold text[/b]
[url]web address[/url]

Ordered list:
[li]first item[/li]
[li]second item[/li]

Unordered list:
[li]first item[/li]
[li]second item[/li]

Click on the Preview button to preview the message.

Return to search results.