From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/53053 Path: news.gmane.org!not-for-mail From: Mika Ritola Newsgroups: gmane.comp.tex.context Subject: Re: Need help with bibliography Date: Mon, 21 Sep 2009 01:41:46 +0300 Message-ID: <86d68cc30909201541s550ab8e0m728a92691d1a9ab3@mail.gmail.com> References: <86d68cc30909200430s61aaf373h7f990791689f956b@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0881291380==" X-Trace: ger.gmane.org 1253486537 8410 80.91.229.12 (20 Sep 2009 22:42:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Sep 2009 22:42:17 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 21 00:42:10 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1MpV6d-0007Mu-TW for gctc-ntg-context-518@m.gmane.org; Mon, 21 Sep 2009 00:42:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 43E0BC9A9B; Mon, 21 Sep 2009 00:42:07 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 3KijQkEA4WlU; Mon, 21 Sep 2009 00:42:03 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 54D60C9A47; Mon, 21 Sep 2009 00:42:03 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4F969C9A47 for ; Mon, 21 Sep 2009 00:42:01 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 9Lyp3PxoEPao for ; Mon, 21 Sep 2009 00:41:47 +0200 (CEST) Original-Received: from mail-ew0-f221.google.com (mail-ew0-f221.google.com [209.85.219.221]) by balder.ntg.nl (Postfix) with ESMTP id 1C630C9A1F for ; Mon, 21 Sep 2009 00:41:47 +0200 (CEST) Original-Received: by ewy21 with SMTP id 21so1544978ewy.8 for ; Sun, 20 Sep 2009 15:41:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=WirbLaIi4muQPJ/bEkX+J0dQOqTLonP0x0Oh/rNps/I=; b=GtVBPIDtuKj1ZPaoCzLjkeM0WYv9E/Guk5PNSJIb6y6uhfrRJEPSMMw4NcuMIq9qVH Ea00YXB7fCJEY8Wp8BVsRVHBWGEMq0fv0tngg7bcuqTb+W+ggadtSIPNdi3X7NEuW9B4 EUIoI1vDu9XhdQgsUucrPUDFH2J9GhUJXF0hI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=P9guAoZvn+QzRQzbeZWFNj/eQm8pGnyc+M+E24xTXdXiM7yXfu2h4BHFHqfIeSW9bC drn2ABDx8hcjcVZ9TF3Z2Dg2WqqZS00Z9wOKVOCCjU9PTtVrUZ0PPSMi/5qiCVFmCx7e Z5zn8fqvON2+6SdxqE7YeWqfHIIyITIKHOwdQ= Original-Received: by 10.211.128.11 with SMTP id f11mr2145934ebn.62.1253486507008; Sun, 20 Sep 2009 15:41:47 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:53053 Archived-At: --===============0881291380== Content-Type: multipart/alternative; boundary=00504502ce0ffb21a204740a111e --00504502ce0ffb21a204740a111e Content-Type: text/plain; charset=ISO-8859-1 2009/9/20 Thomas A. Schmitz > > On Sep 20, 2009, at 1:30 PM, Mika Ritola wrote: > > >> 1. This one's probably very simple: there's the /insertauthors macro for >> inserting the whole name of the author. But how do you insert just the last >> name of the author? >> >> > If you just want the last name, you can use \cite[author][], but > I'm not sure if this what you're after, maybe you'll need to tell us more. > 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 2000John 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... > > 2. This one, on the other hand, is likely to be rather non-trivial: the >> bibliography needs to be broken up into several categories of sources. For >> example, audiovisual sources, newspaper sources and books should be listed >> under separate headings, somewhat like this: >> >> BIBLIOGRAPHY >> >> I. AUDIOVISUAL SOURCES >> >> [some sources] >> >> II. NEWSPAPER SOURCES >> >> [...] >> >> III. BOOKS >> >> [...] >> >> I've tried to decipher the source code of the Bib module but as I'm not >> particularly fluent in TeX, I haven't been able to make much headway so far. >> I'd appreciate some hints on where to start with this. I don't suppose >> there's any existing code for something like this? Maybe I'd be better off >> writing the bibliography by hand? >> >> That sounds harder. You basically need three separate bibliographies, > each of them sorted in some way. I'm not certain the current implementation > of the bib module can do that (i.e. I'm almost certain it can't). How do you > want to refer to these items in your text? Again, we'll probably need some > more information about what you want to achieve. > > I think it would be easiest if I could refer to them in the usual way, using \cite[Smith2000]. Of course, each item in the .bib file should have some kind of a tag, so that ConTeXt could automagically insert it under the correct heading. Thanks, Mika --00504502ce0ffb21a204740a111e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
2009/9/20 Thomas A. Schmitz &l= t;thomas.schmitz@uni-bonn.de<= /a>>

On Sep 20, 2009, at 1:30 PM, Mika Ritola wrote:


1. This one's probably very simple: there's the /insertauthors macr= o for inserting the whole name of the author. But how do you insert just th= e last name of the author?


If you just want the last name, you can use \cite[author][<citekey>],= but I'm not sure if this what you're after, maybe you'll need = to tell us more.

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 Publishin= g 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 t= hat I can't figure it out by myself but I haven't quite gotten the = hang of ConTeXt and TeX yet...

2. This one, on the other hand, is likely to be rather non-trivial: the bib= liography needs to be broken up into several categories of sources. For exa= mple, audiovisual sources, newspaper sources and books should be listed und= er separate headings, somewhat like this:

BIBLIOGRAPHY

I. AUDIOVISUAL SOURCES

[some sources]

II. NEWSPAPER SOURCES

[...]

III. BOOKS

[...]

I've tried to decipher the source code of the Bib module but as I'm= not particularly fluent in TeX, I haven't been able to make much headw= ay so far. I'd appreciate some hints on where to start with this. I don= 't suppose there's any existing code for something like this? Maybe= I'd be better off writing the bibliography by hand?

That sounds harder. You basically need three separate bibliographies, each = of them sorted in some way. I'm not certain the current implementation = of the bib module can do that (i.e. I'm almost certain it can't). H= ow do you want to refer to these items in your text? Again, we'll proba= bly need some more information about what you want to achieve.

I think it would be easiest if I could refer to them= in the usual way, using \cite[Smith2000]. Of course, each item in the .bib= file should have some kind of a tag, so that ConTeXt could automagically i= nsert it under the correct heading.

Thanks,

Mika
--00504502ce0ffb21a204740a111e-- --===============0881291380== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0881291380==--