I have to format the bibliography data in many ways! One case is APA format as below!
Q1
A bibtex entry has a bibtex-author
field, normally authors name are separated with and
, I have to format the output
to mimic the real situation I give below an example.
\define results() $(first)$, and $(last)$
<$vars authorlist="Maarten R. Dobbelaere and Pieter P. Plehiers and Ruben Van de Vijver and Christian V. Stevens and Kevin M. Van Geem">
<$vars first={{{ [<authorlist>split[ and ]butlast[]join[, ]] }}} last={{{ [<authorlist>split[ and ]last[]] }}}>
-- <<results>>
</$vars>
</$vars>
Do you propose a simpler solution?