[NTG-context] conditionals and font switches

2007-12-25 Thread Idris Samawi Hamid
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 invoked def3 takes effect when \bf 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