\setupcite[authornum][...] not working
Hi, I'm using the ams-bibliography style and want to include "authornum"-cites in the document (so i want to input something like "in the paper by \cite[authornum][doe]" instead of "in the paper by Doe \cite[num][doe]". The \cite command works as intended, but I'm not able to change the typesetting properties with \setupcite[authornum][...]. The others, like \setupcite[num][...] and \setupcite[author][...] seem to work as they should, though. I provide a minimal example below, where to options set in line 4 are not used for typesetting the \cite[ref1]. I'm using the context minimals, MkIV. \usemodule[bib] \setupbibtex[database={test.bib}] \setuppublications[alternative=ams, refcommand=authornum] \setupcite[authornum][left={\&}, andtext={ foo }, namesep={ bar }] % just some random options, none of them works \starttext \cite[ref1] \completepublications[criterium=all] \stoptext I already tried apa style, the same there. In addition, the names of a citation placed with \cite[author] (e.g. "Doe and Fisher") are not typesetted as those of a citation placed with \cite[authornum] (e.g. "Doe,Fisher"), although I think (from a short glimpse at bibl-ams.tex) they should. Am I doing something wrong or is this a bug? Any help appreciated. Stefan.
Stefan Müller wrote:
I already tried apa style, the same there. In addition, the names of a citation placed with \cite[author] (e.g. "Doe and Fisher") are not typesetted as those of a citation placed with \cite[authornum] (e.g. "Doe,Fisher"), although I think (from a short glimpse at bibl-ams.tex) they should.
Am I doing something wrong or is this a bug? Any help appreciated.
No, it is just a hack (authornum). I tried to fix it now, but that is turning out harder than I expected so probably the best approach is to redefine authornum using author and num: \def\bibauthornumref[#1]% {\bibalternative{left}% \cite[author][#1] \bibalternative{inbetween}% \cite[num][#1] \bibalternative{right}} with that, 'authornum' listens to left, right and inbetween keys, and there rest of formatting is controlled by \setupcite[num] and \setupcite[author]. Best wishes, Taco
participants (2)
-
Stefan Müller
-
Taco Hoekwater