Bibliographystyle Plain-Fr

This is a gentle introduction to using some of the bibliography functionality available to LaTeX users beyond the BibTeX basics. This introduction won't be discussing how to create new styles or packages but rather how to use some existing ones. It is worth noting that Harvard, for example, is a citation style. It is associated with an alphabetical reference list secondarily ordered on date, but the only strictly defined element of Harvard style is the citation in author-date format.

The example data[edit]

The database used for my examples contains just the following

@article{Erdos65, title = {Some very hard sums}, journal = {Difficult Maths Today}, author = {Paul Erd\H{o}s and Arend Heyting and Luitzen Egbertus Brouwer}, year = {1930}, pages = {30}}

The limits of BibTeX styles[edit]

Using cite.sty and BibTeX makes it very easy to produce some bibliography styles. But author-date styles - for example the often mentioned, never defined "Harvard" - are not so easy. It's true that you can download some .bst files from CTAN that will handle some variants but using them is not always straightforward. This guide deals with Natbib a supplementary package that can access .bib files and has sophisticated functionality for producing custom or default author-year format citations and bibliographies as well as the numerical styles handled by BibTeX.

Natbib[edit]

Natbib is a package created by Patrick Daly as a replacement for the cite.sty package when author-date citation styles are required. Natbib provides three associated bibliography styles:

  • plainnat
  • abbrvnat
  • unsrtnat

which correspond to the three styles available by default in BibTeX where you have a plain numbered style, an abbreviated numbered style and an unsorted numbered style.

Alongside these new styles is an extended set of citation commands to provide flexible citation formats. These are

and

each of which has a number of variants.

The Preamble[edit]

All Natbib styles require that you load the package in your document preamble. So, a skeleton LaTeX file with Natbib might look like this:

\documentclass[]{article}\usepackage[round]{natbib}\begin{document} Document body text with citations. \bibliographystyle{plainnat}\bibliography{myrefs}\end{document}

Options[edit]

Options available with Natbib can be specified in the brackets on the \usepackage command. Among them are:

OptionEffect
round()
square[]
curly{}
angle<>
semicolonseparate citations with ;
colonas semicolon
commaseparate with commas
authoryearauthor-year citations
numbersnumeric citations
supersuperscript citations
sortmultiple citations are ordered as in bibliography
sort&compressas sort but number ranges are compressed and hyphenated
compressnumber ranges are compressed and hyphenated but only where the 'natural' sort produces a continuous range
longnamesfirstfirst citation is full author list and subsequent citations are abbreviated
sectionbiballows multiple bibliographies in the same document
nonamebreakforces all author names onto one line
mergemerges a citation with a previous citation
elideelides any repeated elements in merged references
mciteignore merge

Clearly some of these options require explanation but that will be achieved via examples below. For now, we just note that they can be passed through \usepackage[]{} in the preamble of your LaTeX file.

Citation[edit]

Basic Citation Commands[edit]

To cite with Natbib, use the commands \citet or \citep in your document. The "plain" versions of these commands produced abbreviated lists in the case of multiple authors but both have * variants which result in full author listings. We assume the use of the round option in these examples.

\citet and \citet*[edit]

The \citet command is used for textual citations, that is to say that author names appear in the text outside of the parenthetical reference to the date of publication. This command can take options for chapter, page numbers etc. Here are examples

\citet{Erdos65}producesErdős et al. (1965)
\citet[chapter 2]{Erdos65}producesErdős et al. (1965, chapter 2)
\citet[pp. 10-12]{Erdos65}producesErdős et al. (1965, pp. 10-12)
\citet[see][chap. 2]{Erdos65}producesErdős et al. (see 1965, chap. 2)

Here are the \citet* versions

\citet*{Erdos65}producesErdős, Heyting and Brouwer (1965)
\citet*[chapter 2]{Erdos65}producesErdős, Heyting and Brouwer (1965, chapter 2)
\citet*[pp. 10-12]{Erdos65}producesErdős, Heyting and Brouwer (1965, pp. 10-12)
\citet*[see][chap. 2]{Erdos65}producesErdős, Heyting and Brouwer (see 1965, chap. 2)

\citep and \citep*[edit]

The \citep command is used where the author name is to appear inside the parentheses alongside the date.

\citep{Erdos65}produces(Erdős et al. 1965)
\citep[chapter 2]{Erdos65}produces(Erdős et al. 1965, chapter 2)
\citep[pp. 10-12]{Erdos65}produces(Erdős et al. 1965, pp. 10-12)
\citep[see][chap. 2]{Erdos65}produces(see Erdős et al. 1965, chap. 2)
\citep[e.g.][]{Erdos65}produces(e.g. Erdős et al. 1965)

Here are the \citep* versions

\citep*{Erdos65}produces(Erdős, Heyting and Brouwer 1965)
\citep*[chapter 2]{Erdos65}produces(Erdős, Heyting and Brouwer 1965, chapter 2)
\citep*[pp. 10-12]{Erdos65}produces(Erdős , Heyting and Brouwer 1965, pp. 10-12)
\citep*[see][chap. 2]{Erdos65}produces(see Erdős , Heyting and Brouwer, 1965, chap. 2)
\citep*[e.g.][]{Erdos65}produces(e.g. Erdős , Heyting and Brouwer, 1965)

The Reference List[edit]

Having dealt with basic varieties of citation, we turn to the creation of the bibliography or reference list.

