At 20:30 29/09/2003 +0200, you wrote:
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}}
in that case: \expandafter\pushmacro\csname...\endcsname \expandafter\popmacro\csname ...\endcsname is nicer since it works nested as well wo maybe we should have: \pushXMLmeaning \popXMLmeaning \def\pushXMLmeaning#1% {\@EA\pushmacro\csname\@@XMLelement:#1/\endcsname \@EA\pushmacro\csname\@@XMLelement:#1\endcsname \@EA\pushmacro\csname\@@XMLelement:/#1\endcsname} \def\popXMLmeaning#1% {\@EA\popmacro\csname\@@XMLelement:#1/\endcsname \@EA\popmacro\csname\@@XMLelement:#1\endcsname \@EA\popmacro\csname\@@XMLelement:/#1\endcsname} Does that suit your needs? Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------