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'm looking to cite a number of web pages using bibtex and I was wondering if there was a specific template of the form @<template name here> for doing that. If you could use the following website as an example that would be great

http://web.archive.org/web/20080207010024/http://www.808multimedia.com/winnt/kernel.htm

share|improve this question
1  
As an extra thing here - I just found that if you are want to attribute the site name as author (for example if I wanted to say that the author of this page was 'Stack Overflow' it's best to put 'Stack Overflow' as the `key' field, rather than the 'author' field. Because then latex formats as 'Stack Overflow' and not 'S. Overflow'. (might only apply with Harvard style) –  Joe Oct 7 '12 at 12:19
1  
a nice resource covering, inter alia, natbib and biblatex (with screenshot-snippets of the PDF) is here: nschloe.blogspot.de/2009/06/bibtex-how-to-cite-website_21.html –  nutty about natty May 1 '13 at 8:17

5 Answers 5

up vote 103 down vote accepted

A simple way of doing it in BibTeX is with a @misc entry:

@misc{WinNT,
  title = {{MS Windows NT} Kernel Description},
  howpublished = {\url{http://web.archive.org/web/20080207010024/http://www.808multimedia.com/winnt/kernel.htm}},
  note = {Accessed: 2010-09-30}
}

You should also perhaps include an author if you know it. And remember to load a package such as hyperref or url.


If you are using BibLaTeX there is an @online entry type:

@online{WinNT,
  author = {MultiMedia LLC},
  title = {{MS Windows NT} Kernel Description},
  year = 1999,
  url = {http://web.archive.org/web/20080207010024/http://www.808multimedia.com/winnt/kernel.htm},
  urldate = {2010-09-30}
}
share|improve this answer
5  
+1 for the way to include the access date (very important!). There's an alternative way that uses howpublished to include the \url{} and [Acccessed: 30 September 2009], but that might not be style-independent. It's a little frustrating that BibTeX didn't officially keep up with web pages as an entry. –  Fuhrmanator Aug 27 '12 at 15:35
1  
There is a urldate field for biblatex, that acts as an accessed date field. –  naught101 Oct 15 '12 at 2:22
1  
Not sure if it's related to my specific configuration, but Biber kept complaining about the urldate field until I changed it to {2010-09-30}. –  Pieter Mar 26 '13 at 14:28
    
Thanks! For web sites that are dated, I prefer to use the month and year fields, but for sites that are undated, putting the date of access in the note field is a good way to go. –  Nagel Oct 30 at 13:15

I always use the defaults suggested by Wikipedia (see "BibTeX entry" at the bottom), available if you click on "cite this page".

share|improve this answer
    
Neat trick. I had to change url to howpublished to make it work. How do I get that view for other wikipedia pages? –  krupan Jan 8 '13 at 19:08
    
@krupan I have no idea what you mean by "other wikipedia pages". What pages do you want to cite? –  Habi Jan 10 '13 at 12:07
    
+1 for using Wikipedia as a template. –  wsaleem Jun 25 at 17:14

Hm, it would seem that it isn't possible to cite webpages directly, but there does seem to be a workaround using the general purpose @misc field.

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=citeURL

share|improve this answer

I found a very good tutorial on http://www.polymtl.ca/biblio/utiliser/guide_bibtex.pdf

With this, i have modified the ieeetr.bst file to integrate the ignored tags url and urldate to all the types of entries (style was imposed for the report at the end of study).

The file was renamed (mystyle) and placed in the same local folder as the ref.bib file. Called with

\bibliographystyle{mystyle}
\bibliography{ref}

(1) add the new entries :

ENTRY
  { address
...
    url
    urldate
  }
  {}
  { label }

(2) add this function

FUNCTION {format.url}
{ url empty$
    { "" }
    {   
        ". \emph{Disponible}~\url{" * url * "}" *
        urldate empty$
         { "there is url but no urldate in " cite$ * warning$ }
         { 
            "~(\emph{consult\'e le} " * urldate * ")" *
         }
         if$
    }
  if$
}

(3) for all types, call the function with format.url "" output ! Example for @incollection:

FUNCTION {incollection}
{ output.bibitem
  format.authors "author" output.check
  format.title "title" output.check
  blank.sep
  crossref missing$
    { format.in.ed.booktitle "booktitle" output.check
      format.bvolume output
      format.number.series output
      format.chapter.pages output
      format.addr.pub "publisher" output.check
      format.edition output
      format.date "year" output.check
    }
    { format.incoll.inproc.crossref output.nonnull
      format.chapter.pages output
    }      
  if$
  format.url "" output 
  new.block
  note output
  fin.entry
}

I hope it can help you

share|improve this answer
    
Hi madit, just added some code tags for ya :) –  Scott H. Nov 6 '12 at 22:19
    
Yes, even in sentences, it is better indeed. Thank you. –  madit Nov 6 '12 at 22:26

The JabRef reference manager suggests to use the "electronic" type. So I do it like this:

@electronic{Rub1,
 author = {Rubino, Daniel},
 editor = {{Windows Phone Central}},
 title = {IE9 for Windows Phone 7: Adobe Flash, demos and development},
 url = {http://www.wpcentral.com/ie9-windows-phone-7-adobe-flash-demos-and-development-videos},
 urldate = {14.01.2013},
 originalyear = {18.02.2011}
}

In the BibTeX export of Citavi there is als the type "www". Depending on your editor you have to define the styles "electronic" and "www", so "misc" seems to be probably the safest.

But then you should use \bibliographystyle{alphadin} and do it like this:

@misc{Rub1,
 author = {Rubino, Daniel},
 editor = {{Windows Phone Central}},
 title = {IE9 for Windows Phone 7: Adobe Flash, demos and development},
 url = {http://www.wpcentral.com/ie9-windows-phone-7-adobe-flash-demos-and-development-videos},
 lastchecked = {14.01.2013},
 originalyear = {18.02.2011}
}
share|improve this answer

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.