# Bug Tracker

ID 53 Closed (Not a Bug) glossaries 4.03 glossaries, multibib and tableofcontents produce "weird error"

## Report

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!

stathis

### MWE

% 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"}
\documentclass{article}

% 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)
%\usepackage{morewrites}

\usepackage{multibib}
\newcites{a,b,c,d,e,f,g,h,i,j,k}{1,2,3,4,5,6,7,8,9,10,11}
%\newcites{a,b,c,d,e,f,g,h,i,j}{1,2,3,4,5,6,7,8,9,10}

\usepackage{glossaries}
\makeglossaries

\begin{document}

\tableofcontents

\printglossaries

\end{document}


## Evaluation

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.

## Watch This Report

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).

Name: (Optional.)

## Comment

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).

Name: (Optional. If provided, it will be shown with the comment.) Message: 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: [ol] [li]first item[/li] [li]second item[/li] [/ol] Unordered list: [ul] [li]first item[/li] [li]second item[/li] [/ul]

Click on the Preview button to preview the message.