4

I'm new to the LaTeX scene as I've starting writing my thesis. I'm using a root .tex file and using \include to add in my chapters (etc). I'm also using \nomencl to add an abbreviations list. I'd like to have one central file that I can add abbreviations too and then add it to my final document. So I have manged to make that work but I can't get rid of the blank page created where I include my abbreviations file

abbrev.tex

\addtocontents{toc}{\protect\setcounter{tocdepth}{-1}}
\section{}
\nomenclature{JOE}{Job Obselete Effort}%
\nomenclature{NHE1}{The human Na$^{+}$/H$^{+}$ exchanger isoform-1}%
\nomenclature{home}{Where the heart is}
\nomenclatenter code hereure{LaTeX}{better than sliced bread}%

root.tex

\documentclass[10pt,oneside]{report}
...
\begin{document}
...
\include{chapter1
\include{chapter2}
\include{abbreviations}
...
\end{document}

and just to make it really clear: everything (i.e. all abbreviations and abbreviation list are inserted correctly in the document) is working EXCEPT I get a blank page where \include{abbreviations} is. I know I can just add all the \nomenclature{...} lines at the end of a chapter file but it would be nice to have them in one place. I've also tried `\input' instead but it's exactly the same.

1 Answers1

0

ok so the root file needed

\include{chapter1}
\include{chapter2}
\begingroup
\let\cleardoublepage\relax
\include{chapter3}
\include{abbreviations} %or \input{abbreviations}
\endgroup

and in chapter3.tex I included

...
\bibliography{JabRef_new}
\bibliographystyle{bibsty}
\let\clearpage\relax

if \let\clearpage\relax is included in the root file before \include{chapter3} the pagebreak before the bibliography is removed.

  • In my opinion you should use \input instead of \include; the latter is more useful when writing the document, with the former you have no problem caused the implicit \clearpage issued by \include. – egreg Mar 01 '13 at 18:03
  • @egreg You're probably right. For some reason using \input{abbreviations} alone without the \begingroup etc doesn't supress the page break. This might be because I'm using \include{chapter3} but if I use \input for all the chapters my individual chapter bibliographies are reproduced following every chapter. So although there may be a better practices way I don't want to mess up what is already working. – UbuntingBiochemist Mar 01 '13 at 18:11