Home General LaTeX tips and tricks → Custom bibliography styles [Previous Page] [Question index] [Next Page]

22. How can you define custom bibliography cite and listing styles?


Answer

Use the natbib package by Patrick W. Daly.

This is definitely a package so complex and large that it needs to be studied before you attempt to configure it (although it has out-of-the-box defaults that may work for you).

If you want to use its capabilities to the fullest, you will need to use the tools supplied with this package to actually generate a custom bibliography style, and then use that style in your document via the \bibliographystyle{} command.


Example usage

In the preamble:


\usepackage[square,authoryear,sort&compress]{natbib}

%% Custom bibliography style defined using the Makebst utility
%% that comes with the natbib package.

\bibliographystyle{bib/bibleo}


Result, before

Citing reference in the text:

'Before' screenshot, cites

Listing references in the bibliography:

'Before' screenshot, bibliography

Result, after

Citing reference in the text:

'After' screenshot, cites

Listing references in the bibliography:

'After' screenshot, bibliography

[Previous page] [Question index] [Next page]

Leo Breebaart (leo@lspace.org)
Last updated: 27 June 2016