ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: Alignment table with comma, and long long space after
Date: Fri, 04 Oct 2013 23:47:58 +0200	[thread overview]
Message-ID: <524F378E.90805@wxs.nl> (raw)
In-Reply-To: <11DD7301-47BC-4E50-8B16-43FDF3456B55@gmail.com>

On 9/23/2013 8:11 PM, Wolfgang Schuster wrote:
>
> Am 23.09.2013 um 15:45 schrieb Xan <dxpublica@telefonica.net>:
>
>> On Sun, 22 Sep 2013 19:31:33 +0200
>> Wolfgang Schuster <schuster.wolfgang@gmail.com> ha escrit:
>>
>>> You can show us a *complete* minimal example.
>>>
>>> Wolfgang
>>
>> What is at final?
>
> It’s a bug in the alignment mechanism and looking for a solution.

I decided to replace the old mechanism by a new one .. still somewhat 
experimental ...

\starttext

% \enabletrackers[typesetters.characteralign]

\starttabulate[|l|g{,}|r|]
     \NC test \NC 1.234.456,99 \NC \NC test \NR
     \NC test \NC   234.456,9  \NC \NC test \NR
     \NC test \NC   234.456    \NC \NC test \NR
     \NC test \NC       456    \NC \NC test \NR
     \NC test \NC \bf default  \NC \NC test \NR
\stoptabulate

\starttabulate[|l|rg{,}|]
     \NC test \NC 1.234.456,99 \NC \NR
     \NC test \NC   234.456,9  \NC \NR
     \NC test \NC          ,9  \NC \NR
     \NC test \NC   234.456,   \NC \NR
     \NC test \NC   234.456    \NC \NR
     \NC test \NC       456    \NC \NR
     \NC test \NC \bf right    \NC \NR
\stoptabulate

\starttabulate[|l|lg{,}|]
     \NC test \NC -1.234.456,99 \NC \NR
     \NC test \NC +1.234.456,99 \NC \NR
     \NC test \NC  1.234.456,99 \NC \NR
     \NC test \NC    234.456,9  \NC \NR
     \NC test \NC    234.456    \NC \NR
     \NC test \NC        456    \NC \NR
     \NC test \NC \bf left      \NC \NR
\stoptabulate

\starttabulate[|l|cg{,}|cg{.}|]
     \NC test \NC 1.234.456,99 \NC 1,234,456.99 \NR
     \NC test \NC   234.456,9  \NC   234,456.9  \NR
     \NC test \NC   234.456    \NC   234,456    \NR
     \NC test \NC       456    \NC       456    \NR
     \NC test \NC \bf center   \NC \bf center   \NR
\stoptabulate

\starttabulate[|l|cg{,}w(10em)|lg{,}|]
     \NC test \NC €                      1,1     \NC 
1.234.456,99 \NC \NR
     \NC test \NC €                     11,11    \NC 
234.456,9  \NC \NR
     \NC test \NC € 12\punctuationspace111,11    \NC 
234\punctuationspace456,9  \NC \NR
     \NC test \NC €                 12 111,11    \NC 
234 456,9  \NC \NR
     \NC test \NC €              1.234.451,22222 \NC 
234.456    \NC \NR
     \NC test \NC €                234.451,2     \NC 
   456    \NC \NR
     \NC test \NC €                234.451       \NC 
          \NC \NR
     \NC test \NC €                    451       \NC 
          \NC \NR
     \NC test \NC \bf center+width               \NC \bf center 
          \NC \NR
\stoptabulate

\page

\bTABLE
     \bTR \bTD test \eTD \bTD[aligncharacter=yes] € 
  1,1     \eTD \bTD[aligncharacter=yes]                1.234.456,99 \eTD 
\eTR
     \bTR \bTD test \eTD \bTD[aligncharacter=yes] € 
11,11    \eTD \bTD[aligncharacter=yes]                  234.456,9  \eTD \eTR
     \bTR \bTD test \eTD \bTD[aligncharacter=yes] € 
12\punctuationspace111,11    \eTD \bTD[aligncharacter=yes] 
234\punctuationspace456,9  \eTD \eTR
     \bTR \bTD test \eTD \bTD[aligncharacter=yes] €                 12 
111,11    \eTD \bTD[aligncharacter=yes]                  234 456,9  \eTD 
\eTR
     \bTR \bTD test \eTD \bTD[aligncharacter=yes] € 
1.234.451,22222 \eTD \bTD[aligncharacter=yes]                  234.456 
   \eTD \eTR
     \bTR \bTD test \eTD \bTD[aligncharacter=yes] € 
234.451,2     \eTD \bTD[aligncharacter=yes]                      456 
\eTD \eTR
     \bTR \bTD test \eTD \bTD[aligncharacter=yes] € 
234.451       \eTD \bTD[aligncharacter=yes] 
\eTD \eTR
     \bTR \bTD test \eTD \bTD[aligncharacter=yes] € 
451       \eTD \bTD[aligncharacter=yes]                             \eTD 
\eTR
     \bTR \bTD test \eTD \bTD                     \bf center+width 
          \eTD \bTD                     \bf center                  \eTD 
\eTR
\eTABLE

\startcharacteralign
     \checkcharacteralign{123.456,78}
     \blank[small]
     \checkcharacteralign{456}
     \blank[small]
     \checkcharacteralign{23.456}
     \blank[small]
     \checkcharacteralign{78,9}
\stopcharacteralign

\stoptext


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


  parent reply	other threads:[~2013-10-04 21:47 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
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 [this message]
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=524F378E.90805@wxs.nl \
    --to=pragma@wxs.nl \
    --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).