![](https://secure.gravatar.com/avatar/e8bbfc42c0af30d82e2c8ec78b6d5cbb.jpg?s=120&d=mm&r=g)
12 Feb
2007
12 Feb
'07
3:17 p.m.
In Context one can use registers for powerful sorting with single or multiple keys. However, it's a little tricky if you want the result to appear other than one element per line. Here's a macro that does the job: \def\PlaceRegisterInline[#1,#2,#3]{% Register Before After \bgroup \let\par=\empty \let\endgraf=\empty \edef\goodbreak{#2}% \let\doregistercharactera=\doregistercharacterb \placeregister[#1][% after=,% before=,% distance={0em{#3}},% indicator=no,% n=1,% symbol=none]% \egroup} For example, to place elements of register R in brackets one can use \PlaceInlineRegister[R,{[},{]}] and achieve something like [A][B][C]. --Mike Bird