BibTeX, biblatex and biberInclude revised date in references

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
snowfrog
Posts: 38
Joined: Wed Jan 06, 2010 8:11 pm

Include revised date in references

Post by snowfrog »

Hi,

I am referencing a map that was done in 1998, revised in 2001. When I cite the map in the text I would like it to look like
text text author_of_map(1998) text text
but in the References section I would like it to be referenced as
author_of_map(1998. Revised in 2001)
Is this possible?

Thanks in advance!

Recommended reading 2024:

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

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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Include revised date in references

Post by frabjous »

Normally, I'd handle something like this with:

year = {1998},
note = {Revised in 2001},

in the bib file rather than:

year = {1998. Revised in 2001}

whether you get good output from that will depend on your bibstyle though.
snowfrog
Posts: 38
Joined: Wed Jan 06, 2010 8:11 pm

Include revised date in references

Post by snowfrog »

whether you get good output from that will depend on your bibstyle though
Sorry, I should have said: I'm using natbib, \bibliographystyle{apalike}.

"Revised in 2001" comes up at the end of the reference, rather than near the date where I would like it to be but I'll settle for that if there's no other way.

Thanks for your help!
olofos
Posts: 56
Joined: Tue Nov 24, 2009 10:37 pm

Include revised date in references

Post by olofos »

One way would to put something like

Code: Select all

year={1998. Revised in 2001\shortdate{1998}}
in your bib-file. In the preamble add

Code: Select all

\newcommand{\shortdate}[1]{#1}
and right before the \bibliography macro add

Code: Select all

\renewcommand{\shortdate}[1]{}
It's not a pretty solution, but it puts the full date in the right place.
olofos
Posts: 56
Joined: Tue Nov 24, 2009 10:37 pm

Include revised date in references

Post by olofos »

Instead of putting the last line before \bibliography, it's probably nicer to put

Code: Select all

@preamble{"\def\shortdate#1{}"}
somewhere in the bib-file. This makes it more portable, since you can reuse it in some other tex-file without putting that line before the bibliography. You will still need to put

Code: Select all

\newcommand{\shortdate}[1]{#1}
in the preamble of the tex-file if you use natbib.
snowfrog
Posts: 38
Joined: Wed Jan 06, 2010 8:11 pm

Re: Include revised date in references

Post by snowfrog »

Thanks olofos. Your suggestions work perfectly!
Post Reply