Re: [NTG-context] XML command synonyms

2003-09-29 Thread Simon Pepping
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 [EMAIL PROTECTED]
 
  P: How to define '' 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: [EMAIL PROTECTED]
home page: http://scaprea.hobby.nl

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XML command synonyms

2003-09-27 Thread Hans Hagen
At 07:41 27/09/2003 +0200, you wrote:

From: Simon Pepping [EMAIL PROTECTED]

 P: How to define '' 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?

Hans
-
  Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
  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
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XML command synonyms

2003-09-25 Thread Willi Egger
Hi Pawel

 Is there any way to define XML command synonyms? Assume that one defined

 \deifneXMLenvirnment[subsubsubsubsection]{...}{...}

 How to define '' as a synonym of 'subsubsubsubsection' without
wrtiting
 the same code twice?

Though the following does not yet really work the solution must be looked
for in the following instructions to Context:

\definesection[]
\setupsection[][subsubsubsubsection]  %the section  inherits the
settings of subsubsubsubsection

\definehead[Pawel][section=]

Willi

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XML command synonyms

2003-09-25 Thread Willi Egger
Sorry, apparently I missed part of the message while thinking of a solution.

Willi
- Original Message - 
From: Willi Egger [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 4:41 PM
Subject: Re: [NTG-context] XML command synonyms


 Hi Pawel
 
  Is there any way to define XML command synonyms? Assume that one defined
 
  \deifneXMLenvirnment[subsubsubsubsection]{...}{...}
 
  How to define '' as a synonym of 'subsubsubsubsection' without
 wrtiting
  the same code twice?

 Though the following does not yet really work the solution must be looked
 for in the following instructions to Context:

 \definesection[]
 \setupsection[][subsubsubsubsection]  %the section  inherits the
 settings of subsubsubsubsection

 \definehead[Pawel][section=]

 Willi

 ___
 ntg-context mailing list
 [EMAIL PROTECTED]
 http://www.ntg.nl/mailman/listinfo/ntg-context


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XML command synonyms

2003-09-25 Thread Simon Pepping
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 '' 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: [EMAIL PROTECTED]
home page: http://scaprea.hobby.nl

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context