From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68796 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Modifying the header of a Register : \setuphead or \setupregister not working Date: Fri, 27 May 2011 20:46:01 +0200 Message-ID: <73C1E170-C4E4-4C02-AC81-E6BE2C1BE86C@googlemail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: multipart/mixed; boundary="===============0034797884==" X-Trace: dough.gmane.org 1306522002 4381 80.91.229.12 (27 May 2011 18:46:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 May 2011 18:46:42 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri May 27 20:46:37 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 1QQ23R-000605-Ou for gctc-ntg-context-518@m.gmane.org; Fri, 27 May 2011 20:46:37 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8883DCAD99; Fri, 27 May 2011 20:46:36 +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 VkXPFofwOwaO; Fri, 27 May 2011 20:46:33 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D04EACAD93; Fri, 27 May 2011 20:46:33 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BCBBBCAD93 for ; Fri, 27 May 2011 20:46:32 +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 2SzbWCKuSxEW for ; Fri, 27 May 2011 20:46:07 +0200 (CEST) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id B723DCAD91 for ; Fri, 27 May 2011 20:46:07 +0200 (CEST) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter3-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p4RIk6vY002123 for ; Fri, 27 May 2011 20:46:06 +0200 Original-Received: by bwz17 with SMTP id 17so2289591bwz.14 for ; Fri, 27 May 2011 11:46:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:from:mime-version:content-type:subject:date :in-reply-to:to:references:message-id:x-mailer; bh=VJQLvCTTl/G7lb8LZ2Z+KILO5xXZpZE+dzftUw5L82c=; b=EfAWCYq9ipEgyG/WDe+UFtdE/ncWm2VAJOGpqEvMxq4E75Sfz1X/xfZZVMoDA9Hi9g TiO6LOqBW4FXFjVhcxKSB3GcbDhIDycS8B8CXJiJ5Lz4rSZ9jGt4a9+9/SPktOuQOQC3 8rsEhPM5ZWLUexfNYK5RXfip+6r6/1Z/ypHJw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer; b=jQYwoEJohRWPYVTQYJrscLyBmyVlU+knxAdhZFdNeF5y8yqdETTm0idUAizfK5Ieto sPiOEej8DPVmvJV4x6wCSNzi37DPR4eoHrDMGWsdDWyKPZCy4EyEAPSmJbis/oFfhix0 yMEGk8cL9AcGMjrT2oYf/QaYNrT/or5qfW+Ko= Original-Received: by 10.204.19.18 with SMTP id y18mr2020414bka.179.1306521965719; Fri, 27 May 2011 11:46:05 -0700 (PDT) Original-Received: from [192.168.2.34] (p5B294C59.dip.t-dialin.net [91.41.76.89]) by mx.google.com with ESMTPS id af13sm1473517bkc.7.2011.05.27.11.46.03 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 May 2011 11:46:04 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.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: 0dEMGK6W0 - 5c4686aa0977 - 20110527 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:68796 Archived-At: --===============0034797884== Content-Type: multipart/alternative; boundary=Apple-Mail-34--350236123 --Apple-Mail-34--350236123 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Am 27.05.2011 um 20:32 schrieb Mathieu DUPONT: >=20 > Hi, >=20 > How can one modify the header of a Register, after it apparently = inherited from Chapter ? > In the following example, I try to have the title "INDEX" at the same = height as the title "CHAPTER", > but neither the \setuphead nor \setupregister commands seem to do = anything. > Is there another command for that ? > I couldn't find it. >=20 > Thanks for help ! >=20 >=20 > \setupinteraction[state=3Dstart] >=20 > \setuplabeltext[chapter=3DCHAPITRE~] > \setuphead[chapter][ > align=3Dmiddle, > before=3D{\crlf\blank[1cm-4.2ex]}, > style=3D{\blank[2cm]}, > after=3D{\blank[3cm]}, > header=3Dempty, > ] \setuphead [chapter] [alternative=3Dmiddle, before=3D{\blank[force,1cm]}, numbercommand=3D\groupedcommand{}{\blank[2cm]}, after=3D{\blank[3cm]}, header=3Dempty] > \defineregister[MyIndex][MyIndexs] > \setupheadtext[MyIndex=3DINDEX] >=20 > \setupregister[MyIndex][{\blank[0cm]}] %% not working > \setuphead[register][{\blank[0cm]}] %% not working Invalid setup, the second argument expects assignments. Wolfgang --Apple-Mail-34--350236123 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
Am 27.05.2011 um 20:32 schrieb = Mathieu DUPONT:


Hi,

How= can one modify the header of a Register, after it apparently inherited = from Chapter ?
In the following example, I try to have the = title "INDEX" at the same height as the title "CHAPTER",
but = neither the \setuphead nor \setupregister commands seem to do = anything.
Is there another command for that ?
I = couldn't find it.

Thanks for help = !


\setupinteraction[state=3Ds= tart]

\setuplabeltext[chapter=3DCHAPITRE~]
<= div>\setuphead[chapter][
align=3Dmiddle,
= before=3D{\crlf\blank[1cm-4.2ex]},
= style=3D{\blank[2cm]},
= after=3D{\blank[3cm]},
header=3Dempty,
= ]

<= div>\setuphead
  [chapter]
  [alte= rnative=3Dmiddle,
   = before=3D{\blank[force,1cm]},
   = numbercommand=3D\groupedcommand{}{\blank[2cm]},
   = after=3D{\blank[3cm]},
   = header=3Dempty]

\defineregister[MyIndex][MyIndexs]
\setupheadtext[My= Index=3DINDEX]

\setupregister[MyIndex][{\blank[0c= m]}]  %% not working
\setuphead[register][{\blank[0cm]}] =  %% not = working

Invalid setup, the = second argument expects = assignments.

Wolfgang


= --Apple-Mail-34--350236123-- --===============0034797884== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0034797884==--