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 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, prefixset=sect

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=] \exercise{Ро

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 Exercise., 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 exam

Re: [NTG-context] Define exercise captions

2009-11-02 Thread Vyatcheslav Yatskovsky
Hello, I want to be only Exercise., 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: \defineenumeration[exercise][title=ye

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, th

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, whi

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

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 c

Re: [NTG-context] Define exercise captions

2009-10-31 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 to achieve tha

[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 regards