From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74424 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: Is it possible to \cite with UPPERCASED author? Date: Fri, 10 Feb 2012 16:33:21 +0100 Message-ID: <4F3538C1.1040509@uni-bonn.de> References: <4F34FE25.4020508@uni-bonn.de> <4F35104C.8020807@uni-bonn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1328888019 32708 80.91.229.3 (10 Feb 2012 15:33:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Feb 2012 15:33:39 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 10 16:33:36 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 1RvsTg-0007kt-49 for gctc-ntg-context-518@m.gmane.org; Fri, 10 Feb 2012 16:33:36 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5F395CB207; Fri, 10 Feb 2012 16:33:35 +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 iDknhGyHERXN; Fri, 10 Feb 2012 16:33:30 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0F0A6CB1F0; Fri, 10 Feb 2012 16:33:30 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 09224CB1F0 for ; Fri, 10 Feb 2012 16:33:29 +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 5AE5tujj7Kqb for ; Fri, 10 Feb 2012 16:33:23 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 5BCB8CABBD for ; Fri, 10 Feb 2012 16:33:23 +0100 (CET) Original-Received: from uni-bonn.de (mail.uni-bonn.de [131.220.15.113]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q1AFXMoc026539 for ; Fri, 10 Feb 2012 16:33:22 +0100 Original-Received: from [93.210.238.169] (account tschmit1@uni-bonn.de HELO localhost.localdomain) by fe2.uni-bonn.de (CommuniGate Pro SMTP 5.4.3) with ESMTPSA id 9894125 for ntg-context@ntg.nl; Fri, 10 Feb 2012 16:33:22 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0) Gecko/20120207 Thunderbird/10.0 In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=131.220.15.113; country=DE; region=07; city=Bonn; latitude=50.7333; longitude=7.1000; http://maps.google.com/maps?q=50.7333,7.1000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08GwfxmhD - 48e20138426f - 20120210 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:74424 Archived-At: On 02/10/2012 03:10 PM, Wagner Macedo wrote: > Ah, yes. I'm setuping my own style. As I'm not so good with TeX (if this > could be in Lua, will be perfect), I'm using apa, that is the closest to > my style. > > So, all right, I'll try to customize my style, that is the only good > solution to this. Thanks by attention, Thomas. OK, I had a second look. What you want may not be that easy to accomplish with simple setup commands (at least, I didn't manage to make it work). So I see two possibilities, one clean and difficult, the other easier, but somewhat hackish: 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. 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. 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. HTH Thomas ___________________________________________________________________________________ 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 ___________________________________________________________________________________