From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/107221 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Joey McCollum Newsgroups: gmane.comp.tex.context Subject: Re: Blank page added after pagecolumns Date: Mon, 4 May 2020 14:45:56 -0400 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0304269145825881065==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="45644"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon May 04 20:48:31 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jVg8l-000Bl6-Qy for gctc-ntg-context-518@m.gmane-mx.org; Mon, 04 May 2020 20:48:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5502C183ACC; Mon, 4 May 2020 20:46:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A4kvKe4xcga3; Mon, 4 May 2020 20:46:14 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6AA3D183ADC; Mon, 4 May 2020 20:46:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5D036183AD5 for ; Mon, 4 May 2020 20:46:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ossLr2Fsd2Ac for ; Mon, 4 May 2020 20:46:08 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.218.54; helo=mail-ej1-f54.google.com; envelope-from=jmccollum20140511@gmail.com; receiver= Original-Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 900DF183ACC for ; Mon, 4 May 2020 20:46:08 +0200 (CEST) Original-Received: by mail-ej1-f54.google.com with SMTP id gr25so14832466ejb.10 for ; Mon, 04 May 2020 11:46:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=sOkKRvbHtgC/bJI1emso9XJzHaiZehxk3+rcM4ODPk4=; b=ivJMQ4tt4UDbrZDrfzJLYBcjFTdcNXymIodKbfCCFJ6IHuIj0tCUBRgExW+832aaFC Lyir5ZWdm5NqyLoAQS0osgi9DuMis0HvH9gicxZcIwp4JPOlN24LjCgvHONNzCDRIkw4 wunHyWujLqhCE86u1RBP7ur2xbs3IJHRcOfTZfPLlcfVm46QXs4LTw9tXrh0dUpR5ala jOs9jRjUQomBEW8j/TVC0bgowPSCCaMuWpKURCoB6R5KMpMkrK+2sMkPuD77IeIx8Exu i7rEInTn3Wj1/fwsgLaNDIhA764R/mOEZS1/l7Sh8a3aE4DOPZPp/sL9FPDdyPoq422i +vdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=sOkKRvbHtgC/bJI1emso9XJzHaiZehxk3+rcM4ODPk4=; b=kbDsAywC0xlwer5MuU7IO7zsWXyxgDTIADtHjQlF3keXrU5ipq76tG+OYgOQyrSKiv ql1VmYnD2yglpOiNbqPwLge3+LlEPwRajMz9az8bbt5U8VRvXvYkBdmu5ri0v3QGLPTX zEjBuv9D2KxGSnqogZzalPGcpR7kuNPAzof9e63RL6AWVeWWeAQgAlnldf8A/kM2SZya eEhvjp7rU586xwxTHUcOfUolJXXL7/5Zb/9pq7y+yI/ltRxkvxO+4/GvzXzGhKKvGSXz yqvH5PSLCewUwocmSGHJtDI/nMhpXJb5YLCQOR9vd0awyew1nJ8a+3ghzvoOxOhMHIqC PYHw== X-Gm-Message-State: AGi0PuaQGZn9SGXr+kYSJX3HpiJHbiMHe6H6jqycAdpFZev6uDL/G0iz SKMGBeQSAuhTMdF3RuiIvsCw+h6sA0a2U/dC40dq+M2y X-Google-Smtp-Source: APiQypLWmH4g7J67e24jXqhrXBomoYLmLkYW6/tTmxwWFVdOpjOiV24Q7czI8Cs86RU2jPXQSZC6BdGo6z99XKOhkZA= X-Received: by 2002:a17:906:1502:: with SMTP id b2mr16378853ejd.359.1588617967785; Mon, 04 May 2020 11:46:07 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:107221 Archived-At: --===============0304269145825881065== Content-Type: multipart/alternative; boundary="000000000000a75b6f05a4d6f159" --000000000000a75b6f05a4d6f159 Content-Type: text/plain; charset="UTF-8" After continuing to look into this a bit, I noticed that a similar issue involving the insertion of a blank page after a columnset environment has been discussed on the mailing list in the thread "Blank page inserted when text reaches column's end" (dated 08 Dec 2019). In that thread, a proposed solution was to redefine the \page_grd_stop macro found in page-cst.mkiv as follows: ``` \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 ``` Unfortunately, this approach was found to have potential issues in that thread, and it does not fix the problem with pagecolumns in my MWE. Are pagecolumns commands aliased to pagegrid commands like columnset commands are, or are they defined somewhere else? I checked page-col.mkiv, but it seems to be too short to be the file that defines pagecolumns behavior. Joey On Sat, May 2, 2020 at 11:46 AM Joey McCollum wrote: > I recently found the pagecolumns manual ( > http://www.pragma-ade.com/general/manuals/pagecolumns.pdf), and in > several of the examples (including those for side floats and footnotes), > the addition of a blank page after the end of the pagecolumns environment > also seems to occur. So when the manual says, "We always start at a new > page and end on a new one," does it mean that this is a feature of > pagecolumns? And if so, is there any way to disable it? I have no problem > with a page break after the end of the pagecolumns environment, but an > empty page added after the break seems unnecessary. I checked for a wiki > page on the \definepagecolumns command to get more information on its > accepted inputs, but there doesn't appear to be a page for this command. > > Joey > > On Tue, Apr 28, 2020 at 1:40 PM Joey McCollum > wrote: > >> I am typesetting a document using pagecolumns to ensure that my footnotes >> are set ragged-bottom in columns. I have observed some unexpected behavior >> whenever the last column on a page is left incomplete: a blank page is >> added at the end of the document. A minimal working example follows: >> >> ``` >> >> \starttext >> >> \startpagecolumns[n=2] >> >> \dorecurse{3}{\par\input zapf} >> >> \stoppagecolumns >> >> \stoptext >> ``` >> >> I typeset this using ConTeXt version 2020.03.10, as released with TeXLive >> 2020. Notably, if \dorecurse{3} is changed to \dorecurse{2} or >> \dorecurse{6} (so that the text ends in the first column of a page), then >> there is no problem. I have tried to fix this by specifying page=no in the >> \startpagecolumns arguments, but it did not change anything. Is there >> something else I am missing? >> >> Thank you, >> >> Joey >> > --000000000000a75b6f05a4d6f159 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
After continuing to look into this a bit, I noticed that a= similar issue involving the insertion of a blank page after a columnset en= vironment has been discussed on the mailing list in the thread "Blank = page inserted when text reaches column's end" (dated 08 Dec 2019).= In that thread, a proposed solution was to redefine the=C2=A0\page_grd_sto= p macro found in page-cst.mkiv as follows:

```
\unprotect
\def= \page_grd_stop{%
=C2=A0 \endgraf % needed, else wrong vsize in one par c= ase
=C2=A0 \vfill % otherwise weird \placenotes[endnotes]
=C2=A0 \pag= e_grd_command_set_vsize % needed
=C2=A0 \penalty\c_page_otr_eject_penalt= y
=C2=A0 %\page_grd_command_flush_page
=C2=A0 \page_otr_fill_and_ejec= t_page
=C2=A0 \page_grd_command_set_vsize % why here
=C2=A0 \egroup=C2=A0 \page_otr_command_set_vsize
=C2=A0 \page_otr_command_set_hsize<= br>}
\protect
```

Unfortunately, this approach was found to h= ave potential issues in that thread, and it does not fix the problem with p= agecolumns in my MWE. Are pagecolumns=C2=A0commands aliased to pagegrid com= mands like columnset commands are, or are they defined somewhere else? I ch= ecked=C2=A0page-col.mkiv, but it seems to be too short to be the file that = defines pagecolumns=C2=A0behavior.

Joey

On Sa= t, May 2, 2020 at 11:46 AM Joey McCollum <jmccollum20140511@gmail.com> wrote:
I recently fou= nd the pagecolumns manual (http://www.pragma-ade.com/general/m= anuals/pagecolumns.pdf), and in several of the examples (including thos= e for side floats and footnotes), the addition of a blank page after the en= d of the pagecolumns=C2=A0environment also seems to occur. So when the manu= al says, "We always start at a new page and end on a new one," do= es it mean that this is a feature of pagecolumns? And if so, is there any w= ay to disable it? I have no problem with a page break after the end of the = pagecolumns=C2=A0environment, but an empty page added after the break seems= unnecessary. I checked for a wiki page on the \definepagecolumns command t= o get more information on its accepted inputs, but there doesn't appear= to be a page for this command.

Joey

On Tue, Apr 28= , 2020 at 1:40 PM Joey McCollum <jmccollum20140511@gmail.com> wrote:
I am = typesetting a document using pagecolumns to ensure that my footnotes are se= t ragged-bottom in columns. I have observed some unexpected behavior whenev= er the last column on a page is left incomplete: a blank page is added at t= he end of the document. A minimal working example follows:

```

\starttext

\startpagecolumns[n=3D2]

\dorecurse{3}{\par\input z= apf}

\stoppagecolumns

\stoptext

```

I typeset this using ConTeXt version 2020.03.10, as = released with TeXLive 2020. Notably, if \dorecurse{3} is changed to \dorecu= rse{2} or \dorecurse{6} (so that the text ends in the first column of a pag= e), then there is no problem. I have tried to fix this by specifying page= =3Dno in the \startpagecolumns arguments, but it did not change anything. I= s there something else I am missing?

Thank you,

Joey=C2=A0
--000000000000a75b6f05a4d6f159-- --===============0304269145825881065== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============0304269145825881065==--