Re: [NTG-context] Pyramiding \defs

2008-09-20 Thread Holzminister
Thanks a lot!

Cheers,
Eyke


Am Fri, 19 Sep 2008 17:18:02 -0400 (EDT)
schrieb Aditya Mahajan [EMAIL PROTECTED]:

 On Fri, 19 Sep 2008, Holzminister wrote:
 
  Hi!
 
  Can perhaps anyone explain to me why the example works in one case,
  but not in the other?
 
 Grouping. For a simpler example
 
 {\def\moretest{More test}}
 \moretest
 
 will not work. What you need to do is
 
 {\gdef\moretest{More test}}
 \moretest.
 
 Aditya
 
 
  \enableregime[utf-8]
  \mainlanguage [de]
 
  % \def\werte#1{\em [#1]}   % +++ works
  \def\werte#1{{\em [#1]}}   % --- doesn't work
 
  \def\moretest{}
 
  \def\test%
  {
  Testtext
  \def\moretest%
  {
  More Testtext
  }
  }
 
  \starttext
 
  \werte{\test}
 
  \moretest
 
  \stoptext
 
 
  Thanks in advance,
  Eyke
  ___
  If your question is of interest to others as well, please add an
  entry to the Wiki!
 
  maillist : ntg-context@ntg.nl /
  http://www.ntg.nl/mailman/listinfo/ntg-context webpage  :
  http://www.pragma-ade.nl / http://tex.aanhet.net archive  :
  https://foundry.supelec.fr/projects/contextrev/ wiki :
  http://contextgarden.net
  ___
 
 
 
 ___
 If your question is of interest to others as well, please add an
 entry to the Wiki!
 
 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context webpage  :
 http://www.pragma-ade.nl / http://tex.aanhet.net archive  :
 https://foundry.supelec.fr/projects/contextrev/ wiki :
 http://contextgarden.net
 ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Pyramiding \defs

2008-09-19 Thread Holzminister
Hi!

Can perhaps anyone explain to me why the example works in one case, but
not in the other?


\enableregime[utf-8]
\mainlanguage [de]

% \def\werte#1{\em [#1]}   % +++ works
\def\werte#1{{\em [#1]}}   % --- doesn't work

\def\moretest{}

\def\test%
{
Testtext
\def\moretest%
{
More Testtext
}
}

\starttext

\werte{\test}

\moretest

\stoptext


Thanks in advance,
Eyke
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Pyramiding \defs

2008-09-19 Thread Aditya Mahajan
On Fri, 19 Sep 2008, Holzminister wrote:

 Hi!

 Can perhaps anyone explain to me why the example works in one case, but
 not in the other?

Grouping. For a simpler example

{\def\moretest{More test}}
\moretest

will not work. What you need to do is

{\gdef\moretest{More test}}
\moretest.

Aditya


 \enableregime[utf-8]
 \mainlanguage [de]

 % \def\werte#1{\em [#1]}   % +++ works
 \def\werte#1{{\em [#1]}}   % --- doesn't work

 \def\moretest{}

 \def\test%
 {
   Testtext
   \def\moretest%
   {
   More Testtext
   }
 }

 \starttext

 \werte{\test}

 \moretest

 \stoptext


 Thanks in advance,
 Eyke
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!

 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___