ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Fixed Line Height
@ 2013-02-06  3:03 Troy Henderson
  2013-02-06  3:52 ` Aditya Mahajan
  0 siblings, 1 reply; 12+ messages in thread
From: Troy Henderson @ 2013-02-06  3:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 613 bytes --]

When a page begins to get "full", TeX automatically squeezes lines slightly
closer together (vertically) to help the page "break" where it thinks that
it should.  If the page is less than full, then the (vertical) distance
between lines is fixed.  How can I make this fixed distance remain fixed
even as the page starts approaching full?  That is, I don't want the lines
to squeeze together when the page gets full.  I'm familiar with

\clubpenalty
\interlinepenalty
\displaywidowpenalty
\widowpenalty
\keeplinestogether (ConTeXt)

but I'm not sure how to use any/all of these to get this effect.

Troy Henderson

[-- Attachment #1.2: Type: text/html, Size: 682 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Fixed Line Height
  2013-02-06  3:03 Fixed Line Height Troy Henderson
@ 2013-02-06  3:52 ` Aditya Mahajan
  2013-02-06  8:36   ` Hans Hagen
  0 siblings, 1 reply; 12+ messages in thread
From: Aditya Mahajan @ 2013-02-06  3:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, 5 Feb 2013, Troy Henderson wrote:

> When a page begins to get "full", TeX automatically squeezes lines slightly
> closer together (vertically) to help the page "break" where it thinks that
> it should.  If the page is less than full, then the (vertical) distance
> between lines is fixed.  How can I make this fixed distance remain fixed
> even as the page starts approaching full?  That is, I don't want the lines
> to squeeze together when the page gets full.  I'm familiar with
>
> \clubpenalty
> \interlinepenalty
> \displaywidowpenalty
> \widowpenalty
> \keeplinestogether (ConTeXt)
>
> but I'm not sure how to use any/all of these to get this effect.

Try:

\appendtoks\fixedblankskip\to\everybeforeblankhandling

Aditya

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


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

* Re: Fixed Line Height
  2013-02-06  3:52 ` Aditya Mahajan
@ 2013-02-06  8:36   ` Hans Hagen
  2013-02-06 12:35     ` Troy Henderson
  0 siblings, 1 reply; 12+ messages in thread
From: Hans Hagen @ 2013-02-06  8:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 2/6/2013 4:52 AM, Aditya Mahajan wrote:
> On Tue, 5 Feb 2013, Troy Henderson wrote:
>
>> When a page begins to get "full", TeX automatically squeezes lines
>> slightly
>> closer together (vertically) to help the page "break" where it thinks
>> that
>> it should.  If the page is less than full, then the (vertical) distance
>> between lines is fixed.  How can I make this fixed distance remain fixed
>> even as the page starts approaching full?  That is, I don't want the
>> lines
>> to squeeze together when the page gets full.  I'm familiar with
>>
>> \clubpenalty
>> \interlinepenalty
>> \displaywidowpenalty
>> \widowpenalty
>> \keeplinestogether (ConTeXt)
>>
>> but I'm not sure how to use any/all of these to get this effect.
>
> Try:
>
> \appendtoks\fixedblankskip\to\everybeforeblankhandling

probably \setupblank[line] is better

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Fixed Line Height
  2013-02-06  8:36   ` Hans Hagen
@ 2013-02-06 12:35     ` Troy Henderson
  2013-02-06 12:42       ` Wolfgang Schuster
  0 siblings, 1 reply; 12+ messages in thread
From: Troy Henderson @ 2013-02-06 12:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 176 bytes --]

>
> \appendtoks\fixedblankskip\to\everybeforeblankhandling
>>
>
This seemed to work just fine.


> probably \setupblank[line] is better
>

This did not seem to work. :-(

Troy

[-- Attachment #1.2: Type: text/html, Size: 660 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Fixed Line Height
  2013-02-06 12:35     ` Troy Henderson
@ 2013-02-06 12:42       ` Wolfgang Schuster
  2013-02-06 13:13         ` Troy Henderson
  2013-02-06 15:16         ` Aditya Mahajan
  0 siblings, 2 replies; 12+ messages in thread
From: Wolfgang Schuster @ 2013-02-06 12:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 281 bytes --]


Am 06.02.2013 um 13:35 schrieb Troy Henderson <thenders@gmail.com>:

> \appendtoks\fixedblankskip\to\everybeforeblankhandling
> 
> This seemed to work just fine.
>  
> probably \setupblank[line] is better
> 
> This did not seem to work. :-(

Use \setupblank[fixed,line].

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1144 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Fixed Line Height
  2013-02-06 12:42       ` Wolfgang Schuster
