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
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to