Re: [NTG-context] How to increment a counter

2015-02-07 Thread Wolfgang Schuster
Am 05.02.2015 um 17:19 schrieb Otared Kavian ota...@gmail.com: Hi all, I have a counter in an itemize environment which I need to increment by using \incrementcounter[NameOfTheCounter] However this does not work in the following example, maybe due to the use of blocks, or some

Re: [NTG-context] need defaults for \definehighlight

2015-02-07 Thread Hans Hagen
On 2/7/2015 2:07 AM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, Thinking of present and future documents (maximum flexibility in converting from format to format), I'm moving from the standard {\em text} to something like \definehighlight[emph][style=italic]. Here's the question:

Re: [NTG-context] need defaults for \definehighlight

2015-02-07 Thread Idris Samawi Hamid ادريس سماوي حامد
Hi Hans, On Sat, 07 Feb 2015 05:53:08 -0700, Hans Hagen pra...@wxs.nl wrote: Well, if you talk about automatic injection of commands 'short' is irrelevant and also likely to clash. Ok, fair enough. There is also function auto-completion... Anyway, the problem with predefined highlights is

Re: [NTG-context] need defaults for \definehighlight

2015-02-07 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sat, 07 Feb 2015 12:33:00 -0700, Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu wrote: \definehighlight[extraimportant] [\c!command=\v!no,\c!style=\v!bolditalic] \definehighlight[extraimportant] [\c!command=\v!no,\c!style=\v!smallcaps] %

Re: [NTG-context] How to increment a counter

2015-02-07 Thread Otared Kavian
Hi Wolfgang, Thanks for your answer which solves the problem I encountered. However the block mechanism seems to have some limitations regarding how a certain block is absent (for instance when the whole solution to a problem is absent). In another thread I’ll be more precise regarding what I

[NTG-context] Coupling mechanism: how to use it…

2015-02-07 Thread Otared Kavian
Hi Hans, After struggling to set up a complex structure with \defineblocks in which I wish to have a series of exercises (with a certain number of questions) and hints (some questions have no hints, ans some exercises have no hints), and finally solutions (again some questions have no answers,