@ 2013-02-06 13:13         ` Troy Henderson
  2013-02-06 14:06           ` Wolfgang Schuster
  2013-02-06 15:16         ` Aditya Mahajan
  1 sibling, 1 reply; 12+ messages in thread
From: Troy Henderson @ 2013-02-06 13:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 240 bytes --]

>
> Use \setupblank[fixed,line].
>

Aditya's solution sees to force content at the bottom of the page to stay
on the current page whereas Wolfgang's forces it to the next page.  Both
have benefits to me, so thanks for both solutions.

Troy

[-- Attachment #1.2: Type: text/html, Size: 496 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Fixed Line Height
  2013-02-06 13:13         ` Troy Henderson
@ 2013-02-06 14:06           ` Wolfgang Schuster
  2013-02-06 15:26             ` Troy Henderson
  0 siblings, 1 reply; 12+ messages in thread
From: Wolfgang Schuster @ 2013-02-06 14:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 924 bytes --]


Am 06.02.2013 um 14:13 schrieb Troy Henderson <thenders@gmail.com>:

> Use \setupblank[fixed,line].
>  
> Aditya's solution sees to force content at the bottom of the page to stay on the current page whereas Wolfgang's forces it to the next page.  Both have benefits to me, so thanks for both solutions.

You should get the same output when you change the \setupblank setting to \setupblank[fixed,big].

The advantage of Aditya’s solution is that it will also work when you write \blank[<value>]
because the \fixedblank is applied to each command while the \setupblank solution works
only when you use \blank (without argument), for different values you have to add “fixed”
to the list of arguments (i.e. \blank[fixed,…]).

The disadvantage of Aditya’s solution is that i changes settings from the core which is never
a good idea because commands can change, with \setupblank this doesn’t matter.

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1639 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Fixed Line Height
  2013-02-06 12:42       ` Wolfgang Schuster
  2013-02-06 13:13         ` Troy Henderson
@ 2013-02-06 15:16         ` Aditya Mahajan
  1 sibling, 0 replies; 12+ messages in thread
From: Aditya Mahajan @ 2013-02-06 15:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, 6 Feb 2013, Wolfgang Schuster wrote:

> Use \setupblank[fixed,line].

This is indeed the proper way. For some reason, I was simply testing with 
arguments to \setupwhitespace and, of course, \setupwhitespace[fixed,big] 
did not have the desired affect.

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


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

* Re: Fixed Line Height
  2013-02-06 14:06           ` Wolfgang Schuster
@ 2013-02-06 15:26             ` Troy Henderson
  2013-02-06 16:06               ` Otared Kavian
  0 siblings, 1 reply; 12+ messages in thread
From: Troy Henderson @ 2013-02-06 15:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 675 bytes --]

Thanks Wolfgang for the explanation.  \setupblank[fixed,big] works very
well too.  Now for another question.  I have modified "SlideWithSteps" from

http://wiki.contextgarden.net/SlideWithSteps

It seemed not to like \eject and I replaced \phantom{ ... } with
\setlayer[StepsHiddenLayer]{ ... } where StepsHiddenLayer is a layer
created with

\definelayer[StepsHiddenLayer][state=stop]

See attached slide-with-steps.tex

This seems to work fine with itemized lists and even MetaPost figures (see
foo.tex) but it fails with multiline equations (bar.tex) which are both
attached.  I would like a solution that would allow me to reveal each line
of a multiline equation.

Troy

