Fixed Line Height
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
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
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 -----------------------------------------------------------------
Am 06.02.2013 um 14:13 schrieb Troy Henderson
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
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
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
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
___________________________________________________________________________________ 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 ___________________________________________________________________________________
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
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
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 ___________________________________________________________________________________
participants (5)
-
Aditya Mahajan
-
Hans Hagen
-
Otared Kavian
-
Troy Henderson
-
Wolfgang Schuster