% 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}
