It does not work with that:
%%% Per a què les taules se me puguin alinear amb les comes
\chardef\characteralignmentmode=2
\chardef\characteralignmentmode\plustwo
%%% http://randomdeterminism.wordpress.com/2012/11/18/separation-of-content-and-...
\startsetups table:style
\setupTABLE[row][first][background=color, backgroundcolor=tablecolor, color=black, align={middle,lohi},style=ss]
\setupTABLE[column][1][align={right,lohi}]
\setupTABLE[column][2][align={left,lohi},alignmentcharacter={,},aligncharacter=yes]
% \setupTABLE[column][2][width=.20\textwidth]
\setupTABLE[loffset=1mm,roffset=1mm]
\setupTABLE[frame=off]
\setupTABLE[topframe=on,bottomframe=on]
\setupTABLE[column][first][leftframe=on]
\setupTABLE[column][last][rightframe=on]
\stopsetups
What can I do?
Xan.
On Sat, 21 Sep 2013 18:55:51 +0200
Wolfgang Schuster
Am 21.09.2013 um 16:22 schrieb Xan
: Hi,
I have this
\startsetups table:style \setupTABLE[row][first][background=color, backgroundcolor=tablecolor, color=black, align={middle,lohi},style=ss] \setupTABLE[column][1][align={right,lohi}] \setupTABLE[column][2][align={left,lohi},alignmentcharacter={,},aligncharacter=yes] % \setupTABLE[column][2][width=.20\textwidth] \setupTABLE[loffset=1mm,roffset=1mm] \setupTABLE[frame=off] \setupTABLE[topframe=on,bottomframe=on] \setupTABLE[column][first][leftframe=on] \setupTABLE[column][last][rightframe=on] \stopsetups
\placefigure[here]{Diverses mesures}{ \bTABLE[setups={table:header, table:frame, table:style}] \bTABLEhead \bTR \bTD Esdeveniment \eTD \bTD Mesura (m) \eTD \eTR \eTABLEhead \bTABLEbody \bTR \bTD Distància mitjana Terra-Lluna \eTD \bTD 150.000.000.000 \eTD \eTR \bTR \bTD Diàmetre mitjà terrestre \eTD \bTD 12 800.000 \eTD \eTR \bTR \bTD Distància Palma-Alcúdia \eTD \bTD 75.000 \eTD \eTR \bTR \bTD Diàmetre mitjà de Júpiter \eTD \bTD 140.000.000 \eTD \eTR \bTR \bTD L'altura d'una persona \eTD \bTD 1,75 \eTD \eTR \bTR \bTD La distància mitjana entre el Sol i Alfa-Centauri \eTD \bTD 40.790.494.000.000.000 \eTD \eTR \eTABLEbody \eTABLE}
but ConTeXt produces a lot of space after 1,75.
How can I do for second column fits the content?
Add the following line to your setups for the table.
\chardef\characteralignmentmode\plustwo
Wolfgang