LaTeX forum ⇒ BibTeX, biblatex and biberTwo Years for a single Bibliography Entry

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
whirlwindmind
Posts: 3
Joined: Mon Apr 15, 2013 8:52 pm

Two Years for a single Bibliography Entry

Postby whirlwindmind » Mon Apr 15, 2013 8:56 pm

Hi there,

this is my first entry, so please be patient – and many thanks in advance for that. :)

I am writing an article on a historical subject, and would like to include the year of first publication in addition to the year of the publication I use. For example: Locke (1690/2008)

If I simply write "1690/2008" into my BibTeX file, nothing changes. All I get in my document is "Locke (2008)".

Any ideas how to fix this?

Tags:

whirlwindmind
Posts: 3
Joined: Mon Apr 15, 2013 8:52 pm

Postby whirlwindmind » Tue Apr 16, 2013 8:36 pm

A small addition:
Writing {1690/2008} into the year-entry of my bibtex file (call it locke1690) does not give the result "Locke (1690/2008)" if I type cite{locke1690}.

Any more ideas?

molipoli
Posts: 1
Joined: Sat May 10, 2014 9:40 am

Postby molipoli » Sat May 10, 2014 9:42 am

I was also looking for an answer to this question. A shame no-one answered.

whirlwindmind
Posts: 3
Joined: Mon Apr 15, 2013 8:52 pm

Postby whirlwindmind » Fri May 30, 2014 4:45 pm

Okay, I put this up once more. Still no answer? Anybody?

User avatar
Johannes_B
Site Moderator
Posts: 3584
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Tue Jun 03, 2014 3:57 pm

Using the modern biblatex one can easily do it:
Found on TeX.SX
  1. \documentclass{article}
  2.  
  3. \usepackage[
  4. %style=verbose
  5. style=authoryear
  6. ]{biblatex}
  7.  
  8. \renewbibmacro*{date}{%
  9. \printdate
  10. \iffieldundef{origyear}{%
  11. }{%
  12. \setunit*{\addspace}%
  13. \printtext[parens]{\printorigdate}%
  14. }%
  15. }
  16.  
  17. \usepackage{filecontents}
  18.  
  19. \begin{filecontents}{\jobname.bib}
  20. @book{kullback:reprint,
  21. author = {Kullback, Solomon},
  22. title = {Information Theory and Statistics},
  23. year = 1997,
  24. publisher = {Dover Publications},
  25. location = {New York},
  26. origyear = 1959,
  27. origpublisher= {John Wiley \& Sons},
  28. langid = {english},
  29. langidopts = {variant=american},
  30. annotation = {A reprint of the \texttt{kullback} entry. Note the format of
  31. \texttt{origyear} and \texttt{origpublisher}. These fields are
  32. not used by the standard bibliography styles},
  33. }
  34. \end{filecontents}
  35.  
  36. \addbibresource{\jobname.bib}
  37.  
  38.  
  39. \begin{document}
  40. \cite{kullback:reprint}
  41.  
  42. \printbibliography
  43.  
  44. \end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 2 guests