[NTG-context] Using num and authornum bibliography style simultaneously

2013-02-03 Thread Devendra Ghate

Hi,

I want to use *num* and *authornum* bibliiography style simultaneously 
in my

document.

\setuppublications[alternative=num] 
--- [1].
\setuppublications[alternative=num, refcommand=authornum]  -- Author 
name [1].


So I have defined a macro as:

\define[1]\citet{%
  \setuppublications[alternative=num, refcommand=authornum]
  \cite[#1]
  \setuppublications[alternative=num]
}

to give me the *authornum* format and default \cite behaviour is *num*. 
This works.


However, I have a feeling that this is not the recommended way of doing 
things in

ConTeXt. Do let me know.

Regards,
Devendra
___
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
___


Re: [NTG-context] Using num and authornum bibliography style simultaneously

2013-02-03 Thread Devendra Ghate


On 02/04/2013 11:13 AM, Devendra Ghate wrote:

Hi,

I want to use *num* and *authornum* bibliiography style simultaneously 
in my

document.

\setuppublications[alternative=num] 
--- [1].
\setuppublications[alternative=num, refcommand=authornum]  -- Author 
name [1].


So I have defined a macro as:

\define[1]\citet{%
  \setuppublications[alternative=num, refcommand=authornum]
  \cite[#1]
  \setuppublications[alternative=num]
}

to give me the *authornum* format and default \cite behaviour is 
*num*. This works.


However, I have a feeling that this is not the recommended way of 
doing things in

ConTeXt. Do let me know.

Regards,
Devendra

After finding the bibliography manual for MkII, I realised that I should use

\cite[alternative=authornum][]  and \cite[alternative=num][].

Sorry for the spam,
Devendra
___
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
___