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?