[NTG-context] \setupbibtex[sort=author]

2008-08-14 Thread Michael Green
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
___


Re: [NTG-context] \setupbibtex[sort=author]

2008-08-14 Thread Taco Hoekwater
Michael Green wrote:
 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]

You probably have two \setupbibtex commands then, and that is
currently not allowed.

The \setupbibtex command with the database= line wins, and if that
one doesn't have a sort=, the default cont-no.bst will be used.

Best wishes,
Taco
___
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
___


Re: [NTG-context] \setupbibtex[sort=author]

2008-08-14 Thread Michael Green

Taco Hoekwater wrote:

Michael Green wrote:
 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]

You probably have two \setupbibtex commands then, and that is
currently not allowed.

The \setupbibtex command with the database= line wins, and if that
one doesn't have a sort=, the default cont-no.bst will be used.

Best wishes,
Taco



That is exactly right: I did have two \setupbibtex commands. Thanks!

mjg___
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
___


Re: [NTG-context] \setupbibtex[sort=author]

2008-08-14 Thread Taco Hoekwater
Michael Green wrote:
 Taco Hoekwater wrote:
 Michael Green wrote:
  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]

 You probably have two \setupbibtex commands then, and that is
 currently not allowed.

 The \setupbibtex command with the database= line wins, and if that
 one doesn't have a sort=, the default cont-no.bst will be used.

 Best wishes,
 Taco
 
 That is exactly right: I did have two \setupbibtex commands. Thanks!

it is good to know that my glass orb is still working :-)



___
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
___


Re: [NTG-context] \setupbibtex[sort=author]

2008-08-14 Thread Michael Green
Taco Hoekwater wrote:
 Michael Green wrote:

 That is exactly right: I did have two \setupbibtex commands. Thanks!


 it is good to know that my glass orb is still working :-)


It WAS a little spooky.

mjg
___
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
___