ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Michael Green <merely.ridiculous@gmail.com>
To: ntg-context@ntg.nl
Subject: \setupbibtex[sort=author]
Date: Thu, 14 Aug 2008 09:30:00 -0700	[thread overview]
Message-ID: <F2CF9C4E-40B1-495B-B22D-C089B79749C6@gmail.com> (raw)

I would like to have a list of references sorted alphabetically by  
author surnames.

My environment file has \setupbibtex[sort=author] and  
\setuppublications[sorttype=bbl]

As I understand it, the \setupbibtex instruction is supposed to  
influence the .aux file. Specifically, the .aux file is supposed to  
include this line: \bibstyle{cont-au}. Then, bibtex will read the aux  
file and produce a .bbl file that is sorted alphabetically. Then  
ConTeXt's bib module will read the .bbl file and follow the sorting  
it finds in that file.

However, after each ConTeXt run this line in the .aux file is set as   
\bibstyle{cont-no}. This happens in both Mk IV and Mk II, ConTeXt   
ver: 2008.08.05 18:47

I can change the relevant line in the aux file by hand, from \bibstyle 
{cont-no} to \bibstyle{cont-au}. This gives me the desired result  
when the file was processed by ConTeXt. The reference list is sorted  
alphabetically.

In fact, subsequent ConTeXt runs using Mk IV (but not Mk II) produce  
an alphabetically sorted reference list, despite the changed line in  
the .aux file, provided bibtex is not run in the meantime. (Mk II  
runs it automatically but Mk IV doesn't ... I think)

But this is not a fully stable situation. Suppose the bib file  
changes. Then I would run bibtex again. And then the alphabetical  
sorting is undone. Or, it was when I tested it.

I don't know if this is a bug, a misunderstanding on my part, or a  
feature to be added later. If my memory is correct, this is not the  
way that Mk II used to behave. But in any event, It would be great to  
know of a more automatic way of handling this if one is available.

Thank you!

Michael
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


             reply	other threads:[~2008-08-14 16:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-14 16:30 Michael Green [this message]
2008-08-14 16:59 ` \setupbibtex[sort=author] Taco Hoekwater
2008-08-14 17:15 \setupbibtex[sort=author] Michael Green
2008-08-14 17:20 ` \setupbibtex[sort=author] Taco Hoekwater
2008-08-15  2:14 \setupbibtex[sort=author] 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=F2CF9C4E-40B1-495B-B22D-C089B79749C6@gmail.com \
    --to=merely.ridiculous@gmail.com \
    --cc=ntg-context@ntg.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).