# citation macro with ConTeXt

Consider the following example (background in this question).

\setupbibtex[database={library},sort=author]
\setuppublications[alternative=apa]

%\define[1]\reference{\cite[data][#1]}

\starttext
\cite[data][Bohr:1923tl]
%\reference{Bohr:1923tl}

\section{References}
\placepublications[criterium=all]

\stoptext

after running it through Mk-IV is shows the expected behavior:

Simply defining a macros by uncommenting define – without even using it – breaks it. (def does not help either).

How to define citation macros?

-
That’s because \reference is an internal Context macro which is used to, well, place references (for internal links). Every entry in the bibliography happens to have such a reference, but as you changed the macro definition, breakage ensues as expected ... call it \bibref and things should work. –  phg May 18 '12 at 8:07
Please make this an answer, so I can accept it and less people see what I have done... –  Andy May 18 '12 at 8:17
Here you go. Also it would be more precise to remove the tag [bibtex] from this question as MkIV does not rely on Bibtex even though it takes .bib files as input. –  phg May 18 '12 at 9:15