Re: [NTG-context] alignment in cells without "alignmentchara…

Top Page
Author: Peter Münster
Date:  
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] alignment in cells without "alignmentcharacter"
On Mon, 14 Nov 2005, Mojca Miklavec wrote:

> 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


Hello Mojca,

the "1" of the last line touches the frame...
But thank you nevertheless, you gave me the right hint:

\unexpanded\def\HideH#1{\hphantom{#1}}
\def\NoWidth#1{\hbox to 0pt{#1\hss}}
\starttext
\setupTABLE[aligncharacter=yes]
\bTABLE
\bTR\bTD 1,23\,\% \eTD\eTR
\bTR\bTD 12,3\,\% \eTD\eTR
\bTR\bTD 123\NoWidth{\,\%}\HideH, \eTD\eTR
\eTABLE
\stoptext

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
_______________________________________________
ntg-context mailing list
ntg-context@???
http://www.ntg.nl/mailman/listinfo/ntg-context