ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* extras in \cite
@ 2013-02-21  5:37 Devendra Ghate
  0 siblings, 0 replies; only message in thread
From: Devendra Ghate @ 2013-02-21  5:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello Everyone,

A while back Aditya provided a patch for using
*alternative=authornum* in *\cite*. The patch adds et al.
for the cases with more than two authors.
I have been using it without a hitch since then.

However, today I tried to use *extras* option with this patch
and it won't work. The MWE works for
*alternative=apa* and *alternative=num*

Please let me know if this can be rectified.

Regards,
Devendra

*MWE*

\setupbibtex[database={bib}]

\unprotect
\def\dobibauthornumref#1%
  {\bibinsertrefsep
   \doifbibreferencefoundelse{#1}
     {\begingroup
      \cite[left=,right=,alternative=author][#1]%
      \bibalternative\c!inbetween
      \cite[num][#1]%
      \endgroup}
     {}}
\protect

\starttext
   \cite[alternative=authornum,extras={,\S 5.1}][citation1]
   \placepublications
\stoptext

-----------
bib.bib
-----------

@article{citation1,
   title = {Kernel independent component analysis},
   author = {Bach, F. R. and Jordan, M. I.},
   journal = {Journal of {M}achine {L}earning {R}esearch},
   volume = {3},
   pages = {1-48},
   year = {2002},
}


___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-02-21  5:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-21  5:37 extras in \cite Devendra Ghate

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).