BibTeX, biblatex and biberTwo Years for a single Bibliography Entry

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

Two Years for a single Bibliography Entry

Post by whirlwindmind »

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?

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

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

Re: Two Years for a single Bibliography Entry

Post by whirlwindmind »

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

Re: Two Years for a single Bibliography Entry

Post by molipoli »

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

Re: Two Years for a single Bibliography Entry

Post by whirlwindmind »

Okay, I put this up once more. Still no answer? Anybody?
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Two Years for a single Bibliography Entry

Post by Johannes_B »

Using the modern biblatex one can easily do it:
Found on TeX.SX

Code: Select all

\documentclass{article}

\usepackage[
	%style=verbose
	style=authoryear
]{biblatex}

\renewbibmacro*{date}{%
  \printdate
  \iffieldundef{origyear}{%
  }{%
    \setunit*{\addspace}%
    \printtext[parens]{\printorigdate}%
  }%
}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@book{kullback:reprint,
  author       = {Kullback, Solomon},
  title        = {Information Theory and Statistics},
  year         = 1997,
  publisher    = {Dover Publications},
  location     = {New York},
  origyear     = 1959,
  origpublisher= {John Wiley \& Sons},
  langid       = {english},
  langidopts   = {variant=american},
  annotation   = {A reprint of the \texttt{kullback} entry. Note the format of
                  \texttt{origyear} and \texttt{origpublisher}. These fields are
                  not used by the standard bibliography styles},
}
\end{filecontents}

\addbibresource{\jobname.bib}


\begin{document}
\cite{kullback:reprint}

\printbibliography

\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.
Post Reply