From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Is it possible to \cite with UPPERCASED author?
Date: Fri, 10 Feb 2012 16:33:21 +0100 [thread overview]
Message-ID: <4F3538C1.1040509@uni-bonn.de> (raw)
In-Reply-To: <CAKGY2PnO9UH029DSMT+B556nYp-4YLADeMdziQTUuxaAs_QDMQ@mail.gmail.com>
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[<name>.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
___________________________________________________________________________________
next prev parent reply other threads:[~2012-02-10 15:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-10 10:59 Wagner Macedo
2012-02-10 11:23 ` Thomas A. Schmitz
2012-02-10 11:58 ` Wagner Macedo
2012-02-10 12:40 ` Thomas A. Schmitz
2012-02-10 14:10 ` Wagner Macedo
2012-02-10 15:33 ` Thomas A. Schmitz [this message]
2012-02-10 19:27 ` Wagner Macedo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F3538C1.1040509@uni-bonn.de \
--to=thomas.schmitz@uni-bonn.de \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).