ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: S Barmeier <severinbarmeier@googlemail.com>
To: ntg-context@ntg.nl
Subject: Re: One-off theorem titles & numberstyle
Date: Thu, 03 Mar 2011 18:56:34 +0900	[thread overview]
Message-ID: <4D6F65D2.4030801@googlemail.com> (raw)
In-Reply-To: <mailman.1212.1299141828.4223.ntg-context@ntg.nl>

Thank you for the quick reply, it is getting quite close. I guess the
trick is to define an enumeration for one-off use and use "title=" to
fake "text=". The only problem is that the number sits between text and
title. So to still be able to use \starttheorem alongside
\startproclaim{Theorem}, I would need to know how to either place the
number after the "title" or how to place it before the "text".
I'd be interested in knowing how to do both.

Also, I have problem with the numbering mechanism and the
numberstyle/textstyle/etc.

\defineenumeration[theorem]
    [text=Theorem,
    numberstyle=normal,
    headstyle=bold,
    textstyle=caps,
    number=yes]
\defineenumeration[proclaim]
    [text=,
    number=theorem,
    headstyle=bold,
    title=yes,
    titleleft=,
    titleright=]
\starttext

\starttheorem
Abc
\stoptheorem

\startproclaim{Special Theorem}
Def
\stopproclaim

\stoptext

This gives as is no number for \startproclaim{Special Theorem}, although
I asked for number=theorem. Also, the numberstyle of \starttheorem is
not normal, but bold, and adding textstyle=normal/caps/etc. seems to
have no effect either.

Best,
Severin




On 03/03/2011 05:43 PM, ntg-context-request@ntg.nl wrote:
> Maybe this is what you want:
> %%%%% begin
> %% defining \proclaim which is built in Plain-teX
> %% but has disappeared from ConTeXt
> \defineenumeration[proclaim]
> 	[text=,
> 	style=slanted,
> 	title=yes,
> 	titleleft=,
> 	titleright=,
> 	location=serried,
> 	width=fit,
> 	right={.~}]
> \setupnumber[proclaim][way=bysection,numbersection=yes]
> %% end definition \proclaim
>
> %% defining \remark 
> \defineenumeration[remark]
> 	[text=,
> 	style=rm,
> 	title=yes,
> 	titleleft=,
> 	titleright=,
> 	location=serried,
> 	width=fit,
> 	right={.~}]
> \setupnumber[remark][number=proclaim]
> %% end definition \remark
>
> \starttext
> \input knuth.tex
>
> \startproclaim[lem:Yoneda]{Yanada Theorem}
> This is a theorem in set category theory.
> \stopproclaim
>
> \startremark{Remark}
> The above theorem and this remark are numbered sequentially.
> \stopremark
>
> \section{A new section}
>
> \input knuth.tex
>
> \startproclaim[lem:Yoneda2]{Yanada Theorem}
> As said above, this is a theorem in set category theory.
> \stopproclaim
>
> \startremark{Remark}
> The above theorem and this remark are numbered sequentially.
> \stopremark
>
> \stoptext
> %%%%% end
>
> Best regards: OK

___________________________________________________________________________________
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:[~2011-03-03  9:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1212.1299141828.4223.ntg-context@ntg.nl>
2011-03-03  9:56 ` S Barmeier [this message]
2011-03-03 13:48   ` Otared Kavian

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=4D6F65D2.4030801@googlemail.com \
    --to=severinbarmeier@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).