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 cite online ressources like this in my .bib file:

@misc{JavaCross,
  author = {Sun},
  title = {Java Sun: Definition Cross Plattform},
  note = {\url{http://java.sun.com/products/jlf/ed1/dg/higq.htm}},
  lastvisited = {2012-03-20},
}

the lastvisited doesnt work. It just gets ignored. I also tryed lastchecked and urldate, which I find on google.

Any help greatly appreciated.

share|improve this question
3  
You need to tell us, what kind of style you're using. What about creating a minimal working example (MWE)? –  Thorsten Mar 22 '12 at 17:17

1 Answer 1

up vote 6 down vote accepted

Ideally, you'd be using a bibliography style file -- the argument of the \bibliographystyle command -- that is set to recognize and process a field named "lastvisited". Which style file are you currently using?

If you can't obtain a suitable style file (extension .bst) that processes the contents of a field named "lastvisited", you could pursue either of the following strategies:

  • First, you might combine the contents of the note and lastvisited fields into a single note field, i.e., combine

    note = {\url{http://java.sun.com/products/jlf/ed1/dg/higq.htm}},
    lastvisited = {2012-03-20},
    

    into

    note = {\url{http://java.sun.com/products/jlf/ed1/dg/higq.htm}, visited 2012-03-20},
    
  • Second, if you're using a reasonably modern bib style file (i.e., which recognizes a field named url), you could (i) change the label "note" to "url" and (ii) change the label "lastvisited" to "note" and add "visited on" to the contents of the new note field.

    url = {\url{http://java.sun.com/products/jlf/ed1/dg/higq.htm}},
    note = {visited on 2012-03-20},
    

    Addendum: Some examples of reasonably modern bib style files (i.e., which recognize a field named url) are those that come with the natbib package: plainnat.bst, unsrtnat.bst, and abbrvnat.bst. They behave very much like the plain, unsrt, and abbrv style files while recognizing five additional fields -- doi, eid, isbn, issn, and url -- beyond the 22+ fields recognized by the original bib style files plain, unsrt, and abbrv.

share|improve this answer
    
I`m using "galpha2a". You´re post was very helpful. Thank you! –  dan Mar 23 '12 at 6:58
    
I can't find a file galpha2a anywhere. Is it a custom bibliography style? –  Mico Mar 23 '12 at 23:55
    
to be honest, I dont know. I´m using the template of my professor. Sorry. –  dan Mar 24 '12 at 8:33

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.