Thomas A. Schmitz wrote:
On Sep 21, 2009, at 12:41 AM, Mika Ritola wrote:
I'll try to give a clearer explanation. First of all, when I cite a
source using e.g. \cite[Smith2000], this should appear in the text as
"Smith 2000". I've already managed to do this. Now, each entry in the
bibliography should begin with the same string that was used to
identify it within the text. So, the above example should look
something like this:
Smith 2000<tab>John Smith. Generic Book Title. Whatever Publishing
Company, New York 2000.
I know I can get the "John Smith" by using \insertauthors in
\setuppublicationlayout. But how do I get just the last name? The
answer is probably so simple that I should be ashamed that I can't
figure it out by myself but I haven't quite gotten the hang of ConTeXt
and TeX yet...
Ah, so it turns out you're looking for something else altogether. In
your case, you want a special kind of label for your bibliographic list.
See if Aditya's hack gives the result you want. But generally speaking,
I think your setup is pretty common in the humanities, so it should be
added as a key to the processactionlist in l. 308-316 of bibl-tra.mkiv.
Hans, Taco, is there a proper syntax for getting the lastname and year
of the current bib item?
The best approach may be to put the lastname+space+year in the 's'
key, and use
\setuppublications[refcommand=short,
numbering=short]
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
___________________________________________________________________________________