ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Nicolas Grilly" <nicolas@garden-paris.com>
Subject: Re: A bug in character alignment?
Date: Tue, 1 Aug 2006 17:07:07 +0200	[thread overview]
Message-ID: <554cfd4f0608010807l1fc2fce0pbd9880f7c221d8e@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0608010000240.7237@gaston.pm>

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

Peter Münster wrote:
>
> Nicolas Grilly wrote:
> > 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).
>
> Sorry, I can't see it. The column are right-aligned, which is normal, since
> there is no alignment-character.

No, it is not normal. ConTeXt Wiki says "if there's no
alignmentcharacter in the cell, the content will be aligned in the
following way depending on the value of \characteralignmentmode".

By default, characteralignmentmode=4. Therefore, according to the
wiki, cell content should be aligned on the last character of each
cell.

Details are here: http://wiki.contextgarden.net/TABLE#Using_character_alignment

> > \setupTABLE[column][each][align={middle,lohi}, aligncharacter=yes,
> >   alignmentcharacter={;}]
>                        ^^^
> Could you explain this?

I want to align my numbers on the last character, whatever it is. I
don't want to align my numbers on a comma or a dot. I use
alignmentcharacter={;} just because there is no semi-colon in my
tables. This way, ConTeXt defaults to characteralignementmode=4.

But, to get my issue easier to understand, I change my example and use
alignmentcharacter={,} and, guess what, the "bug" is still here:
- look at the attached PDF (for example look at table 1 where every
columns are well aligned; then look at table 3, 4 and 5 where fourth
column is incorrect) ;
- look at the attached .tex file used to produce the PDF.

I continue to think there is some side effect in code maning character
alignement, probably a global variable not reset or something else.

> The only "bug" I see, is the missing accent:
> "Evolution" should be "Évolution"

You're right: the accent is missing, and it's a typographical error. I
guess you live in France to see such a thing!

Thank you very much for your help.

--
Nicolas Grilly
www.garden-paris.com

[-- Attachment #2: character_alignment_bug.pdf --]
[-- Type: application/pdf, Size: 67082 bytes --]

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

[-- Attachment #4: 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-08-01 15:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-31 19:34 Nicolas Grilly
2006-08-01  6:34 ` Peter Münster
2006-08-01 15:07   ` Nicolas Grilly [this message]
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=554cfd4f0608010807l1fc2fce0pbd9880f7c221d8e@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).