ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Nicolas Grilly" <nicolas@garden-paris.com>
Subject: A bug in character alignment?
Date: Mon, 31 Jul 2006 21:34:08 +0200	[thread overview]
Message-ID: <554cfd4f0607311234h4233a76dn6c4b85d3232cf29@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]

Hello,

I use ConTeXt natural tables to produce reports, and I use character
alignment to align numbers in these tables.

For example:
\setupTABLE[column][each][align={middle,lohi}, aligncharacter=yes,
alignmentcharacter={.}]

But I have a little issue with character alignment. I have several
tables following each other. First and second tables are well aligned.
But following tables have some columns mis-aligned. You can see the
result in the attached file report_with_bug.pdf (look at column 4 of
tables 3, 4, 5 and 6).

If I comment table 2, then the problem disappears. You can see the
result in the attached file report_without_bug.pdf. If I uncomment
table 2, but move it to end of file, then the problem disappears too.

It seems there is some side effect in code managing character
alignment: perhaps a global variable is not reset each time a new
table starts?

The attached file character_alignment_bug.tex contains the code
producing the first example, where the bug is visible.

I looked through core-ntb.tex and supp-ali.tex but was unable to
understand where is the problem. We have lot of tables like this in
our production, and some are horribles because of this character
alignment issue...

Thanks for your help!

Nicolas Grilly

[-- Attachment #2: report_with_bug.pdf --]
[-- Type: application/pdf, Size: 67104 bytes --]

[-- Attachment #3: report_without_bug.pdf --]
[-- Type: application/pdf, Size: 67124 bytes --]

[-- Attachment #4: character_alignment_bug.tex --]
[-- Type: application/x-tex, Size: 19435 bytes --]

[-- Attachment #5: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

             reply	other threads:[~2006-07-31 19:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-31 19:34 Nicolas Grilly [this message]
2006-08-01  6:34 ` Peter Münster
2006-08-01 15:07   ` Nicolas Grilly
2006-08-01 16:29     ` Nicolas Grilly
2006-08-02  8:47     ` Peter Münster
2006-08-02 11:35       ` Taco Hoekwater
2006-08-03 10:19         ` Nicolas Grilly
2006-08-03 10:33           ` 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=554cfd4f0607311234h4233a76dn6c4b85d3232cf29@mail.gmail.com \
    --to=nicolas@garden-paris.com \
    --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).