On 7/10/2023 10:43 AM, denis.ma...@unibe.ch wrote:

Page puilder mode sounds interesting! What are you plans for that?

Things like:

- overflow area
- vertical expansion
- more detailed tracing
- more accurate \testpage
- initial and as-we-go stretch/shrink manipulation

Most is already there but in the process of being documented and tested.

Atached is an example (from the manual) that shows somethign that can be handy for those who typeset novels and such. (vz is a variant on hz and is something that Hermann Zapf suggested long ago when we discussed vertical expansion.)

Other tricks are:

\setupalign[vertical,height]

....

\setpagelooseness[-2]

....

and such which can be used to influence the current page.

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

Attachment: vz.pdf
Description: Adobe PDF document

\starttext

\startbuffer[vz-1]
\starttext
    \showframe[text]
    \enabletrackers[layout.vz]
    \setuplayout[width=middle,headerdistance=5mm,vz=no]
    \clubpenalty  10000
    \widowpenalty 10000
    \dostepwiserecurse{0}{30}{1}{
        \dorecurse{#1}{\strut dummy line ##1\par}
        \dorecurse{4}{\samplefile{tufte}\par}
    }
\stoptext
\stopbuffer

\startbuffer[vz-2]
\starttext
    \showframe[text]
    \enabletrackers[layout.vz]
    \setuplayout[width=middle,headerdistance=5mm,vz=yes]
    \clubpenalty  10000
    \widowpenalty 10000
    \dostepwiserecurse{0}{30}{1}{
        \dorecurse{#1}{\strut dummy line ##1\par}
        \dorecurse{4}{\samplefile{tufte}\par}
    }
\stoptext
\stopbuffer

\startbuffer[vz-3]
\starttext
    \showframe[text]
    \enabletrackers[layout.vz]
    \setuplayout[width=middle,headerdistance=5mm,vz=2]
    \clubpenalty  10000
    \widowpenalty 10000
    \dostepwiserecurse{0}{30}{1}{
        \dorecurse{#1}{\strut dummy line ##1\par}
        \dorecurse{4}{\samplefile{tufte}\par}
    }
\stoptext
\stopbuffer

\startplacefigure[location=here,reference=fig:vz-1,title={Cheating with 
vertical expansion: \type {[vz=no]}.}]
    \startcombination[4*1]
        {\typesetbuffer[vz-1][width=\combinationwidth,page=1,frame=on]} {}
        {\typesetbuffer[vz-1][width=\combinationwidth,page=2,frame=on]} {}
        {\typesetbuffer[vz-1][width=\combinationwidth,page=3,frame=on]} {}
        {\typesetbuffer[vz-1][width=\combinationwidth,page=4,frame=on]} {}
    \stopcombination
\stopplacefigure

\startplacefigure[location=here,reference=fig:vz-2,title={Cheating with 
vertical expansion: \type {[vz=yes]}.}]
    \startcombination[4*1]
        {\typesetbuffer[vz-2][width=\combinationwidth,page=1,frame=on]} {}
        {\typesetbuffer[vz-2][width=\combinationwidth,page=2,frame=on]} {}
        {\typesetbuffer[vz-2][width=\combinationwidth,page=3,frame=on]} {}
        {\typesetbuffer[vz-2][width=\combinationwidth,page=4,frame=on]} {}
    \stopcombination
\stopplacefigure

\startplacefigure[location=here,reference=fig:vz-3,title={Cheating with 
vertical expansion: \type {[vz=2]}.}]
    \startcombination[4*1]
        {\typesetbuffer[vz-3][width=\combinationwidth,page=1,frame=on]} {}
        {\typesetbuffer[vz-3][width=\combinationwidth,page=2,frame=on]} {}
        {\typesetbuffer[vz-3][width=\combinationwidth,page=3,frame=on]} {}
        {\typesetbuffer[vz-3][width=\combinationwidth,page=4,frame=on]} {}
    \stopcombination
\stopplacefigure

\stoptext
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

Reply via email to