From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35526 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: \setupheader: leftstyle & rightstyle Date: Mon, 23 Jul 2007 10:21:12 +0200 Message-ID: <6faad9f00707230121k432619c9oe88c139dca3e6aa1@mail.gmail.com> References: <46A29C6A.2060101@gushee.net> <46A423DC.8040207@havenrock.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1185178898 7508 80.91.229.12 (23 Jul 2007 08:21:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Jul 2007 08:21:38 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 23 10:21:35 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1ICtAZ-0008HD-5h for gctc-ntg-context-518@m.gmane.org; Mon, 23 Jul 2007 10:21:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 731E5201C9; Mon, 23 Jul 2007 10:21:30 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32396-02; Mon, 23 Jul 2007 10:21:22 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2C0C0201C6; Mon, 23 Jul 2007 10:21:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DB405201C6 for ; Mon, 23 Jul 2007 10:21:20 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32154-02-2 for ; Mon, 23 Jul 2007 10:21:18 +0200 (CEST) Original-Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.224]) by ronja.ntg.nl (Postfix) with ESMTP id 5A0E2201B7 for ; Mon, 23 Jul 2007 10:21:18 +0200 (CEST) Original-Received: by wr-out-0506.google.com with SMTP id m59so863786wrm for ; Mon, 23 Jul 2007 01:21:13 -0700 (PDT) Original-Received: by 10.142.154.20 with SMTP id b20mr213752wfe.1185178872425; Mon, 23 Jul 2007 01:21:12 -0700 (PDT) Original-Received: by 10.143.7.3 with HTTP; Mon, 23 Jul 2007 01:21:12 -0700 (PDT) In-Reply-To: <46A423DC.8040207@havenrock.com> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:35526 Archived-At: On 7/23/07, Matt Gushee wrote: > Mojca Miklavec wrote: > > > \setupheadertexts > > [\sc Book Title][] > > [][{\it (\getmarking[chapter][current])}] > > Okay, that seems to work, too. But why use the [current] argument? Are > there conditions where > > \getmarking[chapter] > > doesn't return the current chapter title? Probably not, it's only an optional parameter. You have also [last], [first], ... etc., but [current] is (most probably) the default one. > > However, there seems to be a little bug. This works perfectly well for > > section (\getmarking[section]), but for chapter the chapter labels > > seem to be erased after the first appearance. > > Hmm, that doesn't happen for me. I'm using the 2007-01-23 release of > ConTeXt. Which version are you using? I tested with 2007.04.17, 2007.01.12 and 2007.07.03, but result is the same: Chapter title only appears on the first page and never again. If you replace chapter by section, it works OK. Mojca ------------------------------------ \setuppagenumbering [alternative=doublesided,location=bottom] \setupheadertexts [{\sc Book Title}][] [][{\it (\getmarking[chapter][current])}] \starttext some text \page \chapter{First Chapter} some text \page some text \page some text \page \chapter{Second Chapter} some text \page \chapter{Third Chapter} some text \page some text \stoptext ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________