From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66818 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: header entries semi-wrong Date: Thu, 10 Mar 2011 16:02:08 +0100 Message-ID: References: <159DC991-683B-4900-8694-EBE92E001829@st.estfiles.de> <8B99329E-2DCF-4274-A4DF-68B58D4DD031@st.estfiles.de> <7FAD7009-5193-49C2-98D6-E91FB9BF2C63@st.estfiles.de> <8CAE10F0-0F38-4BF8-B907-1E5EC6ACEAA0@gmail.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: dough.gmane.org 1299769359 12210 80.91.229.12 (10 Mar 2011 15:02:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 Mar 2011 15:02:39 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 10 16:02:35 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PxhNh-0007Av-G3 for gctc-ntg-context-518@m.gmane.org; Thu, 10 Mar 2011 16:02:25 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 019E0CAAD7; Thu, 10 Mar 2011 16:02:25 +0100 (CET) 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 M1Bh0rqLpwsO; Thu, 10 Mar 2011 16:02:22 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C3212CAAC8; Thu, 10 Mar 2011 16:02:21 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B34BECAAC8 for ; Thu, 10 Mar 2011 16:02:20 +0100 (CET) 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 Nvhb1S9Lpt4w for ; Thu, 10 Mar 2011 16:02:15 +0100 (CET) Original-Received: from filter5-ams.mf.surf.net (filter5-ams.mf.surf.net [192.87.102.73]) by balder.ntg.nl (Postfix) with ESMTP id D2B7ECAA9E for ; Thu, 10 Mar 2011 16:02:15 +0100 (CET) Original-Received: from mail-qw0-f41.google.com (mail-qw0-f41.google.com [209.85.216.41]) by filter5-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p2AF293g018128 for ; Thu, 10 Mar 2011 16:02:12 +0100 Original-Received: by qwd7 with SMTP id 7so1703021qwd.14 for ; Thu, 10 Mar 2011 07:02:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=Xnp+VYcYtgf/wAOaS+8IF7Cy3H75UMep2i5vFkkgKzA=; b=SIa9tVUJG+nH2I3f86LUr0zaMH05U7kdRG+Hvjt148hQsS3cSFMl1p22dBdnG2ycPh Ni2etbYr87elwKg3Yc6YQtboQW1BX/mDDhO/LdgetygBDDQbphnAUdnMV4/JiOwyDhsL BSuh2Yio7yLA6MSo2N1njp25/5R+0ELtxXkzo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=jw0Gj2oi4kibPSyRPT76OFPl/56p5H7elVNeVWnpNX02ll7pj/MrGzrY2GtGy6ui02 jfNziwmmF7B54/rd5LGxtHKceimfO8jHZznIP2jY8ZjRiuBBDKje9K3sjPJsBi2LkcNV kJUd5OF4S/YKUJ9YmsIwBqgsTRHxofJDr/B64= Original-Received: by 10.224.10.9 with SMTP id n9mr7157778qan.6.1299769328840; Thu, 10 Mar 2011 07:02:08 -0800 (PST) Original-Received: by 10.229.39.209 with HTTP; Thu, 10 Mar 2011 07:02:08 -0800 (PST) In-Reply-To: <8CAE10F0-0F38-4BF8-B907-1E5EC6ACEAA0@gmail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0BEhr29U0 - eb62560380b9 - 20110310 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.73 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:66818 Archived-At: On Thu, Mar 10, 2011 at 3:59 PM, Wolfgang Schuster wrote: > > Am 10.03.2011 um 15:55 schrieb Steffen Wolfrum: > >> Isn't there a command that gets the number that belongs to the text of "\getmarking[section]" > > \getmarking[sectionnumber] % partnumber, chapternumber etc. > > Wolfgang Right: this works ok. \showframe \setupbodyfont[postscript, 10pt]\setupinterlinespace[line=12pt] \definepapersize[Pape][width=14.7cm,height=22.3cm] \setuppapersize[Pape][Pape] \setuplayout [width=113mm,height=572pt\relax, backspace=17mm,topspace=17mm, header=12pt,headerdistance=6pt, footer=36pt,footerdistance=0pt, location=middle,marking=off] \setupwhitespace[halfline] \setuppagenumbering [alternative=doublesided,location=] \setupheader[align=middle] %\def\HeadL{Part {\convertnumber{Numbers}{\namedheadnumber{chapter}}}\enskip\getmarking[section][first]}%[EbeneEins]} %\def\HeadR{\headnumber[section]\enskip\getmarking[section][first]} \def\HeadL{Part {\convertnumber{Numbers}{\namedheadnumber{chapter}}}\enskip\getmarking[EbeneEins]} \def\HeadR{\getmarking[sectionnumber]\enskip\getmarking[section]} \setupheadertexts [\vtop{\startalignment[center]\HeadR\stopalignment}] [pagenumber] [pagenumber] [\vtop{\startalignment[center]\HeadL\stopalignment}] \starttext \chapter{X} \section{One} \page x \page \dorecurse{5}{\input ward \par} \dorecurse{2}{\input tufte \par} \section{Two} \dorecurse{11}{\input ward \par} \stoptext -- luigi ___________________________________________________________________________________ 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 ___________________________________________________________________________________