From: "\"H. Özoguz\"" <h.oezoguz@mmnetz.de>
To: ntg-context@ntg.nl
Subject: Command only if \testpage is active
Date: Thu, 18 Apr 2013 17:44:38 +0200 [thread overview]
Message-ID: <517014E6.40200@mmnetz.de> (raw)
Hi,
for subsections I use
\setuphead[subsection]
[after=\vskip-1.6mm,
before={\testpage[5]\vskip1.6mm}]
The reason is perfect distances between text-subsection-text with
activated gridding.
If the subsection is not set by \testpage on the next page, then
everything workes fine! But if, then I want to not use the \vskips in
"after" and "before". I want (in pseudo-pseudocode) something like this:
if(less then 5 lines, thas is, testpage sets the subsection on the next
page)
then:
\setuphead[subsection]
[after=,
before=]
I hope I could make clear, what I intend to achieve.
For testing:
+++++++++++++++++++++++++++++++++++++
\setuplayout[grid=yes]
\showgrid
\setuphead[subsection]
[after=\vskip-1.6mm,
before={\testpage[5]\vskip1.6mm}]]
\starttext
\dorecurse{13}{Linefill\\}
\input tufte
\subsection{Hallo}
\input tufte
\subsection{Hallo}
\input tufte \input tufte
\stoptext
+++++++++++++++++++++++++++++++++++++
You see on the second page the problem: gridding is lost.
Huseyin
___________________________________________________________________________________
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
___________________________________________________________________________________
next reply other threads:[~2013-04-18 15:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-18 15:44 "H. Özoguz" [this message]
2013-04-18 16:39 ` Wolfgang Schuster
2013-04-18 16:51 "H. Özoguz"
2013-04-18 16:56 ` Wolfgang Schuster
2013-04-18 20:19 "H. Özoguz"
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=517014E6.40200@mmnetz.de \
--to=h.oezoguz@mmnetz.de \
--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).