From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/13548 Path: main.gmane.org!not-for-mail From: "Pawel Jackowski na Onet" Newsgroups: gmane.comp.tex.context Subject: Re: XML command synonyms Date: Sat, 27 Sep 2003 07:41:30 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <000201c384c6$c9e5d6a0$0500a8c0@best> References: <000f01c38364$947c05b0$0500a8c0@best> <20030925191353.GB603@scaprea> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1064647118 24008 80.91.224.253 (27 Sep 2003 07:18:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 27 Sep 2003 07:18:38 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Sat Sep 27 09:18:36 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 1A39Lg-0000T8-00 for ; Sat, 27 Sep 2003 09:18:36 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id A91E710B04; Sat, 27 Sep 2003 09:18:29 +0200 (MEST) Original-Received: from smtp3.poczta.onet.pl (smtp3.poczta.onet.pl [213.180.130.29]) by ref.ntg.nl (Postfix) with ESMTP id 6452410ABB for ; Sat, 27 Sep 2003 09:12:49 +0200 (MEST) Original-Received: from pa36.debniki.sdi.tpnet.pl ([213.77.147.36]:54276 "HELO best") by ps3.test.onet.pl with SMTP id ; Sat, 27 Sep 2003 09:12:32 +0200 Original-To: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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:13548 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:13548 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}}% > > Works for XMLenvironment. > > Regards, Simon Thanks a lot, but I'm afraid that doesn't work. TeX complains about undefined control sequence: ConTeXt ver: 2002.5.24 fmt: 2003.9.3 int: english mes: english .... ! Undefined control sequence. \letXMLenvironment #1#2->\letvaluevalue {\@@XMLelement:#1/}{\@@XMLelement:#2... l.15 \letXMLenvironment{chapter}{X} ? ! Emergency stop. \letXMLenvironment #1#2->\letvaluevalue {\@@XMLelement:#1/}{\@@XMLelement:#2... l.15 \letXMLenvironment{chapter}{X} End of file on the terminal! Is my ConTeXt to old? Pawe/l