From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78262 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: setuphead broken? Date: Thu, 13 Sep 2012 12:27:44 +0200 Message-ID: <37F9EC06-013D-45A6-8DF5-0CC09F24C755@gmail.com> References: <87r4q6rzzt.fsf@devereux.me.uk> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1486\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1347532084 22784 80.91.229.3 (13 Sep 2012 10:28:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Sep 2012 10:28:04 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 13 12:28:06 2012 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 1TC6eL-0007zK-7s for gctc-ntg-context-518@m.gmane.org; Thu, 13 Sep 2012 12:27:57 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2AE9B101F8; Thu, 13 Sep 2012 12:27:53 +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 rqPXvmnHv+97; Thu, 13 Sep 2012 12:27:51 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 05381101E9; Thu, 13 Sep 2012 12:27:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 671FA101E9 for ; Thu, 13 Sep 2012 12:27:49 +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 Xiun15gPDFdQ for ; Thu, 13 Sep 2012 12:27:48 +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 B5281101E7 for ; Thu, 13 Sep 2012 12:27:48 +0200 (CEST) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q8DARlj3010603 for ; Thu, 13 Sep 2012 12:27:47 +0200 Original-Received: by bkcjc3 with SMTP id jc3so467415bkc.14 for ; Thu, 13 Sep 2012 03:27:47 -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=088+8bNQuBHFWUMZChOoBAoLXs56pzquvSaUu82QUic=; b=i0Pb7+VK39c90idl6bxkIu9r2wux/jEp6Z4zEz+68w1zTZKTJ/jGYKdyQpYHzkkFFe 2HLk2ewi4OJnSbi5N/GYnvwux25K+ZFGR1ELhEGSZoD1jluYZOmsiQOaxkw75Q/ZwEc2 m8HAGy2F+WUBOJKq9iJ32xF9bqpmxcJhAusHAWL16oqcP3b4TAsjlaBb04sHWrtL+9ZF CawS4UbKT/tHuciSX5skUQi9ACNedHKyeO57c64eGfZwm6GbdGyXU9MiOfXzFq4IWP3t MzJnfwg+4IjnWn4aSoHAJpHUYvnXQy1NwrSZmtYqc/YKjWDbRU/iuV1zOpFL9Hbd40t5 Qusg== Original-Received: by 10.204.154.85 with SMTP id n21mr679842bkw.48.1347532067014; Thu, 13 Sep 2012 03:27:47 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4d0570e0.pool.mediaWays.net. [77.5.112.224]) by mx.google.com with ESMTPS id g12sm738112bkt.7.2012.09.13.03.27.45 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 13 Sep 2012 03:27:46 -0700 (PDT) In-Reply-To: <87r4q6rzzt.fsf@devereux.me.uk> X-Mailer: Apple Mail (2.1486) 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: 07HWyrLlv - 5374b59fb18c - 20120913 (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:78262 Archived-At: Am 13.09.2012 um 12:14 schrieb John Devereux : > = > Hi, > = > \setuphead seems to be broken for me in recent context (following > upgrade of a ~year-old system). > = > Problem happens when use the command=3D key. > = > An example from the wiki fails, as does my own code. > = > mtx-context | ConTeXt Process Management 0.60 > mtx-context | > mtx-context | main context file: /opt/context/tex/texmf-context/tex/c= ontext/base/context.mkiv > mtx-context | current version: 2012.09.10 00:57 > = > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > = > = > \setuppapersize[A5] > \setupexternalfigures[location=3Ddefault] % needed only for the wiki to t= he find the figure > = > \useexternalfigure[section-1][cow][width=3D5cm,height=3D1cm] > \useexternalfigure[section-2][mill.png][width=3D5cm,height=3D1cm] > = > \setuphead > [section] > [command=3D\MySectionCommand] > \setuphead > [subsection] > [command=3D] > = > \def\MySectionCommand#1#2% > {\externalfigure[section-\currentheadnumber]} Use \define[2]\MySectionCommand{=85} or \unexpanded\def\MySectionCommand#1#= 2{=85}. To get the section number for the figure you have to replace =93\currenthea= dnumber=94 with =93\namedheadnumber{section}=94. Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________