From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83408 Path: news.gmane.org!not-for-mail From: Thomas Friedrich Newsgroups: gmane.comp.tex.context Subject: Re: Chapter-Names and Section-Names in Header don't work as expected Date: Mon, 15 Jul 2013 12:17:59 +0200 Message-ID: References: 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 1373883518 13600 80.91.229.3 (15 Jul 2013 10:18:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Jul 2013 10:18:38 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 15 12:18:40 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 1UyfrX-0004ph-6G for gctc-ntg-context-518@m.gmane.org; Mon, 15 Jul 2013 12:18:35 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 180C810217; Mon, 15 Jul 2013 12:18:33 +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 T8vWh9l+zTER; Mon, 15 Jul 2013 12:18:22 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id DF6CC10214; Mon, 15 Jul 2013 12:18:21 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7898210214 for ; Mon, 15 Jul 2013 12:18:20 +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 y5IUBjPV+P87 for ; Mon, 15 Jul 2013 12:18:00 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 6565610207 for ; Mon, 15 Jul 2013 12:18:00 +0200 (CEST) Original-Received: from mail-ie0-x22d.google.com (mail-ie0-x22d.google.com [IPv6:2607:f8b0:4001:c03::22d]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r6FAI0Zq003626 for ; Mon, 15 Jul 2013 12:18:00 +0200 Original-Received: by mail-ie0-f173.google.com with SMTP id k13so24996266iea.4 for ; Mon, 15 Jul 2013 03:18:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=PvyuTpjNGuaKGbABJ9WrKyeHh1diJSn1l7k2jK3eu2o=; b=rs43YVRRaOtuwK/F9EImvAjpqRAtI3LQU37TdV48kMX1kiH56/9qPEeb4liMCXXWdA /Et6K+V84S+34q6eYXGKFjkREWXYvubI61+XaHSl+0d+PPLKbwgGKHMB27gitFRqfCvy Tekq9vWYPhwCUDa+6mY31zP0E5Mr+BJzZBQiqT1Tg4c1/LhE4IgtN3TvteI1Hbceh2ze BPJL6XSpqtWZ3azvq8I3qLeXaIwgZO+ziM9TPAUQrIZ0Vs1NxtUSy5gHbQBZtoZfkWVF BHMkwwV1KraZ6O6z2h/KIrTvjzoF5BdlGUY5Ph05PuBI+Z7zoExs31mtAGyfUZJ6qD5b D17w== X-Received: by 10.50.112.105 with SMTP id ip9mr6455517igb.59.1373883479766; Mon, 15 Jul 2013 03:17:59 -0700 (PDT) Original-Received: by 10.42.151.135 with HTTP; Mon, 15 Jul 2013 03:17:59 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: dP_wkzFsFEnnHCmq5z-ATa779Tc X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4001:c03::22d; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VK0yi0yW - 03d0a8be7696 - 20130715 (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:83408 Archived-At: Hello everybody, learning my lesson for asking questions only with a minimal example attached, please have a look at the following code ~~~ snip ~~~ \setuphead[chapter][page=yes,header=empty] \setuppagenumbering[start=start,alternative=doublesided,location=] \setupheader[][style=small] \setupheadertexts[section][pagenumber][pagenumber][chapter] \starttext \chapter{Anfang} \section{Eins} \input knuth \input knuth \input knuth \section{Zwei} \input knuth \input knuth \input knuth \section{Drei} \input knuth \input knuth \input knuth \chapter{Mitte} \section{Eins} \input knuth \input knuth \input knuth \section{Zwei} \input knuth \input knuth \input knuth \section{Drei} \input knuth \input knuth \input knuth \section{Vier} \input knuth \input knuth \input knuth \chapter{Ende} \section{Eins} \input knuth \input knuth \input knuth \section{Zwei} \input knuth \input knuth \input knuth \section{Drei} \input knuth \input knuth \input knuth \stoptext ~~~ snip ~~~ How can I get the chapter number and section number to also appear in the header in front of the respected chapter title and chapter number? I couldn't find the answer in the online documentation. Thank you for your help. Thomas 2013/5/31 Wolfgang Schuster : > > 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 > ___________________________________________________________________________________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________