From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73001 Path: news.gmane.org!not-for-mail From: Peter Park Nelson Newsgroups: gmane.comp.tex.context Subject: Columnset error with \setupheader[state=high] Date: Wed, 7 Dec 2011 16:42:02 -0600 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0002212266==" X-Trace: dough.gmane.org 1323297748 20168 80.91.229.12 (7 Dec 2011 22:42:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 7 Dec 2011 22:42:28 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Dec 07 23:42:23 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RYQBz-0000eW-O8 for gctc-ntg-context-518@m.gmane.org; Wed, 07 Dec 2011 23:42:23 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BC600CB144; Wed, 7 Dec 2011 23:42:22 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id O6Sqmw+kBkJC; Wed, 7 Dec 2011 23:42:19 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B45F4CB13B; Wed, 7 Dec 2011 23:42:19 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6B81BCB13B for ; Wed, 7 Dec 2011 23:42:18 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id fLvy6ZFny4iF for ; Wed, 7 Dec 2011 23:42:07 +0100 (CET) Original-Received: from filter4-nij.mf.surf.net (filter4-nij.mf.surf.net [195.169.124.155]) by balder.ntg.nl (Postfix) with ESMTP id 0BA2DCB139 for ; Wed, 7 Dec 2011 23:42:07 +0100 (CET) Original-Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45]) by filter4-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pB7Mg226017972 for ; Wed, 7 Dec 2011 23:42:02 +0100 Original-Received: by wgbds13 with SMTP id ds13so1692130wgb.2 for ; Wed, 07 Dec 2011 14:42:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=/hCaUzjaVWtxpOe24SZrFolnvAprqpPxpQpyotcq09k=; b=IOXS2IhXXByVU5YAYqfDC7k34PiGxikbeffKSMhlFK6wIZoqn+IeydLV+H/mWLPcTK /ZnLQlTK7oPw1uUxt3goDQGFRIUII5I1QCnHInfW1xONjgW3bU3Z1d4OArptBsTdfq4l oADBxta6DGoaDYlD5A4Bm74UsgrGNWu2pRxvg= Original-Received: by 10.180.105.232 with SMTP id gp8mr394803wib.65.1323297722323; Wed, 07 Dec 2011 14:42:02 -0800 (PST) Original-Received: by 10.223.60.206 with HTTP; Wed, 7 Dec 2011 14:42:02 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.45; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04G6mG2ox - 87600c837386 - 20111207 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.155 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:73001 Archived-At: --===============0002212266== Content-Type: multipart/alternative; boundary=f46d044402d0abd31104b388428b --f46d044402d0abd31104b388428b Content-Type: text/plain; charset=ISO-8859-1 Update: I don't have a solution yet, but here is my attempt to figure out where this problem comes from. I may be (probably am) wrong; I am new to ConTeXt and not an expert on its internals. But I'll toss this out to see if anyone is interested. When \startcolumnset is called, it seems to take a "snapshot" of the state of the layout (via setuplayout). However, layout can change, even without \setuplayout being explicitly called again, as in the case of header state=high (which modifies the layout of the first page only). By visual inspection, it looks like the columnset output routine continues to use the page dimensions from the first page on subsequent pages. Since the first page has no header space, height of the text box on the first page will be larger than on subsequent pages. Therefore, applying the first page height on subsequent pages will result in text that runs over the footer area. To see if a new call to \startcolumnset would fix things, I tried to find a way to automatically do \startcolumnset again at the beginning of the second page. A crude hack, using the startpostponing mechanism: \startpostponing[2] % do this block on the second page \unexpanded\stopcolumnset\unexpanded\startcolumnset[name] % manually end the current columnset and then start it again. \stoppostponing This unfortunately results in a blank page after the first page; however, the rest of the pages after that blank page have correct columnsets and footers. So a real solution to this problem could perhaps be done in two different ways -- the difference being where in the ConTeXt code it is implemented: A. The columnset output routine "listens" for changes in the layout state and reloads or adjusts itself when layout state changes; or, B. Any change in layout state passed to the output routine triggers a re-call of the \startcolumnset macro. These are probably oversimplified, but I hope someone who understands the columnset output routine can see what I am trying to get at. -- Peter Park Nelson peter.park.nelson@gmail.com --f46d044402d0abd31104b388428b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Update:

I don't have a solution yet, but here is my attempt to = figure out where this problem comes from. I may be (probably am) wrong; I a= m new to ConTeXt and not an expert on its internals. But I'll toss this= out to see if anyone is interested.

When \startcolumnset is called, it seems to take a "snapshot"= of the state of the layout (via setuplayout). However, layout can change, = even without \setuplayout being explicitly called again, as in the case of = header state=3Dhigh (which modifies the layout of=A0 the first page only). = By visual inspection, it looks like the columnset output routine continues = to use the page dimensions from the first page on subsequent pages. Since t= he first page has no header space, height of the text box on the first page= will be larger than on subsequent pages. Therefore, applying the first pag= e height on subsequent pages will result in text that runs over the footer = area.

To see if a new call to \startcolumnset would fix things, I tried to fi= nd a way to automatically do \startcolumnset again at the beginning of the = second page. A crude hack, using the startpostponing mechanism:

\startpostponing[2] % do this block on the second page
\unexpanded\stopc= olumnset\unexpanded\startcolumnset[name] % manually end the current columns= et and then start it again.
\stoppostponing

This unfortunately re= sults in a blank page after the first page; however, the rest of the pages = after that blank page have correct columnsets and footers.

So a real solution to this problem could perhaps be done in two differe= nt ways -- the difference being where in the ConTeXt code it is implemented= :
A. The columnset output routine "listens" for changes in the= layout state and reloads or adjusts itself when layout state changes; or, =
B. Any change in layout state passed to the output routine triggers a re-ca= ll of the \startcolumnset macro.

These are probably oversimplified,= but I hope someone who understands the columnset output routine can see wh= at I am trying to get at.
--
Peter Park Nelson
= peter.park.nelson@gmail.com
--f46d044402d0abd31104b388428b-- --===============0002212266== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0002212266==--