Text Formattingdcu: lastchecked and urldate in misc entries?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
demon
Posts: 26
Joined: Thu Nov 27, 2008 3:45 pm

dcu: lastchecked and urldate in misc entries?

Post by demon »

Hi again,

this is hopefully the last query for my thesis. I'm going to create a proper preset for my university with the hope others won't have so much trouble.

As already mentioned, I'm using natbib with scrreprt. In my BibTeX-Bibliography I have several entries as 'misc', like Blog- or Wiki-articles. As there's a rule to put at least a date for each url, I used Urldate and Lastchecked variables in BibTeX. How can I display these variables in my bibliography?

Thanks in advance!
Last edited by demon on Wed Feb 25, 2009 11:33 pm, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

demon
Posts: 26
Joined: Thu Nov 27, 2008 3:45 pm

Re: natbib: lastchecked and urldate in misc entries?

Post by demon »

Sorry, I forgot the most important part ... Bibliography-Style is dcu.

\bibliographystyle{dcu}
demon
Posts: 26
Joined: Thu Nov 27, 2008 3:45 pm

Re: dcu: lastchecked and urldate in misc entries?

Post by demon »

Hey guys, I need to print this thesis tomorrow, so any help is really appreciated.

I tried to modify the URL function in dcu.bst, but that's horrible. :(
demon
Posts: 26
Joined: Thu Nov 27, 2008 3:45 pm

Re: dcu: lastchecked and urldate in misc entries?

Post by demon »

got it with a modified dcu.bst.
SianKJones
Posts: 1
Joined: Mon Jun 21, 2010 4:21 pm

dcu: lastchecked and urldate in misc entries?

Post by SianKJones »

This has taken me hours. I know it'll be no use to demon now but I'm hoping that if someone else out there is stuggling like I am then this may help.

I use abbrv and booklet to format my webpages in my references:

Code: Select all

@BOOKLET{aref,
  title = {A Title},
  author = {A. Author},
  howpublished = {Available at: \url{http://www.google.com}},
  lastchecked = {29/09/09},
  year = {2005},
}
I couldn't get the lastchecked to appear. I searched for abbrv.bst on my computer opened it up and edited the file. These are the changes I made:

1. Add lastchecked in

Code: Select all

ENTRY
2. Add the following code in the same sort of place as formatting for authors, editors etc.

Code: Select all

FUNCTION {format.lastchecked}
{ lastchecked empty$
    { "" }
    { inbrackets "Last Accessed: " lastchecked * }
  if$
}
3. Add the following line before fin.entry in booklet.

Code: Select all

format.lastchecked output
I'm sure these changes could be applied to other things and I hope this manages to help when you're trying to edit bst files.

Sian
Post Reply