From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: A few puzzling problems (bugs?) with enumerations
Date: Fri, 15 Oct 2010 13:19:08 +0200 [thread overview]
Message-ID: <22E50D2F-2D87-45DC-BDD6-B82AE117DC3B@gmail.com> (raw)
In-Reply-To: <AANLkTi=m=av+g174vf6fwacEqCe_2xHDFzDvgvNAo_nq@mail.gmail.com>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2010-10-15 11:19 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 [this message]
2010-10-15 14:39 ` Mathieu Boespflug
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=22E50D2F-2D87-45DC-BDD6-B82AE117DC3B@gmail.com \
--to=schuster.wolfgang@googlemail.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).