From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82689 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Chapter-Names and Section-Names in Header don't work as expected Date: Fri, 31 May 2013 17:35:30 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1370014548 19340 80.91.229.3 (31 May 2013 15:35:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 May 2013 15:35:48 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri May 31 17:35:49 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 1UiRMq-0000NB-9d for gctc-ntg-context-518@m.gmane.org; Fri, 31 May 2013 17:35:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AAD39101E7; Fri, 31 May 2013 17:35:47 +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 8qTROVBDG8ae; Fri, 31 May 2013 17:35:45 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id A2B02101E4; Fri, 31 May 2013 17:35:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8133D101E4 for ; Fri, 31 May 2013 17:35:44 +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 O+t8+fDkndY5 for ; Fri, 31 May 2013 17:35:42 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id D8872101E0 for ; Fri, 31 May 2013 17:35:32 +0200 (CEST) Original-Received: from mail-ea0-x22f.google.com (mail-ea0-x22f.google.com [IPv6:2a00:1450:4013:c01::22f]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r4VFZWQW006856 for ; Fri, 31 May 2013 17:35:32 +0200 Original-Received: by mail-ea0-f175.google.com with SMTP id h14so1783021eaj.6 for ; Fri, 31 May 2013 08:35:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=HLzUYlk7ekLdzU1q9YuVH24yxcFMBNoQJebRo7ANbdo=; b=THo3xxNzPmpYRQyBWsL962RgdA4q2ErJ/o6WBQgfFg58GZ0WIRRDoe2hY9YDuvAW// azFLN73TbcvmSVJvLMzNIbTPFFHhRceIcreeuTTy60Sdx5/eq6ogXSnysNqNoVp5eFie qiopBAHiw/ycmsL2LZeAKN4TEoR4HDR7en5f1OiyN7lPCLEXkimvVE3oaLry5FIFjetN rc+a/QS2W48W6WvSv1gnnovHO0TpUpQiQrsaEjAwCjMDvlwEEHrzrxcrgmWi9mLKYDCn m6MFrf5bfgB1PxaU9BQskcCM3UmMYWBpQyf8n/YbYNAAwh9T8DlgwcqmFv5jdSVE42Pr BF4Q== X-Received: by 10.15.43.203 with SMTP id x51mr8068803eev.144.1370014532003; Fri, 31 May 2013 08:35:32 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4dbe51e5.pool.mediaWays.net. [77.190.81.229]) by mx.google.com with ESMTPSA id g7sm68030969eew.15.2013.05.31.08.35.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 May 2013 08:35:31 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1503) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c01::22f; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06JGDzwUd - 6c74a1d8a83a - 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:82689 Archived-At: Am 31.05.2013 um 15:31 schrieb Thomas Friedrich : > 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? It does help when you can show us a minimal example for your document. Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________