From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/13513 Path: main.gmane.org!not-for-mail From: Simon Pepping Newsgroups: gmane.comp.tex.context Subject: Re: XML command synonyms Date: Thu, 25 Sep 2003 21:13:53 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <20030925191353.GB603@scaprea> References: <000f01c38364$947c05b0$0500a8c0@best> 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 1064517655 26993 80.91.224.253 (25 Sep 2003 19:20:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 Sep 2003 19:20:55 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Thu Sep 25 21:20:54 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 1A2bfZ-0008FZ-00 for ; Thu, 25 Sep 2003 21:20:54 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 9BE2210ACC; Thu, 25 Sep 2003 21:20:51 +0200 (MEST) Original-Received: from hgatenl.hobby.nl (ns.hobby.nl [212.72.224.8]) by ref.ntg.nl (Postfix) with ESMTP id 1682C10ABB for ; Thu, 25 Sep 2003 21:14:34 +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 h8PJEMAB077756 for ; Thu, 25 Sep 2003 21:14:22 +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 h8PJELwx077754 for ntg-context@ntg.nl; Thu, 25 Sep 2003 21:14:21 +0200 (CEST) Original-Received: from simon by scaprea.salix.nl with local (Exim 3.35 #1 (Debian)) id 1A2bYn-0000Qc-00; Thu, 25 Sep 2003 21:13:53 +0200 Original-To: ntg-context@ntg.nl Mail-Followup-To: ntg-context@ntg.nl Content-Disposition: inline In-Reply-To: <000f01c38364$947c05b0$0500a8c0@best> 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:13513 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:13513 On Thu, Sep 25, 2003 at 02:57:17PM +0200, Pawel Jackowski na Onet wrote: > Hi all! > > Is there any way to define XML command synonyms? Assume that one defined > > \deifneXMLenvirnment[subsubsubsubsection] {.......} {.......} > > How to define 'SSSS' as a synonym of 'subsubsubsubsection' without wrtiting > 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}}% Works for XMLenvironment. Regards, Simon -- Simon Pepping email: spepping@scaprea.hobby.nl home page: http://scaprea.hobby.nl