Re: [NTG-context] Problem with macro with optional parameter

2017-06-27 Thread Jaroslav Hajtmar
Thanx Henri for answer. Maybe I have been explaining wrong my problem. I would need a variant without a parameter and concurrently without braces. Command without braces swallows the break of the paragraph. \def\Command#1% {\expdoifelse{#1}{}{100}{#1}} \starttext 1. \Command{5} % OK 2. \Com

Re: [NTG-context] Problem with macro with optional parameter

2017-06-27 Thread Henri Menke
On Tue, 2017-06-27 at 08:58 +, Jaroslav Hajtmar wrote: > Hello ConTeXist. > I'm not able to solve a macros problem with one optional argument. I need the > macro to return a > value that can be used as a dorecurse loop parameter. > Is there possibility create macro with optional parameter and

[NTG-context] Problem with macro with optional parameter

2017-06-27 Thread Jaroslav Hajtmar
Hello ConTeXist. I'm not able to solve a macros problem with one optional argument. I need the macro to return a value that can be used as a dorecurse loop parameter. Is there possibility create macro with optional parameter and parameter is concurrently inside in braces? (in nonsquare brackets)?