* conditionally add \vfill before section if at end of page
@ 2021-05-04 8:25 denis.maier
0 siblings, 0 replies; only message in thread
From: denis.maier @ 2021-05-04 8:25 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 981 bytes --]
Hi,
I'm still playing/struggling with vertical glue to have pages of a constant height. The following settings give reasonable results:
=============
\setuppapersize[A5][A5]
\setupalign[line]
\setuptolerance[vertical,stretch]
\setupinterlinespace[
stretch=0.001,
shrink=0.001,
]
\showframe
\starttext
\section{Section}
\input knuth\par
\input knuth\par
\input knuth\par
\input ward
\input ward
\input ward
%\vfill % can a \vfill be added automatically here?
\section{Section}
\input knuth\par
% here we don't have a \vfill as this is on the middle of the page
\section{Section}
\input knuth\par
\stoptext
======================
However, I don't want the stretching if the next page starts with a section heading. Is there any way to add a \vfill on a page immediately before a section heading? \doifatpageborder \doifatpagestart or something similar ?
Thanks for you help,
Denis
[-- Attachment #1.2: Type: text/html, Size: 5030 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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] only message in thread
only message in thread, other threads:[~2021-05-04 8:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-04 8:25 conditionally add \vfill before section if at end of page denis.maier
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).