ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Enumerations: location=serried ignored
Date: Wed, 28 Mar 2012 18:20:20 +0200	[thread overview]
Message-ID: <BD3340DA-AF3F-4906-9732-8C870CE19429@googlemail.com> (raw)
In-Reply-To: <4F72FAD5.5070203@sercz.de>


[-- Attachment #1.1: Type: text/plain, Size: 1108 bytes --]


Am 28.03.2012 um 13:49 schrieb Diane Uschner:

> Hello,
> 
> I noticed that the enumerations environment is behaving oddly when used for theorem environments. In the following minimal example, the option "location=serried" (which should result in an inline heading) is ignored.
> 
> Furthermore, the number of corrolary is not displayed, instead of being shared with theorem. The general idea of this exaple is from [1]. I've not managed to figure out on my own what I'm doing wrong. Any suggestions are appreciated. 

1. The “location” key was replaced with the “alternative” key.

2. You need the “counter” key to share counters.

\setupenumeration[alternative=serried,width=broad,distance=0.5em]
\defineenumeration[theorem][text=Satz,title=yes]
\defineenumeration[corollary][counter=theorem,text=Korollar]

\starttext

\starttheorem[title={Pythagoras Theorem}]
    The square on the hypotenuse is equal to the sum of the squares on the other two sides.
\stoptheorem

\startcorollary
    The sum of angles of a quadrilateral is 360 degrees.
\stopcorollary

\stoptext

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1829 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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:[~2012-03-28 16:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-28 11:49 Diane Uschner
2012-03-28 16:20 ` Wolfgang Schuster [this message]
2012-03-28 20:26   ` Diane Uschner
     [not found] <mailman.265.1332938017.3819.ntg-context@ntg.nl>
2012-03-28 14:05 ` dalyoung

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=BD3340DA-AF3F-4906-9732-8C870CE19429@googlemail.com \
    --to=schuster.wolfgang@googlemail.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).