ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "\"H. Özoguz\"" <h.oezoguz@mmnetz.de>
To: ntg-context@ntg.nl
Subject: Testpage with extras
Date: Thu, 30 Jan 2014 10:37:27 +0100	[thread overview]
Message-ID: <52EA1D57.9060008@mmnetz.de> (raw)

Hi there,

I asked a similar question before, but I try it again (in a bit 
different way):

The command \testpage[n] Paragraph sets the next paragraph on the next 
page, if there are less than n lines left on the current page. I use 
this command very often, but need it with some extension: If \testpage 
is "active" (meaning, there are indeed less than n lines left), then it 
should not only input an pagebreak, but also some other command.

E.g.: somewhat like \testpage[n,{\noindentation}] should add 
"\noindentation" before the paragraph, if and only if, there are less 
than n lines left. Or maybe: "\testpage[n, {TESTPAGE IS ACTIV}" to 
simply add this text infront of the next paragraph (of course the first 
one is more interesting).

At the moment I use \testpage[n]\noindentation but that fails, if the 
document has changed and there are >= n lines left => no pagebreak, but 
still \noindentation of course - but they only should act simultaneously.

Is that possible in some way?

Best regards!
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
___________________________________________________________________________________


             reply	other threads:[~2014-01-30  9:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-30  9:37 "H. Özoguz" [this message]
2014-01-30 11:23 ` Hans Hagen
2014-01-30 11:34 "H. Özoguz"
2014-01-30 21:23 ` Hans Hagen
2014-01-31  9:46   ` Keith J. Schultz
2014-01-31 10:18     ` Hans Hagen
2014-02-01  9:15       ` Keith J. Schultz
2014-02-01 11:03         ` Hans Hagen

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=52EA1D57.9060008@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).