# [OS X TeX] chapterbib

Herbert Schulz herbs at wideopenwest.com
Wed Feb 1 17:00:24 CET 2012

```On Feb 1, 2012, at 9:40 AM, Sam Cox wrote:

>
> On Jan 29, 2012, at 7:37 PM, Herbert Schulz wrote:
>
>>
>> On Jan 29, 2012, at 1:39 PM, George Gratzer wrote:
>>
>>>
>>> On 2012-01-29, at 10:48 AM, Herbert Schulz wrote:
>>>
>>>>
>>>> On Jan 29, 2012, at 9:09 AM, George Gratzer wrote:
>>>>
>>>>> I am trying to use chapterbib.sty for a chapter in a book,
>>>>> to conclude the chapter with a bibliography which does
>>>>> not start on an odd numbered page (right side page).
>>>>>
>>>>> Attached a minimal example.
>>>>>
>>>>> main.tex only has
>>>>>
>>>>> \input{Chapter}
>>>>>
>>>>> and Chapter.tex has two lines of text and a bibliography of two items.
>>>>>
>>>>> main.pdf has three pages, the lines on p. 1, a blank page,
>>>>> and the bibliography on p. 3.
>>>>>
>>>>> I do not want thee blank page 2. How do I do this?
>>>>>
>>>>> Thanks,
>>>>>
>>>>> GG
>>>>
>>>>
>>>> Howdy,
>>>>
>>>> By default the bibliography is set as an un-numbered chapter to have it set as an un-numbered section use the chapterbib package with the [sectionbib] option. This will make the bibliography appear directly following the last section. To put the bibliography on the following page put a \newpage just before the bibliography.
>>>>
>>>> <main.tex><Chapter.tex>
>>>>
>>>> Good Luck,
>>>>
>>>> Herb Schulz
>>>> (herbs at wideopenwest dot com)
>>>>
>>>
>>> Does not seem to work for me. I added the [sectionbib] option to main.tex
>>> (attached) and I still have the bibliography as a chapter (attached).
>>>
>>> GG
>>>
>>
>> Howdy,
>>
>> OK, I figured it out... you are using \input and I use \include. I'll bet the \include command is changed by the chapterbib package. Is there a reason you need to use \input rather than \include. Do all ``chapter'' start on a new page?
>>
>> Good Luck,
>>
>> Herb Schulz
>> (herbs at wideopenwest dot com)
>
> I changed your example. I put \usepackage{natbib} in front of \usepackage[sectionbib]{chapter bib} and changed  \bibliographystyle{plain} to \bibliographystyle{plainnat}.  I get the error "Bibliography not compatible with author-year citations".
>
> How can I get chapter bibliographies with author-year cites?
>
> Sam

Howdy,

It's a natbib thing that I've run across and don't really understand. First, the natbib documentation says you should use the [sectionbib] option when used with the chapterbib package (although that's not the problem). Second, I've used the [numbers] option with natbib. I'm sure it changes the formatting somehow but I'm not familiar enough with the natbib package and the details of bibliographies. So, I'd use

\usepackage[sectionbib,numbers]{natbib}