ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Pyramiding \defs
@ 2008-09-19 19:49 Holzminister
  2008-09-19 21:18 ` Aditya Mahajan
  0 siblings, 1 reply; 3+ messages in thread
From: Holzminister @ 2008-09-19 19:49 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Pyramiding \defs
  2008-09-19 19:49 Pyramiding \defs Holzminister
@ 2008-09-19 21:18 ` Aditya Mahajan
  2008-09-20 12:28   ` Holzminister
  0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2008-09-19 21:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Pyramiding \defs
  2008-09-19 21:18 ` Aditya Mahajan
@ 2008-09-20 12:28   ` Holzminister
  0 siblings, 0 replies; 3+ messages in thread
From: Holzminister @ 2008-09-20 12:28 UTC (permalink / raw)
  To: ntg-context

Thanks a lot!

Cheers,
Eyke


Am Fri, 19 Sep 2008 17:18:02 -0400 (EDT)
schrieb Aditya Mahajan <adityam@umich.edu>:

> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-09-20 12:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-19 19:49 Pyramiding \defs Holzminister
2008-09-19 21:18 ` Aditya Mahajan
2008-09-20 12:28   ` Holzminister

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).