Inserting a correct and correctly formatted bibliography when using Natbib is no different than when using plain BibTeX. There are two essential commands -

\bibliography{mybibliographydatabase}

which LaTeX interprets as an instruction to read a bibliographic database file (eg myrefs.bib) and insert the relevant data here, and

\bibliographystyle{plainnat}

which specifies how the data are to be presented.

Above the three basic Natbib styles were mentioned as analogues of the partially homonymous styles in BibTeX. Let us imagine documents bearing citations as in the section about citation above. Here is, approximately, how these citations would appear in plainnat.

What more is there?[edit]

This covers the basic functionality provided by the package Natbib. It may not, of course, provide what you are looking for. If you don't find what you want here then you should probably next investigate harvard.sty which provides a slighly different set of author-date citation functions. Providing a gentle guide to harvard.sty is my next rainy day project.

LaTeX forum ⇒ BibTeX, biblatex and biber ⇒ Bibliography Style and URL Problem

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.




anis_huq
Posts:5
Joined: Fri Mar 16, 2012 1:26 am

Bibliography Style and URL Problem

Postby anis_huq » Fri Mar 16, 2012 1:46 am

Hi,
I have the following entry in my Bibliography.


When I use , I see the following in the subsequent .pdf:

Why am I not seeing the URL?

When I use , (I am forced to use "acm") I see the following in the subsequent .pdf:



You see that commas are put within one names and still no URL. What am I doing wrong? How can I fix this?
  1. author = {V. Fuller and D. Farinacci and D. Meyer and D. Lewis},
  2. organization = {Internet Engineering Task Force},
  3. series = {Request for Comments},
  4. title = {LISP Alternative Topology (LISP+ALT)},
  5. url = {http://tools.ietf.org/html/draft-ietf-lisp-alt-07},
Last edited by Stefan Kottwitz on Fri Mar 16, 2012 10:16 am, edited 1 time in total.
justdeath
Posts:69
Joined: Mon Sep 05, 2011 10:27 am

Postby justdeath » Fri Mar 16, 2012 1:18 pm

Hi to the forum.

But google is your friend:
http://tex.stackexchange.com/questions/ ... ibtex-file

Since I am nice:


And add \usepackage{url} in the preamble.

Nikolay
  1. author = {V. Fuller and D. Farinacci and D. Meyer and D. Lewis},
  2. organization = {Internet Engineering Task Force},
  3. series = {Request for Comments},
  4. title = {LISP Alternative Topology (LISP+ALT)},
  5. howpublished = {\url{http://tools.ietf.org/html/draft-ietf-lisp-alt-07}},
manpreet9112
Posts:8
Joined: Sat Jan 30, 2016 8:00 pm

Postby manpreet9112 » Wed Feb 17, 2016 7:45 pm

I am facing a problem in bibliography. I used @Electronic created by jabref. And used [authoryear]{natbib} package and bibliography style is {unsrtnat}. But I am unable to cite fields from @Electronic. @book and @article works well. Here is .bib file.



Whenever I write \cite{2015}, it shows 201(2015) in place of \cite{2015}. What I do?
  1. Title = {India loses Rs 2 trillion annually to corrosion of infrastructure: Government” Sep 3, 2015, The Economic Times},
  2. Url = {http://articles.economictimes.indiatimes.com/2015-09-03/news/66178697_1_corrosion-installations-infrastructure},
Johannes_B
Site Moderator
Posts:3639
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Wed Feb 17, 2016 9:27 pm

Can you open up a new thread for that? We have space for millions of questions, dealing with one problem per thread keeps the place tidy and clean.

A minimal working example including a working and non-working entry woul be nice.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Return to “BibTeX, biblatex and biber”

Jump to
  • LaTeX Community
  •    Announcements
  •    Community talk
  •    Comments & Wishes
  •    New Members
  • LaTeX
  •    Text Formatting
  •    Graphics, Figures & Tables
  •    Math & Science
  •    Fonts & Character Sets
  •    Page Layout
  •    Document Classes
  •    General
  • LaTeX's Friends
  •    BibTeX, biblatex and biber
  •    MakeIndex, Nomenclature, Glossaries and Acronyms
  •    Conversion Tools
  •    Viewers for PDF, PS, and DVI
  •    XeTeX
  •    Others
  • LaTeX Distributions
  •    Decision Guidance
  •    MiKTeX and proTeXt
  •    TeX Live and MacTeX
  •    Others
  • LaTeX Editors
  •    Decision Guidance
  •    AUCTeX
  •    Kile
  •    LEd
  •    LyX
  •    Scientific Word/Workplace
  •    Texmaker and TeXstudio
  •    TeXnicCenter
  •       Announcements
  •       General
  •       Templates, Wizards & Tools
  •       Feature Suggestions
  •       Development
  •    TeXShop
  •    TeXworks
  •    WinEdt
  •    WinShell
  •    Others
  • LaTeX Templates
  •    Articles, Essays, and Journal Templates
  •    Theses, Books, Title pages
  •    Letters
  •    Presentations and Posters
  •    Curricula Vitae / Résumés
  •    Assignments, Laboratory books and reports
  •    Calendars and Miscellaneous

Who is online

Users browsing this forum: No registered users and 0 guests

Powered by phpBB® Forum Software © phpBB Limited

0 comments

Leave a Reply

Your email address will not be published. Required fields are marked *