From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74438 Path: news.gmane.org!not-for-mail From: Wagner Macedo Newsgroups: gmane.comp.tex.context Subject: Re: Is it possible to \cite with UPPERCASED author? Date: Fri, 10 Feb 2012 16:27:27 -0300 Message-ID: References: <4F34FE25.4020508@uni-bonn.de> <4F35104C.8020807@uni-bonn.de> <4F3538C1.1040509@uni-bonn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0740393917==" X-Trace: dough.gmane.org 1328902082 16022 80.91.229.3 (10 Feb 2012 19:28:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Feb 2012 19:28:02 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 10 20:28:00 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rvw8R-0000Bl-2D for gctc-ntg-context-518@m.gmane.org; Fri, 10 Feb 2012 20:27:55 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 63F7ECB20C; Fri, 10 Feb 2012 20:27:54 +0100 (CET) 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 FRkNLSkzzefi; Fri, 10 Feb 2012 20:27:51 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DD0CCCB203; Fri, 10 Feb 2012 20:27:51 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E80C2CB203 for ; Fri, 10 Feb 2012 20:27:50 +0100 (CET) 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 IkidCWp2c4bV for ; Fri, 10 Feb 2012 20:27:49 +0100 (CET) Original-Received: from filter5-ams.mf.surf.net (filter5-ams.mf.surf.net [192.87.102.73]) by balder.ntg.nl (Postfix) with ESMTP id 2A5D1CABBD for ; Fri, 10 Feb 2012 20:27:49 +0100 (CET) Original-Received: from mail-gx0-f169.google.com (mail-gx0-f169.google.com [209.85.161.169]) by filter5-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q1AJTqrG015620 for ; Fri, 10 Feb 2012 20:29:53 +0100 Original-Received: by ggnf1 with SMTP id f1so2108637ggn.14 for ; Fri, 10 Feb 2012 11:27:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=R5lp4TDb5a5S0PvR8xI5XOOPxeP+yL9V3amscHnSRoA=; b=BM02tEolYCIjNozr8Rvn2pANAAwB7wKl1rMq7ObhVtbnY+1q6CxCsKmt3Ro9qAQoxk hQEiGIAQojCEuWsqDbPvWREmJLbzlovd6TvDram8fBMh4al+c0e7Kg/cIqEYnG1eFQBz tvUmsIVjUBxkr6YDvCp6xNPZTuonvYhrSICIo= Original-Received: by 10.50.85.231 with SMTP id k7mr6448808igz.25.1328902067322; Fri, 10 Feb 2012 11:27:47 -0800 (PST) Original-Received: by 10.231.80.70 with HTTP; Fri, 10 Feb 2012 11:27:27 -0800 (PST) In-Reply-To: <4F3538C1.1040509@uni-bonn.de> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0IGwjtRPv - 145613c18dc4 - 20120210 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.73 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:74438 Archived-At: --===============0740393917== Content-Type: multipart/alternative; boundary=e89a8f3b9cd5a9fd7004b8a11f8b --e89a8f3b9cd5a9fd7004b8a11f8b Content-Type: text/plain; charset=ISO-8859-1 On 10 February 2012 12:33, Thomas A. Schmitz wrote: > 1. Edit a local copy of cont-au.bst and insert a function that will make > the author name uppercase. bst is infamous for its incomprehensible syntax, > but it appears to be possible. this would be the proper way. google is your > friend here. > Yes, very incomprehensible. And another thing, I couldn't find any "authoryear" word inside bst files. I think it usefulness is only for publications list. > 2. ConTeXt produces a .bbl file from which it retrieves the > bibliographical information. The authorname used in the \cite command is > captured in a key=value of the form > a={{Hagen}}, > Write a simple lua script which will make the captured name uppercase and > write everything out to a new file. Then, in your preamble, replace the > \setupbibtex[database=...] line with > \usepublications[.bbl] > So this is something you would do at the very end of the editing process, > when you're sure that all the references are in the bbl file. > Thank you. It's the best solution to my problem. But I'll do a Python or Bash script to do this, as I'm more used to those languages, and I'll add as a target on my Makefile. > It may also be possible to hook a lua function into the process when > ConTeXt typesets the value from the bbl, but that's beyond my knowledge, > Hans is the only one who knows the internals of the mkiv bib mechanism well > enough to say if/how this may work. > I found something into bibl-bib.lua, and I tried to change but didn't result in anything. So, it's a black box. --e89a8f3b9cd5a9fd7004b8a11f8b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 10 February 2012 12:33, Thomas A. Schmitz <thomas.schmitz@uni-bonn.de> wrote:
1. Edit a local copy of cont-au.bst and insert a function that will ma= ke the author name uppercase. bst is infamous for its incomprehensible synt= ax, but it appears to be possible. this would be the proper way. google is = your friend here.

Yes, very incomprehensible. And another thing, = I couldn't find any "authoryear" word inside bst files. I thi= nk it usefulness is only for publications list.
=A0
2. ConTeXt produces a .bbl file from which it retrieves the bibliographical= information. The authorname used in the \cite command is captured in a key= =3Dvalue of the form
a=3D{{Hagen}},
Write a simple lua script which will make the captured name uppercase and w= rite everything out to a new file. Then, in your preamble, replace the \set= upbibtex[database=3D...] line with
\usepublications[<name>.bbl]
So this is something you would do at the very end of the editing process, w= hen you're sure that all the references are in the bbl file.

Thank you. It's the best solution to my problem. But I= 'll do a Python or Bash script to do this, as I'm more used to thos= e languages, and I'll add as a target on my Makefile.
=A0
It may also be possible to hook a lua function into the process when ConT= eXt typesets the value from the bbl, but that's beyond my knowledge, Ha= ns is the only one who knows the internals of the mkiv bib mechanism well e= nough to say if/how this may work.

I found something into bibl-bib.lua, and I tried to = change but didn't result in anything. So, it's a black box.
--e89a8f3b9cd5a9fd7004b8a11f8b-- --===============0740393917== 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0740393917==--