ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Unexpected behaviour of enumeration in mkiv
Date: Mon, 18 Nov 2013 10:45:06 +0100	[thread overview]
Message-ID: <2BCBB3D2-B817-4574-BBE6-A133AB1C2B52@gmail.com> (raw)
In-Reply-To: <CA+cORN9SUsERCUURMEB0+syyg82=8BW5r3-4jRkmLkrvGfL08Q@mail.gmail.com>


Am 15.11.2013 um 17:02 schrieb Thomas Möbius <kontakt@thomasmoebius.de>:

> Hi,
> 
> please have a look at the minimal example at the bottom.  I am
> typesetting theorems and lemmata which are numbered consecutively
> within chapters in a book.  I used the same code for a document
> written in mkii, and I thought I could just reuse it in mkiv.
> Obviously, there is something I am missing.  Question: How do I get
> the same output when compiling the following code with 'context' as
> when compiled with 'texexec'.
> 
> When compiled with 'context', the chapter number is missing in the
> numbering of theorems. Lemmas are not numbered at all.
> 
> ~~~snip~~~
> \setupenumerations
>    [title=yes,
>    style=normal,
>    list=all,
>    before={\blank[big]},
>    after={\blank[big]},
>    location=serried,

Change “location=serried” to “alternative=serried”.

>    width=broad,
>    distance=0.5em,
>    headstyle=bold,
>    titlestyle=bold,
>    way=bychapter,
>    conversion=numbers]

You have to change “conversion” to “numberconversion” but this isn’t
necessary because numbers are the default conversion format.

To have chapter numbers as part of the counter add “prefix=yes”.

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

To use the counter of another enumeration use “counter=theorem”, not “name=theorem”.

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
___________________________________________________________________________________


  reply	other threads:[~2013-11-18  9:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-15 16:02 Thomas Möbius
2013-11-18  9:45 ` Wolfgang Schuster [this message]
2013-11-19 14:24   ` Thomas Möbius
2013-11-28 17:06     ` Thomas Möbius

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=2BCBB3D2-B817-4574-BBE6-A133AB1C2B52@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).