ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: ConTeXt users <ntg-context@ntg.nl>
Subject: Re: understanding \startTEXpage
Date: Thu, 28 Jan 2021 12:06:18 +0100	[thread overview]
Message-ID: <e7beb29f-c116-6756-4e67-3d6c4529ad55@xs4all.nl> (raw)
In-Reply-To: <87h7n2z40u.fsf@a16n.net>

On 1/27/2021 6:24 PM, Peter Münster wrote:
> Hi,
> 
> According to https://wiki.contextgarden.net/Command/startTEXpage it
> "starts a page that fits its contents exactly".
> 
> But it seems, that part of the content is cropped here:
> \startTEXpage X \hskip20cm X \stopTEXpage
> 
> No problem with 10cm instead of 20cm...
> 
> Is this a bug or expected behaviour?
Yes. The problem is that in order for auto width to work we need to have 
some width to start with. Also, because we want TEXpage to be in 
vertical mode, we cannot assume it being horizontal. So, a chicken-egg 
problem.  The good news is that you can control it, the bad news is that 
you have to update the wiki,

\starttext

\startTEXpage[align=normal,width=900pt,autowidth=force]
     \framed[width=800pt,frame=off]{\number\dimexpr800pt}\par
     \input tufte\par
\stopTEXpage

\startTEXpage[align=normal,width=100cm,autowidth=force]
     X \hskip20cm X
\stopTEXpage

\stoptext


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2021-01-28 11:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-27 17:24 Peter Münster
2021-01-28 11:06 ` Hans Hagen [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=e7beb29f-c116-6756-4e67-3d6c4529ad55@xs4all.nl \
    --to=j.hagen@xs4all.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).