From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82682 Path: news.gmane.org!not-for-mail From: Thomas Friedrich Newsgroups: gmane.comp.tex.context Subject: Chapter-Names and Section-Names in Header don't work as expected Date: Fri, 31 May 2013 15:31:39 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1370007118 31968 80.91.229.3 (31 May 2013 13:31:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 May 2013 13:31:58 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri May 31 15:32:00 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UiPR1-0007wl-T5 for gctc-ntg-context-518@m.gmane.org; Fri, 31 May 2013 15:31:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 85874101EA; Fri, 31 May 2013 15:31:59 +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 aKk7iLhkBoY2; Fri, 31 May 2013 15:31:54 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 005A4101E4; Fri, 31 May 2013 15:31:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D54E2101E4 for ; Fri, 31 May 2013 15:31:52 +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 IvtcmHYKNg34 for ; Fri, 31 May 2013 15:31:51 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id A9305101E0 for ; Fri, 31 May 2013 15:31:41 +0200 (CEST) Original-Received: from mail-ie0-x232.google.com (mail-ie0-x232.google.com [IPv6:2607:f8b0:4001:c03::232]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r4VDVeoP014517 for ; Fri, 31 May 2013 15:31:40 +0200 Original-Received: by mail-ie0-f178.google.com with SMTP id f4so3836761iea.23 for ; Fri, 31 May 2013 06:31:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=i4I6PjuGdRpXHQAilLjcLpY/mSihbIvsrWIaIgfK6zA=; b=x2c16OTgFlWlqD0ydsSE2roeDthz8rrbl6O1Ip81Hj0NtIYqFi3ClOv/kdAXYijM2D CICmmPdSoVWtyBmwJQaYE+hbOea3qxoH2G1B+sUIwKwtyF0bX62LB1T5PQfY7ZNrdWBc 1LJxAh7bOM62uhhJ5z4XoI+N6Ij3BDDNY0bVajmxm9+WY8cPnN4Num56kKIZvYl+AFZd FXGUOI/moFH7OkmI0GEdKDIqGii0mouxYsvZEkmv7ggDY5cFWrR8ESB/G2yhGn10NzmN e7u58koUExkt0UKV/OhhiP4LP+XwQmIO/0ir5VC3ONsrZslOB69seoj9cQAmVKLEyFnc L9Zg== X-Received: by 10.50.25.4 with SMTP id y4mr1631970igf.111.1370007099726; Fri, 31 May 2013 06:31:39 -0700 (PDT) Original-Received: by 10.43.18.8 with HTTP; Fri, 31 May 2013 06:31:39 -0700 (PDT) X-Google-Sender-Auth: C9H0IqgEGW7BDSMRUj-hG464UDM X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4001:c03::232; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07JGBvEJy - 29106c87d1f8 - 20130531 (trained as not-spam) 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:82682 Archived-At: Hello, I would like to put the \chapter and \section names, including their respected numbers, in the header of my document, in small script and separated from the main text by a horizontal line, the width of \textwidth. On uneven pages the chapter-names, on even pages the section names. Reading the manual (4.16 Headers and Footers), I thought this should work: \setuppagenumbering[start=start,alternative=doublesided,location=] \setupheader[][style=small,after=\hrule] \setupheadertexts[section][pagenumber][pagenumber][chapter] Problems: 1) the mark "chapter" does not work. The section title appears but not the chapter title. 2) The chapter-number and the section-number don't appear in the header. 3) \hrule draws a line from the very left to the very right of the page. My Questions: i) What is the "mark-mechanism" that is mentioned in the manual (couldn't find any information about that). ii) Why does chapter not work? iii) \hrule is probably not the best command here? I found the following somewhere in the web: \setupheadertexts[{\tfx\fetchmark[section][first]}][][][{\tfx\fetchmark[chapter][current]}] which gives me indeed the chapter-name. Why "current" instead of "first"? What do I have to add to get the numbers? Thank you for your help! Thomas PS. I am using mkii, I belive, (texexec ...) ___________________________________________________________________________________ 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 ___________________________________________________________________________________