ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Matthijs Kooijman <matthijs@stdin.nl>
To: Mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: page[no] not working?
Date: Mon, 7 Dec 2009 22:55:16 +0100	[thread overview]
Message-ID: <20091207215516.GA13955@katherina.student.utwente.nl> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1042 bytes --]

Hi all,

I've come to understand taht using the \page[no] command should prevent a
pagebreak at that particular spot whenever possible. However, this seems to be
not working for me. My actual problem is with a \startframed directly after a
description "header", but the problem is easily reproduced with the below
example (for MkII, replace the 25cm with 20cm). The \dontleavehmod was needed
to make the \blank work...


  \starttext
  \dontleavehmode
  \blank[25cm]
  A
  \page[no]
  \startframedtext
  H
  \stopframedtext
  \stoptext


This example generates the "A" at the bottom of the first page, with the boxed
H on the next page, putting a page break exactly where the page[no] is. Is it
broken, or am I missing an important detail about how page[no] works?

I've also tried 

  \defineblankmethod [nobreak] {\nobreak}
  \blank[nobreak,line]

and some variations as suggested by Wolfgang (IIRC) in some thread from 2008,
but that failed with "missing number, treated as zero" for me.

Gr.

Matthijs

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2009-12-07 21:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-07 21:55 Matthijs Kooijman [this message]
2009-12-07 22:02 ` Wolfgang Schuster
2009-12-08  8:27   ` Matthijs Kooijman
2009-12-08  8:48     ` Wolfgang Schuster
2009-12-08  9:14       ` Matthijs Kooijman
2009-12-08  9:37         ` luigi scarso
2009-12-08 10:06         ` Wolfgang Schuster

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=20091207215516.GA13955@katherina.student.utwente.nl \
    --to=matthijs@stdin.nl \
    --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).