ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Thangalin <thangalin@gmail.com>
Subject: Re: Blank page inserted when text reaches column's end
Date: Wed, 11 Dec 2019 05:55:12 +0100	[thread overview]
Message-ID: <639847fc-047f-46cf-4537-2c087a040f0b@gmail.com> (raw)
In-Reply-To: <CAANrE7pSNJK=G17jBKsFGKwWii6w1aChehOZ1bXrQtJASW7yOA@mail.gmail.com>

Thangalin schrieb am 11.12.2019 um 02:51:
> Commenting out the \page_grd_command_flush_page macro seems to have
> reversed the effect. Any pages having columnar text that does not
> extend to the last line are now suppressed. How would I go about
> adding a conditional that checks to see whether the column is filled
> before deciding if a page break is necessary?
>
> \unprotect
> \def\page_grd_stop{%
>    \endgraf % needed, else wrong vsize in one par case
>    \vfill % otherwise weird \placenotes[endnotes]
>    \page_grd_command_set_vsize % needed
>    \penalty\c_page_otr_eject_penalty
>    %\page_grd_command_flush_page
>    \page_otr_fill_and_eject_page
>    \page_grd_command_set_vsize % why here
>    \egroup
>    \page_otr_command_set_vsize
>    \page_otr_command_set_hsize}
> \protect

Fails for the next example (the first page appears twice in the PDF and 
the second page is missing):

\setuplayout[grid=yes]

\starttext
   \startcolumnset[n=2]
     \dorecurse{100}{Line #1\par}
   \stopcolumnset
\stoptext

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2019-12-11  4:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-08 23:44 Thangalin
2019-12-09  8:41 ` Denis Maier
2019-12-09 17:23   ` Wolfgang Schuster
2019-12-10  2:37     ` Thangalin
2019-12-11  1:51       ` Thangalin
2019-12-11  4:55         ` Wolfgang Schuster [this message]

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=639847fc-047f-46cf-4537-2c087a040f0b@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=thangalin@gmail.com \
    /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).