From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15845 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Disappearing headers Date: Wed, 28 Jul 2004 10:54:37 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <410769CD.1050008@wxs.nl> References: <20040723225511.GD11496@swordfish> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1091005010 29828 80.91.224.253 (28 Jul 2004 08:56:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Jul 2004 08:56:50 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 28 10:56:36 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BpkEm-0000Zm-00 for ; Wed, 28 Jul 2004 10:56:36 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AB4AA12775; Wed, 28 Jul 2004 10:56:35 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16315-01; Wed, 28 Jul 2004 10:56:35 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D5E011276B; Wed, 28 Jul 2004 10:54:50 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D91001276B for ; Wed, 28 Jul 2004 10:54:49 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 15921-07 for ; Wed, 28 Jul 2004 10:54:49 +0200 (CEST) Original-Received: from mailrelay02.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 26BAB126F8 for ; Wed, 28 Jul 2004 10:54:49 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay02.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id i6S8sbPL027682; Wed, 28 Jul 2004 10:54:39 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id DE6B71ACAF; Wed, 28 Jul 2004 10:54:38 +0200 (CEST) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 791E417B1A; Wed, 28 Jul 2004 08:54:37 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en Original-To: Matt Gushee , mailing list for ConTeXt users In-Reply-To: <20040723225511.GD11496@swordfish> X-Virus-Scanned: clamd / ClamAV version 0.75, clamav-milter version 0.75 on mailrelay02 X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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 X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:15845 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15845 Matt Gushee wrote: >Hello, all-- > >I am trying to format a book such that the book title appears in the >header of each left-hand page, and the chapter title appears in the >header of each right-hand page. I think (though I haven't decided for >sure) that I want each chapter to start on a right-hand page. It seems >that, when chapters are forced to begin on right-hand pages, the book >title fails to appear on the first blank page inserted to move the >chapter start, and on all subsequent pages. > >Here are the commands I am using related to headers: > > \setuphead [title] > [align=left,textstyle={\switchtobodyfont[BernhardModern]\bf}] > \setuphead [chapter] > [page=right,head=nomarking,after=\blank] > \setuppagenumbering [alternative=doublesided,location=margin] > \setupheader [style=\it] > \setupheadertexts [] [chapter] [title] [] > % reverse order, as mentioned in my earlier post > > i need a small doc with dummy text to see the effect -) >With all these commands enabled, I get the effect I want: chapters begin >on righthand pages, the title and chapter title appear, respectively, in >the left and right page headers (adjacent to the page numbers, with the >page numbers toward the outside edge of the page). But, as I said, the >book title stops appearing as soon as a blank page is inserted to move >the chapter start to the right. > > those things are related to when marks are set/reset; tricky sync stuff how about playing a bit with \definetext \starttext \setuphead [chapter] [page=right,header=chapter] \setuphead [title] [page=right,header=] \setuppagenumbering [alternative=doublesided,location=margin] \definetext[chapter][header][title][] \setupheadertexts[title][chapter] \title{title 1} test \page test \chapter{chapter 1} test \page test \title{title 2} test \page test \chapter{chapter 2} test \page test \title{title 3} test \page test \chapter{chapter 3} test \page test \stoptext >If I comment out *both* the \setuphead [chapter] command and the >\setuppagenumbering command, the title continues to be displayed >throughout the text. If I enable either of the two, the title disappears >again. By the way, it appears that this \setuppagenumbering command has >a side-effect of forcing chapters to begin on the right. Is that really >a good idea? It's certainly surprising to me. > > The default settings are: \setuphead[chapter][page=right] when you change this to \setuphead[chapter][page=yes] you get what you want Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------