Re: [NTG-context] Define exercise captions

2009-11-04 Thread Vyatcheslav Yatskovsky
Thank you, Aditya, for help! My further questions: Why after={}or after= does not remove the space between enumeration caption and next paragraph? For example: \defineenumeration[exercise][title=yes, text=Вправа, prefix=yes, prefixset=section, titleleft=, titleright=, after=]

Re: [NTG-context] Define exercise captions

2009-11-04 Thread Aditya Mahajan
On Thu, 5 Nov 2009, Vyatcheslav Yatskovsky wrote: Thank you, Aditya, for help! My further questions: Why after={}or after= does not remove the space between enumeration caption and next paragraph? For example: \defineenumeration[exercise][title=yes, text=Вправа, prefix=yes,

Re: [NTG-context] Define exercise captions

2009-11-04 Thread Vyatcheslav Yatskovsky
Please, disregard my last question about enumeration setup. Now I know more and created definition that works fine for me: \defineenumeration[exercise][title=yes, text=Вправа, prefix=yes, prefixset=section, titleleft=, titleright=, after=, inbetween={\blank[medium]}] The trick is that

Re: [NTG-context] Define exercise captions

2009-11-02 Thread Vyatcheslav Yatskovsky
Hello Aditya, Thanks for help again. However, the result is far from OK. [title=yes, text=Вправа, way=bysection, prefix=yes, width=broad] I use enumeration within subsubsection, namely 1.3.1. If I put prefix=yes, the first exercise is 1.3.1.1. That is, it is numbered within subsubsection,

Re: [NTG-context] Define exercise captions

2009-11-02 Thread Longmin Wang
On Mon, Nov 02, 2009 at 01:31:02PM +0200, Vyatcheslav Yatskovsky wrote: Hello Aditya, Thanks for help again. However, the result is far from OK. [title=yes, text=Вправа, way=bysection, prefix=yes, width=broad] I use enumeration within subsubsection, namely 1.3.1. If I put prefix=yes, the first

Re: [NTG-context] Define exercise captions

2009-11-02 Thread Vyatcheslav Yatskovsky
Hello, I want to be only ExerciseSectionNumber.ExerciseNumber, like 1.1, 1.2, etc. You may try prefixset=section. Thank you, Longmin, for your suggestion, it works! But other problems persist. Hans (or someone else who can fix it), please, look into my minimal example:

Re: [NTG-context] Define exercise captions

2009-11-02 Thread Aditya Mahajan
On Tue, 3 Nov 2009, Vyatcheslav Yatskovsky wrote: Hello, I want to be only ExerciseSectionNumber.ExerciseNumber, like 1.1, 1.2, etc. You may try prefixset=section. Thank you, Longmin, for your suggestion, it works! But other problems persist. Hans (or someone else who can fix it),

Re: [NTG-context] Define exercise captions

2009-11-01 Thread Vyatcheslav Yatskovsky
Hello, I need to define a Exercise command that will enumerate exercises and provide captions. For example, \exercise{Conversion from hex to dec} should produce Exercise 1.1. Conversion from hex to dec. What is the best way to achieve that? Use \definehead or another command?

Re: [NTG-context] Define exercise captions

2009-11-01 Thread Aditya Mahajan
On Sun, 1 Nov 2009, Vyatcheslav Yatskovsky wrote: Hello, I need to define a Exercise command that will enumerate exercises and provide captions. For example, \exercise{Conversion from hex to dec} should produce Exercise 1.1. Conversion from hex to dec. What is the best way

[NTG-context] Define exercise captions

2009-10-31 Thread Vyatcheslav Yatskovsky
Hello, I need to define a Exercise command that will enumerate exercises and provide captions. For example, \exercise{Conversion from hex to dec} should produce Exercise 1.1. Conversion from hex to dec. What is the best way to achieve that? Use \definehead or another command? Best