ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Command only if \testpage is active
Date: Thu, 18 Apr 2013 18:39:12 +0200	[thread overview]
Message-ID: <4927CE29-1CE7-4140-9EE7-E1E55A906895@gmail.com> (raw)
In-Reply-To: <517014E6.40200@mmnetz.de>


Am 18.04.2013 um 17:44 schrieb "H. Özoguz" <h.oezoguz@mmnetz.de>:

> 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.

I can’t reproduce the problem, the text on the second page stays on the grid.

Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________


  reply	other threads:[~2013-04-18 16:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-18 15:44 "H. Özoguz"
2013-04-18 16:39 ` Wolfgang Schuster [this message]
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=4927CE29-1CE7-4140-9EE7-E1E55A906895@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --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).