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
___________________________________________________________________________________

Reply via email to