[texhax] !No room for a new \write.

Mike Jennings mike.jennings13 at ntlworld.com
Wed Oct 3 15:52:30 CEST 2007


Hi,

I'm using Miktex 2.5 to compile a PhD thesis. I would like the bibliography
to be at the end of each chapter. I am using the "chapterbib" package to do
this. I compile the bibliography in each of my individual chapters and then
compile the main file. Here is my main file:-

%input macros (i.e. write your own macros file called MacroFile1.tex)
%\include{Macros/MacroFile1}

%\documentclass[oneside,12pt]{Classes/CUEDthesisPSnPDF_Mike}
%\documentclass[12pt,a4paper,dvi2pdf, openright,
titlepage]{Classes/CUEDthesisPSnPDF_Nii}
%\documentclass[12pt,a4paper,dvi2pdf,twoside, openleft,
titlepage]{Classes/CUEDthesisPSnPDF_Nii}
%\documentclass[12pt,a4paper,dvi2pdf, twoside, openright,
titlepage]{Classes/CUEDthesisPSnPDF_Nii}
\documentclass[12pt,a4paper, dvi2pdf, oneside, openright,
titlepage]{Classes/CUEDthesisPSnPDF_Mike}
%\documentclass[12pt,a4paper,dvi2pdf,twoside]{report}
%\documentclass[12pt,a4paper,dvi2pdf,twoside]{Classes/dthesis}



\ifpdf
    \pdfinfo { /Title  (Novel Contact Formation for 4H-SiC Power Devices)
               /Creator (TeX)
               /Producer (pdfTeX)
               /Author (Michael Robert Jennings m.r.jennings at warwick.ac.uk)
               /CreationDate (D:20030101000000)  %format D:YYYYMMDDhhmmss
%               /ModDate (D:\pdfdate) %(D:20030815213532)
               /Subject (Power Electronics)
               /Keywords (PhD, SiC, Power Devices, Ohmic Contacts, Diode)}
    \pdfcatalog { /PageMode (/UseOutlines)
                  /OpenAction (fitbh)  }
\fi

\title{Novel Contact Formation for 4H-SiC Power Devices}

