From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Bibliography in authornum format
Date: Mon, 14 Jan 2013 13:10:25 -0500 (EST) [thread overview]
Message-ID: <alpine.LNX.2.02.1301141309290.1069@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <50F42E5A.3090809@gmail.com>
On Mon, 14 Jan 2013, Devendra Ghate wrote:
> I am using ConTeXt ver: 2013.01.10 01:04 MKIV and here is the MWE.
>
> I would like to create numbered bibliography with *Author name [1]* format.
> If multiple authors are present then it should produce *Author /et al./ [1]*.
> This does not happen. Instead I get *Author, [1]*. Since I am new to ConTeXt,
> I might be making a basic mistake.
> Devendra
> ---------------
> \setupbibtex[database={bib}]
> % As suggested by Aditya on TEX SX.
> \setuppublications[alternative=num, refcommand=authornum]
> \starttext
> I am refering to \cite{me13} .
> \placepublications[criterium=text]
> \stoptext
> ----------------
> bib.bib
> ----------------
> @article{me13,
> title = {This bibliography in context},
> author = {Convert, Recent and User, Power and Fiddler, Amateur},
> journal = {Tex SX},
> volume = {1},
> number = {1},
> pages = {1-11},
> year = {2013},
> }
> ---------------
As I had explained in http://tex.stackexchange.com/a/93743/323, the
definition of \bibauthornumref needs to be updated to:
\def\dobibauthornumref#1%
{\bibinsertrefsep
\doifbibreferencefoundelse{#1}
{\begingroup
\cite[left=,right=,alternative=author][#1]%
\bibalternative\c!inbetween
\cite[num][#1]%
\endgroup}
{}}
Aditya
___________________________________________________________________________________
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:[~2013-01-14 18:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-14 16:12 Devendra Ghate
2013-01-14 18:10 ` Aditya Mahajan [this message]
2013-01-14 19:45 ` Hans Hagen
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=alpine.LNX.2.02.1301141309290.1069@ybpnyubfg.ybpnyqbznva \
--to=adityam@umich.edu \
--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).