From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84076 Path: news.gmane.org!not-for-mail From: Michael Scholtz Newsgroups: gmane.comp.tex.context Subject: Setting `before` option of chapter breaks header text Date: Tue, 3 Sep 2013 16:02:47 +0200 Message-ID: <89A80267-412F-4F53-9EF3-7EC771A1C6A8@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1378216983 28789 80.91.229.3 (3 Sep 2013 14:03:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Sep 2013 14:03:03 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 03 16:03:07 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VGrC8-0000pc-4A for gctc-ntg-context-518@m.gmane.org; Tue, 03 Sep 2013 16:03:00 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A8F2C101DE; Tue, 3 Sep 2013 16:01:29 +0200 (CEST) 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 5W9Qk-fHx9dj; Tue, 3 Sep 2013 16:01:28 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id EB42010203; Tue, 3 Sep 2013 16:01:27 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A235510203 for ; Tue, 3 Sep 2013 16:01:26 +0200 (CEST) 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 iL0RLDgJ0oiS for ; Tue, 3 Sep 2013 16:01:22 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id EEA23101DE for ; Tue, 3 Sep 2013 16:01:21 +0200 (CEST) Original-Received: from mail-bk0-x22f.google.com (mail-bk0-x22f.google.com [IPv6:2a00:1450:4008:c01::22f]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r83E3jgj020047 for ; Tue, 3 Sep 2013 16:03:45 +0200 Original-Received: by mail-bk0-f47.google.com with SMTP id mx12so2143245bkb.34 for ; Tue, 03 Sep 2013 07:02:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; bh=9/0OEF6riqoxjLhr9WNBha8G4yfOLSNd55Wvo3NG7Ms=; b=Ws0xwAx2dk+PAcArAtYWk7Y1mmjrwSmCM50iI3tX3diSPEmJX6aezBMLjn1PSTd1ca rgbUUPZWRntmBQnQ9p2pGRiQD2spjLz0mgQZQERa9Q2UP57IzQmKGOqB2BTroFG8938a DLZoqHht0Ae7iMrI8dzvMiBFZ+wneRuTsgbF8YzTUv1fe5qMQTHTiYHCNxVHOgn3UULU Ha1o8BXyXxFVnbsWu8UvkXPAczA8dvN2uRYY5YoIQt3c/ZGYCsbTzsZBmKQU5Pfhnnph vWPq73sPekoJFhNprpXHdp2S4tFLtY9y7GChsiDuxu8dy/TqjWR0V3ObCl222jckawrx F5JA== X-Received: by 10.204.62.132 with SMTP id x4mr21990631bkh.22.1378216970464; Tue, 03 Sep 2013 07:02:50 -0700 (PDT) Original-Received: from camo146-230.hrz.tu-chemnitz.de (camo146-230.hrz.tu-chemnitz.de. [134.109.146.230]) by mx.google.com with ESMTPSA id w9sm4715837bkn.12.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Sep 2013 07:02:48 -0700 (PDT) X-Mailer: Apple Mail (2.1508) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4008:c01::22f; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01KkC3JiL - 553d7920a474 - 20130903 X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:84076 Archived-At: If chapter titles are styled using the `before` option, the header texts on each first page of the documents (body|back|appendix)part are incorrect, because chapter name and number are empty. (Tested with ConTeXt version 2013.05.28 00:36 and 2013.09.03 10:22) Is this a bug? (If not, is there any other way to set `before` without breaking the headers?) Here an example: \setuphead[chapter][ before=\hairline\blank, %<<< headers work, if this line is removed after=\nowhitespace\hairline, ] \setuppagenumbering[location=] % clear page numbers \startsectionblockenvironment[frontpart] \setupheadertexts[chapter][pagenumber] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \setupheadertexts[{Chapter \getmarking[chapternumber]: \getmarking[chapter]}][pagenumber] \stopsectionblockenvironment \startsectionblockenvironment[backpart] \setupheadertexts[chapter][pagenumber] \stopsectionblockenvironment \startsectionblockenvironment[appendix] \setupheadertexts[{Appendix \getmarking[chapternumber]: \getmarking[chapter]}][pagenumber] \stopsectionblockenvironment \starttext \startfrontmatter \chapter{Front One} Here the header is correct. \chapter{Front Two} \stopfrontmatter \startbodymatter \chapter{Body One} Incorrect header on this page. \page[yes] Here the header is correct. \chapter{Body Two} \stopbodymatter \startbackmatter \chapter{Back One} Incorrect (none) header on this page. \chapter{Back Two} \stopbackmatter \startappendices \chapter{Appedix One} Incorrect header on this page. \chapter{Appedix Two} \stopappendices \stoptext Regards, Michael ___________________________________________________________________________________ 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 ___________________________________________________________________________________