Dear list,

I am trying to use enumerations with MKIV I am a bit at a loss when it comes to 
the documentation (see below for a few issues).

Working on a concrete example, I have come pretty close to what I want for my 
enumeration ‘theorem’:

\setupexternalfigures[location=default]
\setupenumerations[
        alternative=left,
        text=Theorem,
        headstyle=bold,
        title=no,
        way=bychapter,
        stopper={:},
        distance=1ex,
        width=fit,
        style=normal,
        hang=fit]
\defineenumeration[theorem]
\starttext
\chapter{First chapter}
\starttheorem
The square on the hypotenuse is equal to the sum of the squares on the other 
two sides.
\stoptheorem
\chapter{Second chapter}
\placefigure[right, none]{}{\externalfigure[mill]}
\starttheorem
The square on the hypotenuse is equal to the sum of the squares on the other 
two sides.
\stoptheorem
\stoptext

QUESTIONS:
1) I would like to prefix the theorem counter with the chapter number, such 
that the number of the second theorem becomes 2.1. Can this be done?
2) Is it possible to circumvent the misplacement of the second theorem due to 
the placed figure? Ideally, the theorem would just use the space to the left it.

Issues with the documentation:
- In “ConTeXt Commands”, it says on page 224 that \setupenumeration inherits 
from \setupcounter; but in “ConTEXt reference manual", it says on page 246 that 
\setupenumerations inherits from \setupdescriptions.
- In “ConTEXt reference manual”, the key “location” for \defineenumeration 
should probably replaced by “alternative”. Right now, all examples on page 247 
are unaffected by this setting and hence look the same.
- The wiki seems to use MKII, which makes a difference for the example on 
http://wiki.contextgarden.net/Command/enumeration, which compiles differently 
under ConTeXT online.

Thanks for your help!

Best regards,
Florian

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

___________________________________________________________________________________
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 via email to