From: "Peter Münster" <pmlists@free.fr>
Subject: Re: alignment in cells without "alignmentcharacter"
Date: Mon, 14 Nov 2005 20:39:43 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.58.0511142037340.30232@gaston.free.fr> (raw)
In-Reply-To: <6faad9f00511141045p4d21d69bs8581a7e318599125@mail.gmail.com>
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/
prev parent reply other threads:[~2005-11-14 19:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-13 0:48 Mojca Miklavec
2005-11-13 14:16 ` Taco Hoekwater
2005-11-13 19:02 ` Peter Münster
2005-11-14 7:24 ` Taco Hoekwater
2005-11-14 16:28 ` Peter Münster
2005-11-14 18:19 ` Taco Hoekwater
2005-11-14 18:45 ` Mojca Miklavec
2005-11-14 18:55 ` Mojca Miklavec
2005-11-14 19:39 ` Peter Münster [this message]
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=Pine.LNX.4.58.0511142037340.30232@gaston.free.fr \
--to=pmlists@free.fr \
--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).