Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using LaTeX, how can I have a list of references at the end of each section? [closed]

I want to generate the bibliography for each section, and have it at the end of the section. When I do this at the moment it generates the full bibliography and places it after each section.

Is there a way that this can be done?

The advice here says

"The chapterbib package provides an option sectionbib that puts the bibliography in a \section* instead of \chapter*, something that makes sense if there is a bibliography in each chapter. This option will not work when natbib is also loaded; instead, add the option to natbib. "

I don't understand what this means, and I've tried experimenting with what I thought the options are. Specifically, what does "add the option to natbib" mean?

My subsequent question (which evolved after my first one was solved) is to not have pagebreaks between the references, and the next section.

Thank you for your help.

like image 578
djq Avatar asked Mar 23 '10 20:03

djq


People also ask

How do you include multiple references in LaTeX?

If you want to cite multiple references within the same brackets, you just need to separate the labels with a comma. In addition, you'll need to load the cite package which will automatically check if your labels are part of an ordered list and reduce the list by replacing all the “in-betweens” with a hyphen.

How do I make a reference list in LaTeX?

You can reference labels in LaTeX by placing a \label{key} command behind a sectioning command, chapter, or image. You should then assign a unique key to it. Following this, you can use \ref{key} and \pageref{key} commands to reference them.

How do you reference each chapter?

Separate each chapter by going to Insert --> Section Break. Go to Tools --> EndNote --> Configure Bibliography making sure the style is set to the one you just modified, such as APA 6th Bibliography. The Word document will automatically update the references and display them after each chapter.


1 Answers

In addition to

\usepackage[sectionbib]{natbib}
\usepackage{chapterbib}

You will have to put each section in a separate .tex file which you then \include. You will have to run bibtex on each .tex file separately.

N.B. Using \input rather than \include avoids unwanted page breaks, but it will not create the .aux file that BibTeX needs to do its work. I looked at the definition of \include, and I don't see how to disable the page-breaking function except by disabling \clearpage entirely. You could try

\let\originalclearpage=\clearpage
\def\clearpage{\relax}

right after your \begin{document}, but you may have to put some \originalclearpage in by hand.

like image 156
Norman Ramsey Avatar answered Sep 18 '22 18:09

Norman Ramsey