ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* understanding \startTEXpage
@ 2021-01-27 17:24 Peter Münster
  2021-01-28 11:06 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Münster @ 2021-01-27 17:24 UTC (permalink / raw)
  To: ConTeXt users

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?

TIA,
-- 
           Peter
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: understanding \startTEXpage
  2021-01-27 17:24 understanding \startTEXpage Peter Münster
@ 2021-01-28 11:06 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2021-01-28 11:06 UTC (permalink / raw)
  To: ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-28 11:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-27 17:24 understanding \startTEXpage Peter Münster
2021-01-28 11:06 ` Hans Hagen

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).