Re: [NTG-context] Conditionals

2012-09-28 Thread Rogers, Michael K
On Sep 28, 2012, at 8:31 PM, Troy Henderson thend...@gmail.com wrote: I have a list of numbers, 2, 6, 7, 8, 12, 14, 18, 20, 186, 188, 316, 318, 354, 372, 376 that I would like to use as exceptions in a \dostepwiserecurse loop. That is, within the loop if \recurselevel is NOT EQUAL to

Re: [NTG-context] Conditionals

2012-09-28 Thread Troy Henderson
\starttext \dorecurse{400} {\doifnotinset{\recurselevel}{2, 6, 7, 8, 12, 14, 18, 20, 186, 188, 316, 318, 354, 372, 376} {\recurselevel, }} \stoptext Thanks. That worked perfectly! Troy ___ If your question is

Re: [NTG-context] conditionals and font switches

2007-12-25 Thread Idris Samawi Hamid
On Tue, 25 Dec 2007 12:21:18 -0700, Wolfgang Schuster [EMAIL PROTECTED] wrote: You could modify the following macro from font-ini. \def\fontstylesuffix {\ifx\fontalternative\c!tf \s!Regular \else \ifx\fontalternative\c!bf\s!Bold \else \ifx\fontalternative\c!sl

Re: [NTG-context] conditionals and font switches

2007-12-25 Thread Wolfgang Schuster
On Tue, 25 Dec 2007 11:25:18 -0700 Idris Samawi Hamid [EMAIL PROTECTED] wrote: Dear gang, Consider a control sequence \MyCS. It has three possible definitions: \def\MyCS{def1}, \def\MyCS{def2}, \def\MyCS{def3} What I would like is to define \MyCS once such that def1 takes effect when

Re: [NTG-context] conditionals and font switches

2007-12-25 Thread Idris Samawi Hamid
On Tue, 25 Dec 2007 12:21:18 -0700, Wolfgang Schuster [EMAIL PROTECTED] wrote: You could modify the following macro from font-ini. \def\fontstylesuffix {\ifx\fontalternative\c!tf \s!Regular \else \ifx\fontalternative\c!bf\s!Bold \else \ifx\fontalternative\c!sl

Re: [NTG-context] conditionals and font switches

2007-12-25 Thread Peter Rolf
Idris Samawi Hamid schrieb: Dear gang, Consider a control sequence \MyCS. It has three possible definitions: \def\MyCS{def1}, \def\MyCS{def2}, \def\MyCS{def3} What I would like is to define \MyCS once such that def1 takes effect when \tf is invoked def2 takes effect when \it is