GeneralNo room for a new \write ?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
kosala
Posts: 2
Joined: Sun Apr 10, 2011 9:59 am

No room for a new \write ?

Post by kosala »

Code: Select all

\documentclass[a4paper,11pt,twoside,palatino]{report}	

\usepackage{minitoc}
\usepackage{longtable}
\usepackage{setspace}
\usepackage{dsfont}
\usepackage{listings} 
\usepackage{times}
\usepackage{ifthen,url}	
\usepackage{thesis_style}	
\usepackage{setspace}	
\usepackage{graphicx}	
\usepackage{boxedminipage}

\usepackage[framed,numbered]{mcode} 
\usepackage{lscape}



\usepackage[T1]{fontenc}
\usepackage[sc]{mathpazo}
\linespread{1.05}  

\usepackage{mdwlist}   

\def\la{\langle}
\def\ra{\rangle}
\def\lb{[\![}
\def\rb{]\!]}
\def\f{\hspace{-0.033cm}f\!\hspace{0.013cm}}
\def\dfn{\mathrel{\mathop{=}\limits^{\textrm{\tiny def}}}}

\doublespacing	
\thispagestyle{empty}



\begin{document}


\input{title-page}
\include{acknowledgements}
\include{declaration}

\singlespacing
\addcontentsline{toc}{chapter}{Abstract}
\include{abstractT}

\singlespacing
\dominitoc
\tableofcontents
\doublespacing


\cleardoublepage
\addcontentsline{toc}{chapter}{List of Figures}
\listoffigures

\begin{description}
\cleardoublepage
\addcontentsline{toc}{chapter}{List of Tables}
\listoftables
\end{description}

\include{Abbreviations}


%include your chapters here

\faketableofcontents
\adjustmtc[1]
\mtcaddchapter
\include{chap1}


\faketableofcontents
\adjustmtc[2]
%\stepcounter{mtc} this also works
\mtcaddchapter
\include{chap2}


\faketableofcontents
\adjustmtc[3]
\mtcaddchapter
\include{chap3}

\faketableofcontents
\adjustmtc[4]
\mtcaddchapter
\include{chap4}

\faketableofcontents
\adjustmtc[5]
\mtcaddchapter
\include{chap5}

\faketableofcontents
\adjustmtc[6]
\mtcaddchapter
\include{chap6}

\faketableofcontents
\adjustmtc[7]
\mtcaddchapter
\include{chap7}


\faketableofcontents
\adjustmtc[8]
\mtcaddchapter
\include{chap8}


\faketableofcontents
\adjustmtc[9]
\mtcaddchapter
\include{chap9}



\singlespacing
\addcontentsline{toc}{chapter}{Bibliography}	
\small
\bibliographystyle{ThesisStyleURL}	
\bibliography{thesis}	
\normalsize


\appendix 
\include{AppendixA}
\include{AppendixB}
\include{AppendixC}
\include{AppendixD}

\end{document}

Problem : I get the error "No room for a new \write ?". Can someone show me the issue pl?
Last edited by kosala on Mon Apr 11, 2011 10:51 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

No room for a new \write ?

Post by localghost »

Please always provide a minimal example which is reduced to only relevant code that must be compilable for others as provided. Your example reads external files that are not present to others. And by the way, I don't think that »palatino« is a valid option for the »report« class.


Thorsten
xexeo
Posts: 1
Joined: Fri Jan 17, 2020 8:01 am

No room for a new \write ?

Post by xexeo »

LaTeX has a limit of 16 open files, and many packages open them.

There are 3 solutions for this error:
  • Use LuaLaTeX, and the limit will be the limit in the operating systems (never tried)
  • Use the packages morewrites (used it for a while but later hit in a bug)
  • Use the package scrwfile from KOMA-Script (My current choice)
morewrites and scrwfile have different approaches to solve this problem, but both change the LaTeX kernel somehow. Deep Magic.
Post Reply