Re: [NTG-context] Modes and conditional part of the source

2019-03-01 Thread Hans van der Meer
I used \doifmode and friends for selection of mode dependent code. dr. Hans van der Meer > On 1 Mar 2019, at 01:24, Hans Hagen wrote: > > On 2/28/2019 11:29 AM, Procházka Lukáš Ing. wrote: >> Hello, >> I'm struggling with using modes to make a part of the text conditional. >> Here is my

Re: [NTG-context] Modes and conditional part of the source

2019-02-28 Thread Hans Hagen
On 2/28/2019 11:29 AM, Procházka Lukáš Ing. wrote: Hello, I'm struggling with using modes to make a part of the text conditional. Here is my code: \def\b#1{\startmode[#1]} \def\e{\stopmode} % \enablemode[100] % For optional usage \starttext   A   \b{100} % Should be start of some

Re: [NTG-context] Modes and conditional part of the source

2019-02-28 Thread Procházka Lukáš Ing .
Hello Aditya, thanks for the code, I'll try something like that. Best regards, Lukas On Thu, 28 Feb 2019 12:54:06 +0100, Aditya Mahajan wrote: On Thu, 28 Feb 2019, Procházka Lukáš Ing. wrote: Hello, I'm struggling with using modes to make a part of the text conditional. Here is my

Re: [NTG-context] Modes and conditional part of the source

2019-02-28 Thread Aditya Mahajan
On Thu, 28 Feb 2019, Procházka Lukáš Ing. wrote: Hello, I'm struggling with using modes to make a part of the text conditional. Here is my code: \def\b#1{\startmode[#1]} \def\e{\stopmode} % \enablemode[100] % For optional usage \starttext A \b{100} % Should be start of some

[NTG-context] Modes and conditional part of the source

2019-02-28 Thread Procházka Lukáš Ing .
Hello, I'm struggling with using modes to make a part of the text conditional. Here is my code: \def\b#1{\startmode[#1]} \def\e{\stopmode} % \enablemode[100] % For optional usage \starttext A \b{100} % Should be start of some conditional text from here ... B \e % ... to here