From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/13606 Path: main.gmane.org!not-for-mail From: Simon Pepping Newsgroups: gmane.comp.tex.context Subject: Re: XML command synonyms Date: Mon, 29 Sep 2003 20:30:39 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <20030929183039.GA610@scaprea> References: <000f01c38364$947c05b0$0500a8c0@best> <20030925191353.GB603@scaprea> <5.2.0.9.1.20030927121550.01b54f30@server-1> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1064860997 13402 80.91.224.253 (29 Sep 2003 18:43:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 Sep 2003 18:43:17 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Mon Sep 29 20:43:15 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A42zL-000166-00 for ; Mon, 29 Sep 2003 20:43:15 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 3325810B25; Mon, 29 Sep 2003 20:43:11 +0200 (MEST) Original-Received: from hgatenl.hobby.nl (ns.hobby.nl [212.72.224.8]) by ref.ntg.nl (Postfix) with ESMTP id 9BDEC10B04 for ; Mon, 29 Sep 2003 20:36:53 +0200 (MEST) Original-Received: from hgatenl.hobby.nl (localhost [127.0.0.1]) by hgatenl.hobby.nl (8.12.9/8.12.9) with ESMTP id h8TIalPo000755 for ; Mon, 29 Sep 2003 20:36:47 +0200 (CEST) (envelope-from spepping@scaprea.hobby.nl) Original-Received: (from uucp@localhost) by hgatenl.hobby.nl (8.12.9/8.12.9/Submit) with UUCP id h8TIalp8000754 for ntg-context@ntg.nl; Mon, 29 Sep 2003 20:36:47 +0200 (CEST) Original-Received: from simon by scaprea.salix.nl with local (Exim 3.35 #1 (Debian)) id 1A42n9-0000jI-00; Mon, 29 Sep 2003 20:30:39 +0200 Original-To: ntg-context@ntg.nl Mail-Followup-To: ntg-context@ntg.nl Content-Disposition: inline In-Reply-To: <5.2.0.9.1.20030927121550.01b54f30@server-1> User-Agent: Mutt/1.3.28i X-Virus-Scanned: by amavisd-new Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:13606 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:13606 On Sat, Sep 27, 2003 at 12:18:21PM +0200, Hans Hagen wrote: > At 07:41 27/09/2003 +0200, you wrote: > > >From: "Simon Pepping" > > > >> >P: How to define 'SSSS' as a synonym of 'subsubsubsubsection' without > >wrtiting > >> >P: the same code twice? > >> > >> From DocbookInContext: > >> > >> %D A \type{\let} for XML environments > >> \def\letXMLenvironment#1#2% > >> {\letvaluevalue{\@@XMLelement:#1/}{\@@XMLelement:#2/}% > >> \letvaluevalue{\@@XMLelement:#1}{\@@XMLelement:#2}% > >> \letvaluevalue{\@@XMLelement:/#1}{\@@XMLelement:/#2}}% > > > \letcsnamecsname\csname\@@XMLelement:#1\endcsname\csname\@@XMLelement:#2\endcsname > > etc, but before you enter that track, what exactly do you want? I use it in the same way as let, but for XML environments. For example, store the current value \letXMLenvironment{origindexterm}{indexterm}% redefine XML environment indexterm, do some work, restore the old value \letXMLenvironment{indexterm}{origindexterm}} Regards, Simon -- Simon Pepping email: spepping@scaprea.hobby.nl home page: http://scaprea.hobby.nl