ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: ntg-context@ntg.nl
Subject: Re: Odd Behavior in pdftex/xetex
Date: Sat, 24 May 2008 08:58:13 +0200	[thread overview]
Message-ID: <20080524085813.221ebe55.schuster.wolfgang@googlemail.com> (raw)
In-Reply-To: <48372912.1090406@wxs.nl>

On Fri, 23 May 2008 22:29:06 +0200
Hans Hagen <pragma@wxs.nl> wrote:

> Michael.Urban@jpl.nasa.gov wrote:
> > The following specimen was run on live.contextgarden.net with each of
> > the three typesetters:
> > 
> > \setupcolors[state=start]
> > \starttext
> > \input knuth
> > 
> > \bTABLE
> > \bTR [align=middle]\bTH Range\eTH{}\bTH Value\eTH{}\eTR
> > \bTR \bTD \type{<} 12\eTD{}\bTD 3\eTD{}\eTR
> > \bTR \bTD 12--16\eTD{}\bTD 2\eTD{}\eTR
> > \bTR \bTD \type{>}16\eTD{}\bTD 1\eTD{}\eTR
> > \eTABLE
> > 
> > \input knuth
> > \stoptext
> > 
> > 
> > In the case of pdfTeX and XeTeX, the table is given a width equal
> > to the textwidth; in the caes of LuaTeX, it is typeset correctly
> > with natural widths.
> > 
> > When \setupcolors is removed, both pdfTeX and XeTeX also produce
> > the correct result.
> > 
> > This sounds like a bug to me (and took me forever to isolate
> > \setupcolors - of all things! - as the culprit).
> 
> actually it's the \type (combined with colors)
> 
> \dontleavehmode \type {xx}
> 
> works ok
> 
> probably some pdfliteral is playing havoc here so that the width analyer 
> cannot function well (a limitation of tex is that there's only a small 
> set subset of \un* and \last* node operations); if you see messages like 
> this
> 
>    !!forced exit from shapebox 9!!
> 
> that is indeed the case. hoewver, in mkiv i use different trickery so 
> there we don't have this problem (we also use a different color 
> mechanism so that helps too)
> 
> it's not so much a bug in mkii as well as a side effect/limitation
> 
> okay, we could add \dontleavehmode to \type but i'm not sure if that 
> will not break other things; also, bTABLE is kind of tricky because it 
> needs to be clever with regards to text and non text and such

If he use \retype the table works.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2008-05-24  6:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-23 19:32 Michael.Urban
2008-05-23 20:29 ` Hans Hagen
2008-05-24  6:58   ` Wolfgang Schuster [this message]
2008-05-28 18:52     ` Michael.Urban
2008-05-28 20:23       ` 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=20080524085813.221ebe55.schuster.wolfgang@googlemail.com \
    --to=schuster.wolfgang@googlemail.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).