From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Xan <dxpublica@telefonica.net>
Subject: Re: Alignment table with comma, and long long space after
Date: Sat, 21 Sep 2013 18:55:51 +0200 [thread overview]
Message-ID: <3230401D-D3BB-43EC-BA4C-B98C34705F8C@gmail.com> (raw)
In-Reply-To: <20130921162217.dc08bf3ffc0e1474e8707d28@telefonica.net>
Am 21.09.2013 um 16:22 schrieb Xan <dxpublica@telefonica.net>:
> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2013-09-21 16:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-21 14:22 Xan
2013-09-21 16:55 ` Wolfgang Schuster [this message]
2013-09-22 17:13 ` Xan
2013-09-22 17:31 ` Wolfgang Schuster
2013-09-22 18:32 ` Xan
2013-09-23 13:45 ` Xan
2013-09-23 18:11 ` Wolfgang Schuster
2013-09-24 7:18 ` Xan
2013-10-04 21:47 ` Hans Hagen
2013-10-05 3:37 ` hwitloc
2013-10-05 9:56 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3230401D-D3BB-43EC-BA4C-B98C34705F8C@gmail.com \
--to=schuster.wolfgang@gmail.com \
--cc=dxpublica@telefonica.net \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).