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
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 ___________________________________________________________________________________