On Thu 22 Sep 2011, Alexandre Krispin wrote:
I am trying to get references working with Context as well as it did with Biblatex. Since I didn't find anything helpful in the documentation and the mailing-list, I ask here.
It's true that bibliography documentation can be hard to find. The best source is the manual at http://modules.contextgarden.net/bibman , but it is not entirely up to date. In the following I'm going to assume that you're using MkIV.
\usemodule[bib] \usemodule[bibltx]
These are unnecessary. The bib module has been integrated into the core. The bibltx module used to define a \newcommand command for compatibility with some old LaTeX databases, but I don't think it even exists any more. Unless you use \newcommand in your bib file, this should not be a problem. Here's a minimal example which should do what you want: ---8<--- \setupbibtex[database=sample,sort=author] \setuppublications[alternative=apa-fr,sorttype=bbl,refcommand=authoryear] \setupinteraction[state=start,color=darkgreen,style=normal] \setupcite[interaction=start,compress=no] \def\pagecite[#1][#2]% {(\cite[alternative=authoryear,left={},inbetween={ },extras={, p. #2}][#1]} \starttext \cite[alternative=authoryears,inbetween={ },extras={, p. 3}][Eijkhout1991] \pagecite[Eijkhout1991][3] \page[yes] \placepublications[criterium=text] \stoptext ---8<--- This uses ConTeXt's included sample bib file. I'm sure this used to be found automatically in the ConTeXt tree, but in this case I had to copy it into the same directory as the TeX file for it to be found. You can find it in /tex/texmf-context/tex/context/bib/sample.bib . You will see that I use two cite commands. The first is probably the ‘more correct’ way to do it, using the authoryears style. However, this doesn't seem to produce a hyperlink, at least on my version of ConTeXt (from February 2011). I suspect that this may be a bug. The second cite (wrapped in a macro for convenience) modifies the authoryear style instead, which (at least with my setup) does produce a hyperlink. Hope this helps! Pont