ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mathieu Boespflug <mboes@tweag.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: A few puzzling problems (bugs?) with enumerations
Date: Fri, 15 Oct 2010 16:39:31 +0200	[thread overview]
Message-ID: <AANLkTi=Xy2YwqDbdZeoNSt8WtmHzaXOcwtbrvEcNOpDE@mail.gmail.com> (raw)
In-Reply-To: <22E50D2F-2D87-45DC-BDD6-B82AE117DC3B@gmail.com>

Wow, thank you very much for your fix, Wolfgang! I can confirm that it
works. I hope this fix makes it into the next beta?

Abount documenting these extra parameters that \setupenumerations has
over \setupdefinitions, I figure that I should contribute that to the
wiki. But I wonder, how does this kind of user generated documentation
on the wiki get synchronized with the ConTeXt Reference manual hosted
at Supelec?

-- Mathieu


On Fri, Oct 15, 2010 at 1:19 PM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
>
> Am 15.10.2010 um 10:20 schrieb Mathieu Boespflug:
>
>> Ok so after reading the source code of strc-des.mkiv, I found that
>> contrary to earlier documentation such as
>>
>> http://www.ntg.nl/maps/36/09.pdf
>>
>> it is not the 'number' parameter that should be used to share
>> numbering but the 'counter' parameter. After fixing that in my code,
>> theorems now have proper numbers and references to theorems work
>> properly too.
>
> \unprotected\def\doenumerationextratext
>  {\doif{\descriptionparameter\c!title}\v!yes
>     {\doifsomething\@@dodoenumerationtext % WS: added this test
>        {\begingroup
>         \dosetdescriptionattributes\c!titlestyle\c!titlecolor
>         \hskip\descriptionparameter\c!titledistance
>         \descriptionparameter\c!titlecommand
>            {\descriptionparameter\c!titleleft
>             \begstrut\@@dodoenumerationtext\endstrut
>             \descriptionparameter\c!titleright}%
>         \endgroup}}}
>
> \unprotected\def\doenumerationfullnumber#1% text, title
>  {\begingroup
>   \dosetdescriptionattributes\c!headstyle\c!headcolor
>   \the\everyenumeration
>  %\descriptionparameter\c!command{\strut#1\doenumerationnumber\doenumerationextratext}%
>   \descriptionparameter\c!command{\strut#1\ifconditional\enumerationnumberenabled\doenumerationnumber\fi\doenumerationextratext}%
>   \endgroup}
>
> Wolfgang
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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:[~2010-10-15 14:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-13 10:08 Mathieu Boespflug
2010-10-13 10:57 ` Mathieu Boespflug
2010-10-15  8:20   ` Mathieu Boespflug
2010-10-15 11:19     ` Wolfgang Schuster
2010-10-15 14:39       ` Mathieu Boespflug [this message]
2010-10-15 15:09         ` Arthur Reutenauer
2010-10-16  0:29     ` Aditya Mahajan
2010-10-16  6:48       ` Peter Münster
2010-10-16  8:59       ` Hans Hagen

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='AANLkTi=Xy2YwqDbdZeoNSt8WtmHzaXOcwtbrvEcNOpDE@mail.gmail.com' \
    --to=mboes@tweag.net \
    --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).