* hsize changes unexpectedly
@ 2016-11-20 1:47 Rik Kabel
2016-11-20 10:53 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Rik Kabel @ 2016-11-20 1:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
Why does \hsize revert to \textwidth after a page and a paragraph?
\starttext
\hsize200pt
\dorecurse{60}{\recurselevel: \the\hsize\ \the\textwidth\par}
\stoptext
--
Rik
___________________________________________________________________________________
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] 7+ messages in thread
* Re: hsize changes unexpectedly
2016-11-20 1:47 hsize changes unexpectedly Rik Kabel
@ 2016-11-20 10:53 ` Hans Hagen
2016-11-20 16:49 ` Rik Kabel
0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2016-11-20 10:53 UTC (permalink / raw)
To: ntg-context
On 11/20/2016 2:47 AM, Rik Kabel wrote:
> Why does \hsize revert to \textwidth after a page and a paragraph?
>
> \starttext
> \hsize200pt
> \dorecurse{60}{\recurselevel: \the\hsize\ \the\textwidth\par}
> \stoptext
because the main text flow width and height settings are synchronized
... \hsize and \vsize are for local use
-----------------------------------------------------------------
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] 7+ messages in thread
* Re: hsize changes unexpectedly
2016-11-20 10:53 ` Hans Hagen
@ 2016-11-20 16:49 ` Rik Kabel
2016-11-20 17:16 ` Wolfgang Schuster
2016-11-20 18:34 ` Hans Hagen
0 siblings, 2 replies; 7+ messages in thread
From: Rik Kabel @ 2016-11-20 16:49 UTC (permalink / raw)
To: ntg-context
On 2016-11-20 05:53, Hans Hagen wrote:
> On 11/20/2016 2:47 AM, Rik Kabel wrote:
>> Why does \hsize revert to \textwidth after a page and a paragraph?
>>
>> \starttext
>> \hsize200pt
>> \dorecurse{60}{\recurselevel: \the\hsize\ \the\textwidth\par}
>> \stoptext
>
> because the main text flow width and height settings are synchronized
> ... \hsize and \vsize are for local use
Okay.
What is the scope of local use? It is different from grouping (as
demonstrated by placing the middle two lines above in braces).
--
Rik
___________________________________________________________________________________
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] 7+ messages in thread
* Re: hsize changes unexpectedly
2016-11-20 16:49 ` Rik Kabel
@ 2016-11-20 17:16 ` Wolfgang Schuster
2016-11-20 17:37 ` Rik
2016-11-20 18:34 ` Hans Hagen
1 sibling, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2016-11-20 17:16 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 431 bytes --]
> Rik Kabel <mailto:context@rik.users.panix.com>
> 20. November 2016 um 17:49
>
> Okay.
>
> What is the scope of local use?
It’s used to change the width of a \vbox.
\starttext
\ruledvbox\bgroup
\input ward
\egroup
\ruledvbox\bgroup
\hsize.5\textwidth
\input ward
\egroup
\stoptext
> It is different from grouping (as demonstrated by placing the middle
> two lines above in braces).
Which example?
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 1752 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 bytes --]
___________________________________________________________________________________
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] 7+ messages in thread
* Re: hsize changes unexpectedly
2016-11-20 17:16 ` Wolfgang Schuster
@ 2016-11-20 17:37 ` Rik
2016-11-20 18:37 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Rik @ 2016-11-20 17:37 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 985 bytes --]
On 2016-11-20 12:16, Wolfgang Schuster wrote:
>> Rik Kabel <mailto:context@rik.users.panix.com>
>> 20. November 2016 um 17:49
>>
>> Okay.
>>
>> What is the scope of local use?
> It’s used to change the width of a \vbox.
>
> \starttext
>
> \ruledvbox\bgroup
> \input ward
> \egroup
>
> \ruledvbox\bgroup
> \hsize.5\textwidth
> \input ward
> \egroup
>
> \stoptext
>
>> It is different from grouping (as demonstrated by placing the middle
>> two lines above in braces).
> Which example?
>
> Wolfgang
Sorry, the example at the head of the thread. Originally:
\starttext
\hsize200pt
\dorecurse{60}{\recurselevel: \the\hsize\ \the\textwidth\par}
\stoptext
And with the \hsize in a group :
\starttext
{\hsize200pt
\dorecurse{60}{\recurselevel: \the\hsize\ \the\textwidth\par}}
\stoptext
I did not expect it to change the result, and it does not. So I was
asking just what Hans meant by “local use.”
--
Rik
[-- Attachment #1.2: Type: text/html, Size: 3153 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 bytes --]
___________________________________________________________________________________
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] 7+ messages in thread
* Re: hsize changes unexpectedly
2016-11-20 17:37 ` Rik
@ 2016-11-20 18:37 ` Hans Hagen
0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2016-11-20 18:37 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 11/20/2016 6:37 PM, Rik wrote:
> On 2016-11-20 12:16, Wolfgang Schuster wrote:
>>> Rik Kabel <mailto:context@rik.users.panix.com>
>>> 20. November 2016 um 17:49
>>>
>>> Okay.
>>>
>>> What is the scope of local use?
>> It’s used to change the width of a \vbox.
>>
>> \starttext
>>
>> \ruledvbox\bgroup
>> \input ward
>> \egroup
>>
>> \ruledvbox\bgroup
>> \hsize.5\textwidth
>> \input ward
>> \egroup
>>
>> \stoptext
>>
>>> It is different from grouping (as demonstrated by placing the middle
>>> two lines above in braces).
>> Which example?
>>
>> Wolfgang
>
> Sorry, the example at the head of the thread. Originally:
>
> \starttext
>
> \hsize200pt
>
> \dorecurse{60}{\recurselevel: \the\hsize\ \the\textwidth\par}
>
> \stoptext
>
> And with the \hsize in a group :
>
> \starttext
>
> {\hsize200pt
>
> \dorecurse{60}{\recurselevel: \the\hsize\ \the\textwidth\par}}
>
> \stoptext
>
> I did not expect it to change the result, and it does not. So I was
> asking just what Hans meant by “local use.”
when you add stuff to the page it happens globally till (normally) tex
splits off the content that fits to the pagegoal (which is taken from
vsize) .. in principle we could leave hsize untouched but for
consistency and predictability we use textwidth etc .. this has always
been the case
--
-----------------------------------------------------------------
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] 7+ messages in thread
* Re: hsize changes unexpectedly
2016-11-20 16:49 ` Rik Kabel
2016-11-20 17:16 ` Wolfgang Schuster
@ 2016-11-20 18:34 ` Hans Hagen
1 sibling, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2016-11-20 18:34 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 11/20/2016 5:49 PM, Rik Kabel wrote:
> On 2016-11-20 05:53, Hans Hagen wrote:
>> On 11/20/2016 2:47 AM, Rik Kabel wrote:
>>> Why does \hsize revert to \textwidth after a page and a paragraph?
>>>
>>> \starttext
>>> \hsize200pt
>>> \dorecurse{60}{\recurselevel: \the\hsize\ \the\textwidth\par}
>>> \stoptext
>>
>> because the main text flow width and height settings are synchronized
>> ... \hsize and \vsize are for local use
> Okay.
>
> What is the scope of local use? It is different from grouping (as
> demonstrated by placing the middle two lines above in braces).
\vbox { \hsize ... }
-----------------------------------------------------------------
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] 7+ messages in thread
end of thread, other threads:[~2016-11-20 18:37 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-20 1:47 hsize changes unexpectedly Rik Kabel
2016-11-20 10:53 ` Hans Hagen
2016-11-20 16:49 ` Rik Kabel
2016-11-20 17:16 ` Wolfgang Schuster
2016-11-20 17:37 ` Rik
2016-11-20 18:37 ` Hans Hagen
2016-11-20 18:34 ` 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).