I'm using the chapterbib package for multiple bibliographies. I put the following two lines in the preamble.
\usepackage[square,numbers,sectionbib]{natbib}
\usepackage{chapterbib}
Included chapter files with
\include{Chapter01}
and added the bibliography to the end of each chapter with
\bibliographystyle{plainnat}
\bibliography{Bibliography}
This works perfectly. But when I put each chapter in its own sub directory and use \input rather than \include like this
\input{../101Chapter01/101Chapter01}
it produces the global bibliographies for each chapter. Any help will be highly appreciated.
\includebecause it generates its own.auxfile whereas\inputdoes not. But what's the problem now? Why do you want to use\inputinstead of\include? – Thorsten Jan 22 '12 at 07:22\include{path/to/my/file}. – Thorsten Jan 22 '12 at 07:28\includeusing spaces in paths. Maybe this works:\include{"my path with spaces"/file}. But I generally recommend you to avoid spaces in paths. – Thorsten Jan 22 '12 at 07:43chapterbibpackage with child files in various subdirectories using\includeand full paths suggested by Thornsten. However, I have been unsuccessful as I cannot create AUX files for the children by running BibTex on each child.chapterbibneeds the AUX files to work. I've read that MikTeX security may be preventing related AUX files from being written in different directories (if I'm reading this answer: http://tex.stackexchange.com/questions/2209/how-can-i-include-the-file-somedir-file-tex-in-the-file-somedir-subdir-another/2214#2214 correctly). – Jan 27 '12 at 02:20