ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Longmin Wang <longminwang@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: Define exercise captions
Date: Mon, 2 Nov 2009 22:30:20 +0800	[thread overview]
Message-ID: <20091102143020.GB4039@thinkpad> (raw)
In-Reply-To: <4AEEC2F6.9090009@gmail.com>

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 exercise is 1.3.1.1. That is, it is numbered 
>within subsubsection, while I want to be only 
><SectionNumber>.<ExerciseNumber>, like 1.1, 1.2, etc.

You may try prefixset=section. 

>
>I suspected that [way=bysection] key does the job but it does nothing in 
>this case.
>
>And another major issue is: why the text is put in the frame and is 
>either a few centimenters wide (without width=broad) or goes out of the 
>page (with width=broad)? I need just ordinary paragraph.
>
>>> Please, try
>>>
>>> \starttext
>>> \defineenumeration[exercise][title=yes, text=Вправа, way=bysection, 
>>> width=broad]
>>>
>>> \exercise{Розрахунок кривої, яка з'єднує три точки на площині}
>>> \stoptext
>>>
>>>
>>> The "Вправа" is putted twice, next time inside some strange brackets. 
>>> The text gets out of the page.
>>
>> Looks like a bug in mkiv. Hans, text need to be handled differently in 
>> descriptions and enumerations.
>>
>>> How to setup so that numeration will be done by subsection (1.1, 1.2, 
>>> etc.)?
>>
>> prefix=yes,
>
>Thanks, Vyatcheslav
>___________________________________________________________________________________
>If your question is of interest to others as well, please add an entry to the Wiki!
>
>maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
>webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
>archive  : http://foundry.supelec.fr/projects/contextrev/
>wiki     : http://contextgarden.net
>___________________________________________________________________________________

-- 
Longmin Wang <longminwang@gmail.com>
Math. Dept., Nankai Univ., China
http://math.nankai.edu.cn/~wanglm/
GnuPG-Key ID: 1024D/2A5CFA5C
Fingerprint: 8587 1246 3AAD C185 D419  ADF1 B620 D8B8 2A5C FA5C
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2009-11-02 14:30 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.209.1257146344.22155.ntg-context@ntg.nl>
2009-11-02 11:31 ` Vyatcheslav Yatskovsky
2009-11-02 14:30   ` Longmin Wang [this message]
     [not found] <mailman.266.1257343765.22155.ntg-context@ntg.nl>
2009-11-04 23:53 ` Vyatcheslav Yatskovsky
     [not found] <mailman.204.1257107753.22155.ntg-context@ntg.nl>
2009-11-04 22:36 ` Vyatcheslav Yatskovsky
2009-11-04 23:34   ` Aditya Mahajan
     [not found] <mailman.226.1257181202.22155.ntg-context@ntg.nl>
2009-11-02 23:13 ` Vyatcheslav Yatskovsky
2009-11-03  6:43   ` Aditya Mahajan
     [not found] <mailman.187.1257061183.22155.ntg-context@ntg.nl>
2009-11-01 12:51 ` Vyatcheslav Yatskovsky
2009-11-01 23:51   ` Aditya Mahajan
     [not found] <mailman.183.1257007130.22155.ntg-context@ntg.nl>
2009-11-01  0:34 ` Vyatcheslav Yatskovsky
2009-11-01  1:34   ` Aditya Mahajan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091102143020.GB4039@thinkpad \
    --to=longminwang@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).