I am typesetting a book with verses in three languages. The verses are typeset to appear in three columns using Reledpar. I also need three different indexes of these verses in the three languages, so I am using imakeidx to generate these.
However, TOC is not getting generated for my book. After many trials, I found that the problem is with Reledpar. If I remove this package, both TOC and imakeidx work perfectly. As soon as I introduce Reledpar, this is the error I get
No file testing_multiple_index.toc. ! No room for a new \write. \e@ch@ck ...message {No room for a new \string #4} \fi \fi l.24 ^^I\tableofcontents ?
Here is a MWE
\documentclass[12 pt, twoside]{extbook} %extarticle provides additional font-sizes
%for index
\usepackage{imakeidx}
\makeindex
\makeindex[name=eng,title=Alphabetical Index of Verses]
\makeindex[name=dev,title=Index of verses]
%parallel typesetting
\usepackage{reledmac}
\usepackage[shiftedpstarts]{reledpar}
\numberlinefalse
\setgoalfraction{0.8} % for reledpar error in finishing pages
\begin{document}
\frontmatter
\tableofcontents
\mainmatter
\chapter {Chapter 1}
\section {Section A}
This is a test line. \index[eng]{a verse}
This is a test line.
This is a test line. \index[dev]{sanskrit verse}
This is a test line.
This is a test line.
\section {Section B}
This is a test line. \index[eng]{another verse}
This is a test line.
This is a test line.
This is a test line. \index[dev]{sanskrit verse 2}
This is a test line.
\backmatter
\printindex[eng]
\printindex[dev]
\end{document}
\usepackage{morewrites}
and see if it works for your main doc? (It works for the minimal example in the question.) There is more discussion of a probably similar "No room for a new \write" problem at this question and this question.