From: <denis.maier@ub.unibe.ch>
To: <ntg-context@ntg.nl>
Subject: conditionally add \vfill before section if at end of page
Date: Tue, 4 May 2021 08:25:27 +0000 [thread overview]
Message-ID: <326c8ed5db0f486885ee0c7350344204@ub.unibe.ch> (raw)
[-- 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
___________________________________________________________________________________
reply other threads:[~2021-05-04 8:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=326c8ed5db0f486885ee0c7350344204@ub.unibe.ch \
--to=denis.maier@ub.unibe.ch \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).