## LaTeX forum ⇒ BibTeX, biblatex and biber ⇒ @MISC wont show up on reference list Topic is solved

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
tbstensrud
Posts: 4
Joined: Mon Jan 28, 2013 5:05 pm

### @MISC wont show up on reference list

I'm trying to add a URL to my reference list, but when I use this in the bib file

`@MISC{tek10,AUTHOR="Lovdata",TITLE="Teknisk forskrift 2010",YEAR="2010",URL="http://www.lovdata.no/cgi-wift/ldles?doc=/sf/sf/sf-20100326-0489.html"}`

nothing shows up in my pdf file when i run it. I get no error messages. Other references do show up in the pdf file.
Last edited by cgnieder on Mon Jan 28, 2013 7:59 pm, edited 1 time in total.

Tags:

Stefan Kottwitz
Posts: 9444
Joined: Mon Mar 10, 2008 9:44 pm
Hi,

welcome to the board!

Perhaps post a minimal working example, which shows the problem when we run it. Follow the link to learn why and how. It could be a compilable but drastically reduced copy of the problematic document and the bibliography. So we would also see the bibliography style and the settings. Otherwise it's hard to guess - BibTeX or biblatex, natbib or standard, which style, and more is unknown.

Stefan

tbstensrud
Posts: 4
Joined: Mon Jan 28, 2013 5:05 pm
Ok. Examples are the bib file and the tex file. Also, somehow the order of the references are not correct.
Attachments
referanseliste.bib
example.tex

Stefan Kottwitz
Posts: 9444
Joined: Mon Mar 10, 2008 9:44 pm
In the attached referanseliste.bib there's a comma missing before the url. But the example in your first post is ok, so that's probably just another small typo.

The `plain` bibliography style ignores the `url` field. You need to use a style which supports it. For example, you could load natbib:

`\usepackage{natbib}`

and later you specify `plainnat`, which is the `natbib` version of `plain`:

`\bibliographystyle{plainnat}`

`natbib` provides also author-year styles, which are popular today.

Stefan

tbstensrud
Posts: 4
Joined: Mon Jan 28, 2013 5:05 pm
I did as you said, however there are no url displaying yet. Also the order of references appears to be random. Ideally I want the references in the text to be labled 1,2,3 and so on regardless of their placement in the bib file.

I've looke at this site, http://merkel.zoneo.net/Latex/natbib.php, to find if there is a way to sort the references correctly, but I cant find it. Perhaps there are other packages who does this?

Stefan Kottwitz
Posts: 9444
Joined: Mon Mar 10, 2008 9:44 pm
tbstensrud wrote:I did as you said, however there are no url displaying yet.

It's displayed when I do as above. Perhaps you did something different, you could check again. Have a look at my output:

bibliography.png (10.53 KiB) Viewed 8769 times

tbstensrud wrote:Also the order of references appears to be random. Ideally I want the references in the text to be labled 1,2,3 and so on regardless of their placement in the bib file.

Then perhaps use `unsrt` or `unsrtnat` instead.

`\bibliographystyle{unsrtnat}`

Stefan

tbstensrud
Posts: 4
Joined: Mon Jan 28, 2013 5:05 pm
The error with the URL was my mistake. I was certain I added the "," there in the bib file, but i seem to have forgotten it, so it works now.

As for the numbering, for now I'm going to leave it as it is and go for the (author year) option which works just fine. Thanks for all the help. Much obliged!