From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15063 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: marking, headers and 2 columns Date: Wed, 28 Apr 2004 20:14:48 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <6.0.1.1.2.20040428201149.07f98640@server-1> References: <1082457768.4649.20.camel@phoebus.venus.bay> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: sea.gmane.org 1083176867 15223 80.91.224.253 (28 Apr 2004 18:27:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Apr 2004 18:27:47 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Wed Apr 28 20:27:42 2004 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BItmY-0008Qg-00 for ; Wed, 28 Apr 2004 20:27:42 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id A2BFD10B72; Wed, 28 Apr 2004 20:23:46 +0200 (MEST) Original-Received: from mailrelay01.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ref.ntg.nl (Postfix) with ESMTP id DA63D10B6C for ; Wed, 28 Apr 2004 20:20:53 +0200 (MEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id i3SIMxa7029438 for ; Wed, 28 Apr 2004 20:22:59 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 9D0A323818; Wed, 28 Apr 2004 20:24:43 +0200 (CEST) Original-Received: from laptop-3.wxs.nl (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 21A0F23816 for ; Wed, 28 Apr 2004 18:24:41 +0000 (UTC) X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 6.0.1.1 Original-To: ntg-context@ntg.nl In-Reply-To: <1082457768.4649.20.camel@phoebus.venus.bay> Original-References: <1082457768.4649.20.camel@phoebus.venus.bay> X-Virus-Scanned: clamd / ClamAV version devel-20040415, clamav-milter version 0.70i Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:15063 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15063 At 12:42 20/04/2004, you wrote: >Dear readers of this list, >I would like to typeset a bible-text with ConTeXt. The header should >print the first and the last verse on that particular page. I used the >commands \marking to mark the verses and \getmarking to setup the >headers as shown in the excerpt below. This works correctly with a >single column layout, but not in a two column layout. The last verse >printed in the headers is not the correct one, the first or the second >on the following page is given. >Is there a work around for this problem? Many thanks in advance for >helpful hints i knew it was coming one day .... add this to cont-new.tex: \unprotect \letvalue{\??mk\??mk\v!kolom:\v!eerste }\getsplitfirstmark \letvalue{\??mk\??mk\v!kolom:\v!laatste}\getsplitbottommark \protect then this should work (unbalanced only, and not yet in columnsets) \definemarking[vers][] \setupheadertexts[{\getmarking[vers][first] -- \getmarking[vers][column:last]}] \starttext \startcolumns[n=2,balance=no] \dorecurse{10}{\expanded{\marking[vers]{\recurselevel}} \recurselevel:\dorecurse{4}{\input ward } \endgraf} \stopcolumns \stoptext The following definition is nicer: \setupheadertexts [\doiftext{\getmarking[vers][first]} {\doiftextelse{\getmarking[vers][column:last]} {\getmarking[vers][first] -- \getmarking[vers][column:last]} {\getmarking[vers][first]}}]