There is a bug in enumerations' implementation. The following example is nearly literally taken from english ConTeXt manual (cont-eni.pdf, p. 224)
See this example:
\defineenumeration[step] [location=left,text={},width=2em] \setupenumerations[step] [headstyle=bold] \setupenumerations[substep][headstyle=slanted]
\starttext \step One \par \substep Two \par \stoptext
The headstyle for substep is bold, just like for step, and not slanted as stated in the manual.
Help, please :)
/S
PS: Hans, are there any chances to get the new beta with backgrounds' recalculation bug fixed? Latest beta is from before BachoTeX ;)
Wednesday, May 28, 2003 Slawek Zak wrote:
SZ> There is a bug in enumerations' implementation. The following example SZ> is nearly literally taken from english ConTeXt manual SZ> (cont-eni.pdf, p. 224)
SZ> See this example:
SZ> \defineenumeration[step] SZ> [location=left,text={},width=2em] SZ> \setupenumerations[step] [headstyle=bold] SZ> \setupenumerations[substep][headstyle=slanted]
SZ> \starttext SZ> \step One \par SZ> \substep Two \par SZ> \stoptext
SZ> The headstyle for substep is bold, just like for step, and not slanted SZ> as stated in the manual.
As a temporary patch, put the following in your cont-loc and tell me how it works out. If you don't have a cont-loc, put it in your cont-new.
=============================================================================== \def\special@@definitiewoord#1#2#3#4[#5]#6#7% {\strut \doifelsevalue{??dd#1\c!nummer}\v!nee !!doneafalse {\doifelse{#5}{-} !!doneafalse !!doneatrue}% \chardef\definitiekoppeling\zerocount \iflocation \doifvaluesomething{??dd#1\c!koppeling} {\processaction % genereert > of < [\getvalue{??dd#1\c!koppelwijze}] [ \v!lokaal=>\chardef\definitiekoppeling1, % old: default \v!globaal=>\chardef\definitiekoppeling2]}% new: global crosslinking \fi \stelnummerin % the number is called indirectly [\getvalue{??dd#1??dd\c!nummer}] [\c!sectienummer=\getvalue{??dd#1\c!sectienummer}]% \if!!donea \getvalue{\e!volgende#2#1}% \iflocation \bgroup \letvalue{??dd#1\c!sectienummer}\v!ja \protectconversion \maakvoorafgaandenummer[\getvalue{??dd#1??dd\c!nummer}]% \preparethenumber{??dd#1}\voorafgaandenummer\preparednumber \ifcase\definitiekoppeling \or \xdef\internaldoornummer{#3{#1}}% \rawreference\s!num{#1:\internaldoornummer}{}% \or \xdef\internaldoornummer{\countervalue{??dd\c!koppeling#1}}% \rawreference\s!num{#1:\internaldoornummer}{}% \fi \egroup \fi \maakvoorafgaandenummer[\getvalue{??dd#1??dd\c!nummer}]% \preparethenumber{??dd#1}\voorafgaandenummer\preparednumber \hbox {\let\normalkap\relax % sorry, uppercase causes troubles \doattributes % \nocase primitive needed {??dd#2#1}\c!kopletter\c!kopkleur {\getvalue{??dd#1\c!commando}% hook for taco {\showdntext{#2#1}% \domakednnummer{#1}{#2}{#3}}}% \iflocation\ifcase\definitiekoppeling \else \edef\localconnection{\getvalue{??dd#1\c!koppeling}:\internaldoornummer}% \doifreferencefoundelse\localconnection {\in[\localconnection]}{}% genereert > of < \fi\fi}% \doifnot{#5}{-}{\rawreference\s!num{#5}{#3{#1}}}% \else % Why was this strange expansion needed? \hbox {\edef!!stringa{\showdnpuretext{#2#1}}% nog eens testen binnen \expanded \expanded{\doattributes{??dd#1}\noexpand\c!kopletter\noexpand\c!kopkleur {\noexpand\getvalue{??dd#1\c!commando}{!!stringa}}}% \doifnot{#5}{-}{\rawreference\s!num{#5}{}}}% \fi} =============================================================================== FOR HANS: I added a #2 in the \doattributes for kopletter and kopkleur.
At 19:02 28/05/2003 +0200, Giuseppe Bilotta wrote:
As a temporary patch, put the following in your cont-loc and tell me how it works out. If you don't have a cont-loc, put it in your cont-new.
\doattributes % \nocase primitive needed {\??dd#2#1}\c!kopletter\c!kopkleur
=============================================================================== FOR HANS: I added a #2 in the \doattributes for kopletter and kopkleur.
ah, cleverly deduced, must be some quite old bug btw, probably introduced when \doattributes was extended; thanks
Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
On Wed, May 28, 2003 at 07:02:00PM +0200, Giuseppe Bilotta wrote:
SZ> There is a bug in enumerations' implementation. The following example SZ> is nearly literally taken from english ConTeXt manual SZ> (cont-eni.pdf, p. 224)
[...]
As a temporary patch, put the following in your cont-loc and tell me how it works out. If you don't have a cont-loc, put it in your cont-new.
I made my cont-loc, put your patch there and rebuilt the format. Yes - the cont-loc is loaded as I put a little \message at the beginning of this file, but no visible change in compiled document is present :(
Thanks, /S
At 11:05 29/05/2003 +0200, Slawek Zak wrote:
On Wed, May 28, 2003 at 07:02:00PM +0200, Giuseppe Bilotta wrote:
SZ> There is a bug in enumerations' implementation. The following example SZ> is nearly literally taken from english ConTeXt manual SZ> (cont-eni.pdf, p. 224)
[...]
As a temporary patch, put the following in your cont-loc and tell me how it works out. If you don't have a cont-loc, put it in your cont-new.
I made my cont-loc, put your patch there and rebuilt the format. Yes - the cont-loc is loaded as I put a little \message at the beginning of this file, but no visible change in compiled document is present :(
if you are willing to recompile ... then just patch core-des.tex instead
Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
On Thu, May 29, 2003 at 11:39:25AM +0200, Hans Hagen wrote:
I made my cont-loc, put your patch there and rebuilt the format. Yes - the cont-loc is loaded as I put a little \message at the beginning of this file, but no visible change in compiled document is present :(
if you are willing to recompile ... then just patch core-des.tex instead
So much better. Thanks.
/S