Here is a website reference in my .bib
file …
@MISC{Peston2010,
AUTHOR = {Peston, Robert},
TITLE = {The Digital Economy Bill},
URL = {www.news.bbc.co.uk/1/hi/technology/8604602.stm},
DATE = {9},
MONTH {April},
YEAR = {2010},
ACCESSED = {8 February 2012}
}
When I compile and display my PDF, it only shows "Robert Peston. The digital economy bill" It does not show the URL, Date, Month, Year and Accessed. Can anyone tell me why this isn't working? I spent a while sorting this out and decided to consult help.
Also, when I compile, I get a small error "Overfull \hbox (183.18742pt too wide) in paragraph at lines 1–10". I am quite new to LaTex
Best Answer
You need to use a modern
.bst
file;plain.bst
is not going to cut it, I'm afraid. Inplain
and the other "classic" BibTeX style files, the only fields contained in amisc
entry that are printed out areauthor
,title
,howpublished
,date
, andnote
. All other fields -- includingurl
andaccessed
-- are ignored. Hence the need for a more recent bibliography style.Which bibliography style should you choose? Since you haven't indicated what your formatting requirements are, I can't give any definitive advice. You may want to start out with the
plainnat
bibliography style. (This means, by the way, that you will also need to load thenatbib
package, but you may be doing so already.) You should probably also be loading theurl
package to let LaTeX find convenient line break points in a long URL string.By the way, the
date
field in amisc
entry is a bit unusual. (At least that's the case when it's processed byplainnat.
) For your purposes, I think it's best if you omit thedate
field entirely and, instead, include the day-of-the-month information in themonth
field; i.e., setmonth = "9 April"
for the entry at hand.Be aware that the
misc
entry (at least when used with theplainnat
style) does not recognize a field namedaccessed
. However, things will work out well if you (i) replace theaccessed
field name withnote
and (ii) place the word "Accessed" inside thenote
field's argument. Assuming, then, that you go withplainnat
or a similar bibliography style, the bib entry should probably look something like this:With this entry stored in the file
myref.bib
, say, the following MWEproduces this output:
Two final comments: (i) If you don't want BibTeX to lowercase the words in the
title
field, you should enclose the words in question in curly braces. (ii) If you want the citations generated bynatbib
's\citet
and\citep
commands to use round parentheses rather than square brackets, load thenatbib
package with the option "round", as in\usepackage[round]{natbib}
.