[-- Attachment #1.2: Type: text/html, Size: 813 bytes --]

[-- Attachment #2: slide-with-steps.tex --]
[-- Type: application/x-tex, Size: 1110 bytes --]

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

[-- Attachment #4: bar.tex --]
[-- Type: application/x-tex, Size: 1131 bytes --]

[-- Attachment #5: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Fixed Line Height
  2013-02-06 15:26             ` Troy Henderson
@ 2013-02-06 16:06               ` Otared Kavian
  2013-02-06 17:14                 ` Troy Henderson
  0 siblings, 1 reply; 12+ messages in thread
From: Otared Kavian @ 2013-02-06 16:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2076 bytes --]

Hi Troy,

Thanks for sharing!
Your macros slide-with-steps are very nice and the steps shown in the file foo.tex are very good, but I couldn't typeset the other file, bar.tex, since it seems that due to the use of \startalign and \stopalign in some steps in the middle create some difficulties for TeX.

André Caldas (who is on the list) tried also some nice modifications of the stepping macros which he maned simplesteps: maybe both of you can look at each other's approach and solve the remaining problems.

I'll try to find a workaround for your approach with layers, maybe with using buffers, layers and some lua code, but even though I have some (obscure…) ideas I am really not good at writing code.

Best regards: OK

On 6 févr. 2013, at 16:26, Troy Henderson <thenders@gmail.com> wrote:

> Thanks Wolfgang for the explanation.  \setupblank[fixed,big] works very well too.  Now for another question.  I have modified "SlideWithSteps" from
> 
> http://wiki.contextgarden.net/SlideWithSteps
> 
> It seemed not to like \eject and I replaced \phantom{ ... } with \setlayer[StepsHiddenLayer]{ ... } where StepsHiddenLayer is a layer created with
> 
> \definelayer[StepsHiddenLayer][state=stop]
> 
> See attached slide-with-steps.tex
> 
> This seems to work fine with itemized lists and even MetaPost figures (see foo.tex) but it fails with multiline equations (bar.tex) which are both attached.  I would like a solution that would allow me to reveal each line of a multiline equation.
> 
> Troy
> <slide-with-steps.tex><foo.tex><bar.tex>___________________________________________________________________________________
> 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  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 3002 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Fixed Line Height
  2013-02-06 16:06               ` Otared Kavian
@ 2013-02-06 17:14                 ` Troy Henderson
  2013-02-07  8:09                   ` Otared Kavian
  0 siblings, 1 reply; 12+ messages in thread
From: Troy Henderson @ 2013-02-06 17:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 554 bytes --]

>
> Your macros slide-with-steps are very nice
>

For the record, these are not my macros.  Aren't they yours?  Anyway, the
only thing I changed from what's on

http://wiki.contextgarden.net/SlideWithSteps

is I changed \eject to \page[yes] and I changed \phantom{ ... } to
\setlayer[StepsHiddenLayer]{ ... } where StepsHiddenLayer is a "hidden"
layer.  Like you said, the problem seems to be that I cannot do

\setlayer[StepsHiddenLayer]{ ... }

on a "row" of an align.  Surely there is a solution to this.  I will post
it now to a separate post.

Troy

[-- Attachment #1.2: Type: text/html, Size: 886 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Fixed Line Height
  2013-02-06 17:14                 ` Troy Henderson
@ 2013-02-07  8:09                   ` Otared Kavian
  0 siblings, 0 replies; 12+ messages in thread
From: Otared Kavian @ 2013-02-07  8:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1597 bytes --]

Hi Troy,

You are right, I am responsible for the old 
	http://wiki.contextgarden.net/SlideWithSteps
which is just adapted from what I used to use in the old good times of Plain TeX. But I wasn't successful in changing the macros to make them work in mkiv.

I think the approach should completely change in order to use steps with mkiv and lua. 
Later on I'll send you some thoughts about this.

Best regards: OK

On 6 févr. 2013, at 18:14, Troy Henderson <thenders@gmail.com> wrote:

> Your macros slide-with-steps are very nice
> 
> For the record, these are not my macros.  Aren't they yours?  Anyway, the only thing I changed from what's on
> 
> http://wiki.contextgarden.net/SlideWithSteps
> 
> is I changed \eject to \page[yes] and I changed \phantom{ ... } to \setlayer[StepsHiddenLayer]{ ... } where StepsHiddenLayer is a "hidden" layer.  Like you said, the problem seems to be that I cannot do
> 
> \setlayer[StepsHiddenLayer]{ ... }
> 
> on a "row" of an align.  Surely there is a solution to this.  I will post it now to a separate post.
> 
> Troy
> ___________________________________________________________________________________
> 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  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 2770 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2013-02-07  8:09 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-06  3:03 Fixed Line Height Troy Henderson
2013-02-06  3:52 ` Aditya Mahajan
2013-02-06  8:36   ` Hans Hagen
2013-02-06 12:35     ` Troy Henderson
2013-02-06 12:42       ` Wolfgang Schuster
2013-02-06 13:13         ` Troy Henderson
2013-02-06 14:06           ` Wolfgang Schuster
2013-02-06 15:26             ` Troy Henderson
2013-02-06 16:06               ` Otared Kavian
2013-02-06 17:14                 ` Troy Henderson
2013-02-07  8:09                   ` Otared Kavian
2013-02-06 15:16         ` Aditya Mahajan

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