ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Bug in Enumerations
@ 2003-05-28 13:48 Slawek Zak
  2003-05-28 17:02 ` Giuseppe Bilotta
  0 siblings, 1 reply; 8+ messages in thread
From: Slawek Zak @ 2003-05-28 13:48 UTC (permalink / raw)


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 ;)

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Bug in enumerations
@ 2000-03-03 17:28 Zeljko Vrba
  2000-03-03 17:44 ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Zeljko Vrba @ 2000-03-03 17:28 UTC (permalink / raw)


Hi! I've tried to combine enumerations with formulas:

---
\defineenumeration[definition][location=serried,text=Definicija,way=bychapter]
\definition
Za {\bf prazan} skup vrijedi
\placeformula\startformula
\forall x\in {\cal X}\mu_\emptyset(x)=0
\stopformula				<--- this is line 156
Za {\bf univerzalan} skup vrijedi
\placeformula\startformula
\forall x\in {\cal X}\mu_{\cal X}(x)=1
\stopformula
\par
---

and I get the following error message:

This is pdfTeX, Version 3.14159-14c (Web2C 7.3.1) (format=cont-hr 2000.1.2)  3 MAR 2000 18:19
**&/home/zeljko/cont-hr fuzzy
-- some material cut --
! Extra }, or forgotten \endgroup.
\par ->\egroup 
               \par \@@stopdefinitie {definition}\BeforePar {}\AfterPar {}
\par ->\egroup \par 
                    \@@stopdefinitie {definition}\BeforePar {}\AfterPar {}
\docomplexdoblanko ... \ifblankobuiten \else \par 
                                                  \ifvmode \ifblankoforceer ...

\complexdodoblanko ...ed {\docomplexdoblanko [#1]}
                                                  \fi 
\doifnumberelse ...donetrue \fi \ifdone \egroup #2
                                                  \else \egroup #3\fi 
\doifinstringelse ...{\@@@instring }{#2}#3\else #4
                                                  \fi 
...
l.156 \stopformula

-- I've marked the line in text which is line 156 in original document

? 
! Emergency stop.
\par ->\egroup 
               \par \@@stopdefinitie {definition}\BeforePar {}\AfterPar {}
\par ->\egroup \par 
                    \@@stopdefinitie {definition}\BeforePar {}\AfterPar {}
\docomplexdoblanko ... \ifblankobuiten \else \par 
                                                  \ifvmode \ifblankoforceer ...

\complexdodoblanko ...ed {\docomplexdoblanko [#1]}
                                                  \fi 
\doifnumberelse ...donetrue \fi \ifdone \egroup #2
                                                  \else \egroup #3\fi 
\doifinstringelse ...{\@@@instring }{#2}#3\else #4
                                                  \fi 
...
l.156 \stopformula

End of file on the terminal!

Here is how much of TeX's memory you used:
 869 strings out of 32668
 14648 string characters out of 162758
 307573 words of memory out of 1100001
 21678 multiletter control sequences out of 10000+15000
 16078 words of font info for 51 fonts, out of 200000 for 1000
 14 hyphenation exceptions out of 1000
 65i,19n,97p,329b,1707s stack positions out of 1500i,500n,1500p,50000b,5000s
Output written on fuzzy.dvi (5 pages, 6804 bytes).


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-05-30 17:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-28 13:48 Bug in Enumerations Slawek Zak
2003-05-28 17:02 ` Giuseppe Bilotta
2003-05-29  8:42   ` Hans Hagen
2003-05-29  9:05   ` Slawek Zak
2003-05-29  9:39     ` Hans Hagen
2003-05-30 17:17       ` Slawek Zak
  -- strict thread matches above, loose matches on Subject: below --
2000-03-03 17:28 Bug in enumerations Zeljko Vrba
2000-03-03 17:44 ` Hans Hagen

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).