ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Numbering enumerations in mkiv
@ 2013-07-22 13:28 Thomas Friedrich
  2013-07-22 13:42 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Friedrich @ 2013-07-22 13:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,

the mechanism for how to share the numbering of enumerations seems to
have changed from mkii to mkiv. I used the following code to typeset
theorems and lemmata in mkii. The typeset is very different when
complied with mkiv: In the following code, for example, the lemma is
missing its number, and there is an additional line break after each
theorem title.

~~~ snip ~~~
\setupcolors[state=start]

\setupframedtexts
    [width=\makeupwidth,
    frame=off,
    bottomframe=on,
    topframe=on,
    background=screen,
    backgroundscreen=.95]

\setupenumerations
    [title=yes,
    style=normal,
    list=all,
    before={\blank[big]},
    after={\blank[big]},
    location=serried,
    width=broad,
    distance=0.5em,
    headstyle=bold,
    titlestyle=bold,
    way=bychapter,
    conversion=numbers,
    before=\startframedtext,
    after=\stopframedtext]

\defineenumeration
    [theorem]
    [text=Theorem, listtext={Theorem }]

\defineenumeration
    [lemma]
    [text=Lemma, listtext={Lemma }, number=theorem]

\starttext
\theorem Something $a=bc$.

\theorem Something else.

\lemma And something.

\theorem And something else.

\stoptext
~~~ snip ~~~

How can I mimic the original typeset produced by 'texexec', so I can use mkiv?

Thank you a lot!

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


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

end of thread, other threads:[~2013-07-22 13:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-22 13:28 Numbering enumerations in mkiv Thomas Friedrich
2013-07-22 13:42 ` Wolfgang Schuster

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