From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Numbering enumerations in mkiv
Date: Mon, 22 Jul 2013 15:42:18 +0200 [thread overview]
Message-ID: <9FC0DF87-8AE0-4DAD-9DE1-EED7F6EDB2A8@gmail.com> (raw)
In-Reply-To: <CA+cORN85vG-=wy3RQiTK0nzNAe9xkKvAYjzkdbq77T9-Q72Fyg@mail.gmail.com>
Am 22.07.2013 um 15:28 schrieb Thomas Friedrich <friedrich@statistik.tu-dortmund.de>:
> 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?
1. The name of the location key was changed to alternative (i.e. alternative=serried).
2. To use the counter of another enumeration you need the counter key
(i.e. counter=theorem) but you can also make \lemma a copy of \theorem with
\defineenumeration[lemma][theroem][text=Lemma,…]
3. You don’t have to enable colors because MkIV enables them by default.
4. The name of the conversion key has changed to numberconversion.
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
___________________________________________________________________________________
prev parent reply other threads:[~2013-07-22 13:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-22 13:28 Thomas Friedrich
2013-07-22 13:42 ` Wolfgang Schuster [this message]
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=9FC0DF87-8AE0-4DAD-9DE1-EED7F6EDB2A8@gmail.com \
--to=schuster.wolfgang@gmail.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).