Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a Bibliography section which I'd like to split into sections, like this:

  • References
    • Conference and workshop proceedings
      • Reference 1
      • Reference 2
    • Journal articles
      • Reference 3
      • Reference 4
    • Internet Engineering Task Force Request For Comments (IETF RFCs)
      • Reference 5
    • Application Programming Interfaces (APIs)
      • Reference 6

I use commands such as these to build my references:

\usepackage[round]{natbib}
\renewcommand*{\refname}{}
\nocite{*}
\bibliographystyle{plainnat}
\bibliography{myReferences}

end then:

/home/robottinosino$ latex f && bibex f && latex f && latex f
share|improve this question
    
Have a look at tex.stackexchange.com/questions/54940/… –  lockstep Jul 19 '12 at 15:10

1 Answer 1

up vote 5 down vote accepted

I take it that all or your bib entries are in a single file, right? If so, have a look at the multibib package. It performs its job by providing separate citation commands to distinguish citations in different bibliographies. It is compatible with the natbib package. In the preamble, you'd issue a series of \newcites commands, such as

\newcites{conf}{Conference and workshop proceedings}
\newcites{journ}{Journal articles}
\newcites{ietf}{Internet Engineering Task Force Request For Comments (IETF RFCs)}
\newcites{apis}{Application Programming Interfaces (APIs)}

In the body of the document, you would use commands such as \citetconf{ref1} and \citepietf{ref2}, where ref1 would be a document to be listed under the heading "Conference and workshop proceedings" and ref2 would be a document to be listed under the heading "Internet Engineering Task Force Request For Comments (IETF RFCs)".

Assuming the bib entries are in a file called myReferences.bib, the bibliographies would be generated by providing commands such as

\bibliographyconf{myReferences}
\bibliographyjourn{myReferences}

and so on. The package even lets you assign different bibliography styles to each of the separate bibliographies.

Incidentally, if your bib entries are already located in different bib files (organized by type), you may want to take a look at the bibtopic package as well.

share|improve this answer
    
Awesome. Thanks! How can I change the style of the heading it produces through \renewcommand{\refname}{Test}. –  Robottinosino Jul 19 '12 at 19:27
1  
Each time you issue one of the \bibliography<xxxx> commands, a new unnumbered section should be created with the heading (title) defined in the second argument of the corresponding \newcites{<xxxx>}{<Some Title>} macro. –  Mico Jul 19 '12 at 20:09
    
I guess then the question should be rephrased as "how can I format -that- unnumbered section it auto-generates?". –  Robottinosino Jul 19 '12 at 21:08
1  
@Robottinosino - which aspects of the formatting of the section header do you wish to modify? There are quite a few parameters; presumably you only need to change a few of them, right? –  Mico Jul 19 '12 at 21:53
1  
Absolutely, correct. Size, emphasis (bold vs plain)... I have tried doing something like \renewcommand{\refnamereferencedproceedings}{\small FIXME} but I don't know how to make FIXME stand for "what the command would normally output here". Perhaps there's a better way.. –  Robottinosino Jul 19 '12 at 21:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.