\ifpdf
  \author{\href{mailto:m.r.jennings at warwick.ac.uk}{Michael Robert Jennings}}
  \collegeordept{\href{http://www.eng.warwick.ac.uk}{Department of
Engineering}}
  \university{\href{http://www.warwick.ac.uk}{University of Warwick}}
% insert below the file name that contains the crest in-place of
'UnivShield'
 % \crest{\includegraphics[width=30mm]{UnivShield.eps}}
  \crest{\vspace{-3cm} \includegraphics[width = 60mm]{Warwick_Crest.eps}
\vspace{-1cm}}
\else
  \author{\href{mailto:m.r.jennings at warwick.ac.uk}{Michael Robert Jennings}}
  \collegeordept{\href{http://www.eng.warwick.ac.uk}{Department of
Engineering}}
  \university{\href{http://www.warwick.ac.uk}{University of Warwick}}
  \collegeordept{\href{http://www.wolfson.cam.ac.uk/}{Wolfson
  College}}
% insert below the file name that contains the crest in-place of
'UnivShield'

  % \crest{\includegraphics[width=30mm]{UnivShield}}
    % \crest{\includegraphics[width = 90mm]{Warwick_Crest.eps}} % Commented
out due to upgrade to MikTex 2.5
\fi
%
% insert below the file name that contains the crest in-place of
'UnivShield'
% \crest{\IncludeGraphicsW{UnivShield}{40mm}{14 14 73 81}}
%
%\renewcommand{\submittedtext}{change the default text here if needed}
\degree{Doctor of Philosophy} \degreedate{???? 2007}

% turn of those nasty overfull and underfull hboxes
\hbadness=10000 \hfuzz=50pt


\hyphenation{MATLAB Simulink IGBT power-train}
 %sys-tem sys-tems drive tem-per-a-ture ap-pli-ca-tion ap-pli-ca-tions
com-po-nent com-po-nents}



% Put all the style files you want in the directory StyleFiles and
usepackage like this:
\bibliographystyle{Classes/Mikes_IEEEtran}

\usepackage[english]{babel}
\usepackage{epsfig}
\usepackage{subfigure}
\usepackage{chapterbib}
\usepackage{amsmath}
\usepackage{dropping}
\usepackage{tabularx}
\usepackage{longtable}
\usepackage{setspace}

\usepackage{makeidx} % This contains the macros for indexing
\makeindex             % Switches indexing on (write to \jobname.idx)
\setlength{\nomitemsep}{-\parsep} \setlength{\nomlabelwidth}{2cm}
\renewcommand{\nomgroup}[1]{\vspace{2\baselineskip}}
\makenomenclature

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Below is the "draft copy" watermark text
settings in the pdf file. %%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% IT DOESN'T WORK WITH ROMANPAGES THOUGH!!!
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\usepackage[draft]{StyleFiles/pdfdraftcopy}
%\draftstring{DRAFT VERSION} \draftfontsize{90}
%%\draftfontfamily{hlh}
%\draftangle{45} \draftfontattrib{\upshape}
%\definecolor{mycolor}{rgb}{0.91,0.91,0.91}%{0,0,0.05}
%\draftcolor{mycolor}






%\makeglossary %use this when using nomencl packages released before May
2005

\begin{document}

\titlepage

%\language{english}


%\baselineskip=18pt plus1pt

% A page with the abstract on including title and author etc may be
% required to be handed in separately. If this is not so, then comment
% the below 3 lines (between '\begin{abstractseparte}' and
% 'end{abstractseparate}'), normally like a declaration ... needs some more
% work, mind as environment abstracts creates a new page!
% \begin{abstractseparate}
%   \input{Abstract/abstract}
% \end{abstractseparate}



\pagestyle{empty}

\maketitle

\pagestyle{fancy}

%set the number of sectioning levels that get number and appear in the
contents
\setcounter{secnumdepth}{3} \setcounter{tocdepth}{3}


%%%%%%%%%%%%%%%%%%%%%%%This section begins the contents page, list of tables
etc..%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{romanpages}
\tableofcontents \listoffigures \addcontentsline{toc}{chapter}{List
of Figures}
%%\addcontentsline{toc}{chapter}{\protect\numberline{}{List of
%%Figures}}

\listoftables\addcontentsline{toc}{chapter}{List of Tables}
%\newpage \thispagestyle{empty} $\left.\right.$
 %
%
%\newpage \thispagestyle{empty} $\left.\right.$
%\markboth{NOMENCLATURE}{NOMENCLATURE} %
%\phantomsection %
%\addcontentsline{toc}{chapter}{Nomenclature} %
\printnomenclature %\addcontentsline{toc}{chapter}{Nomenclature}

%\printglossary %use this when using nomencl packages released before May
2005

%\pagebreak \thispagestyle{empty} $\left.\right.$  \pagebreak

%\include{Acknowledgement/acknowledgement}
%\addcontentsline{toc}{chapter}{Acknowledgement}

%\phantomsection

%\pagebreak \thispagestyle{empty} $\left.\right.$\pagebreak
%\addcontentsline{toc}{chapter}{Abstract}
%\include{Abstract/abstract}
%\pagebreak \thispagestyle{empty} $\left.\right.$  \pagebreak

\end{romanpages}

%\mainmatter

%\pagebreak \thispagestyle{empty} $\left.\right.$  \pagebreak

 \doublespacing
\include{Introduction/introductiona}
\include{SiC_Material_Devices/SiC_Material_Devices}
\include{Metal_Semiconductor_Contact/Metal_Semiconductor_Contact}
\include{Chapter3/semiconductor_characterisation}
\include{P_Type_Contact/P_Type_Contact}
\include{Heterojunctions/heterojunction}
\include{PiN_Diodes/PiN_Diodes}

%\appendix
%\include{Appendix1/appendix1}
%\include{Appendix2/appendix2}


%\backmatter


\end{document}

****************************************************************************
**********************************************

My "\bibliography" command is in each of the chapters along with the
corresponding "\bibliographystyle" command. The bibliography compiles with
no problem however when I compile my main file, I get an error message "!No
room for a new \write". Do you have any idea how to combat this problem?

Cheers,

Mike




More information about the texhax mailing list