% BibTex
\usemodule[bib]
%\usemodule[bibltx] % Needed only when using LaTeX in the BibTex files
\setupbibtex[database=test,sort=author]


% Setup reference style
\setuppublications[alternative=ams]
\setuppublications[criterium=cite,sorttype=bbl,numbering=yes,autohang=yes]

\starttext

\cite[test]

\completepublications[criterium=all]

\stoptext