\startenvironment bib

% https://wiki.contextgarden.net/Question_marks_in_bibliography_entries
\def\gobblestop#1#2{#1}
\def\killstop{%
  \aftergroup\gobblestop
  }

\usebtxdefinitions[apa]
\usebtxdataset[../biblio.bib]
\usebtxdataset[../biblio-eigen.bib]
\usebtxdataset[../biblio-web.bib]

\setupbtx[apa:cite][etallimit=2,separator:4={ and }]
\setupbtx[apa:cite:url[left={}, right={}]
% interaction in de lijst lijkt stuk te zijn?
\setupbtx[apa:list][interaction=no]
\setupbtxrendering[pagestate=start] % print pagina nummers
\setupbtxlist[apa][margin=1.75em]


% The dblp database ignores Pauls nice a-breve and s-comma
\btxremapauthor [Paul Fiterau{-}Brostean] [Paul Fiterău-Broștean]
% These two don't work well...
%\btxremapauthor [Michal Szynwelski] [Micha\l{} Szynwelski]
%\btxremapauthor [Slawomir Lasota] [S\l{}awomir Lasota]
\btxremapauthor [Eryk Kopczynski] [Eryk Kopczy\'nski]
\btxremapauthor [Adenilso da Silva Simão] [Adenilso Simão]

\def\citenp[#1]{\cite[left=,right=][#1]}   % Bla and Foo, 2015
\def\citet[#1]{\cite[authoryears][#1]}     % Bla and Foo (2015)
\def\citep[#1]{\cite[authoryear][#1]}      % (Bla and Foo, 2015)
\def\citeurl[#1]{\cite[alternative=url,left=,right=][#1]} % url

%\cite[lefttext={See },righttext={ p.\nbsp yy}][book]  -> (See Bla, Foo & Baz, 2015, p. yy)

\stopenvironment
