ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>, pragma@wxs.nl
Subject: Re: Bibliography problem
Date: Thu, 02 Feb 2012 23:03:30 +0100	[thread overview]
Message-ID: <4F2B0832.3090409@uni-bonn.de> (raw)
In-Reply-To: <20120202042642.GS18040@rae.vm.bytemark.co.uk>

On 02/02/2012 05:26 AM, Pontus Lurcock wrote:
> ere's a long-standing problem I have with BibTeX databases in ConTeXt
> Mk IV (I'm currently using version 2011.10.01). If there are multiple
> publications with the same authors and year, they get suffixes a, b,
> etc. as is usually expected in bibliographies. Unfortunately these
> suffixes appear even if only one of the works is actually cited.
> Minimal example:
>
> ==>  test.bib<==
> @book{book2,
>    title = {The second book},
>    author = {Ann Author},
>    year = {2000},
> }
>
> @book{book1,
>    title = {The first book},
>    author = {Ann Author},
>    year = {2000},
> }
>
> ==>  test.tex<==
> \setupbibtex[database={test},sort=author]
> \setuppublications[sorttype=bbl,refcommand=authoryear]
> \starttext
> % \cite[book1] % uncomment to demonstrate ordering problem
> \cite[book2]
> \placepublications[criterium=text]
> \stoptext
>
> This gives a citation of Author (2000a) despite there being no Author
> (2000b). A related problem is that even when both suffixes are used,
> they are applied in the order of the original .bib file rather than in
> the order of the typeset bibliography. So if \cite[book1] is
> uncommented in the above example, the bibliography contains Author
> (2000b) followed by Author (2000a).
>
> I'm guessing that problem is that the whole BibTeX file is processed
> into ConTeXt's \startpublication...stoppublication syntax, not just
> the cited works. I can't see a way around the this, other than
> creating a custom .bib file for each document with the problematic
> entries removed or re-ordered. Does anyone have any suggestions?

You're right, there is a bug in here. For the publication list, you can 
use the option

\setuppublicationlist[maybeyear=off]

which will switch off the 2000a in the publication list, but not in the 
citation itself, so this becomes inconsistent. Hans, this should be 
fixed if you have the time:

1. Suffix should only be added if there is more than one identical 
combination author-year (and it should only be added if an authoryear 
cite command is used, it doesn't make sense for other citation styles).

2. Suffixes should be added according to the order in the publication 
list, not according to the order of citation.

3. At one point, it would be good if context could write a bbl file 
which contains only the cited items, not the entire bib file.

Thomas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2012-02-02 22:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-02  4:26 Pontus Lurcock
2012-02-02 22:03 ` Thomas A. Schmitz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-07-29 18:19 bibliography problem Henning Hraban Ramm via ntg-context
2012-01-27 20:23 Bibliography problem Michael Green

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F2B0832.3090409@uni-bonn.de \
    --to=thomas.schmitz@uni-bonn.de \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).