On 11/13/05, Taco Hoekwater <[EMAIL PROTECTED]> wrote:
> Mojca Miklavec wrote:
> >
> > Is there an elegant way which would align those numbers as if they had
> > an additional slash on the right? I was thinking about placing a
>
> Browsing through the source I've found two approaches:
>
> 1. A currently undocumented, but nice & clean solution:
>
> \chardef\characteralignmentmode=2
Thank you! Found in supp-ali.tex under
%D Yet undocumented.
:) Than was exactly the answer I was looking for. (with)
> 2. A not at all elegant solution, that doesn't depend on a hidden
> feature:
>
> \unexpanded\def\hide#1{\hphantom{/}}
> \setupTABLE[c][1][.... as before ...]
> \bTABLE
> \bTR\bTD 01/1 \eTD\eTR
> \bTR\bTD 02/13 \eTD\eTR
> \bTR\bTD 03\hide/ \eTD\eTR
> \bTR\bTD 314/2 \eTD\eTR
> \bTR\bTD 315\hide/ \eTD\eTR
> \eTABLE
Interesting ;) I was thinking about making a \hphantom, but didn't
come to the idea of having blind arguments. I didn't know how the
mechanism of finding an alignment character works.
For Peter: are you looking for the code below or for an automated
solution to do it?
\def\mypercent#1{\hbox to 0pt{\%\hss}}
\chardef\characteralignmentmode=2
\setupTABLE[c][1][aligncharacter=yes,alignmentcharacter={,}]
\bTABLE
\bTR\bTD 1,23\% \eTD\eTR
\bTR\bTD 12,3\% \eTD\eTR
\bTR\bTD 123\mypercent, \eTD\eTR
\eTABLE
Mojca
_______________________________________________
ntg-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/ntg-context