From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Additional title after enumerations-head
Date: Wed, 22 Jun 2011 15:02:34 -0400 (EDT) [thread overview]
Message-ID: <alpine.LNX.2.02.1106221500540.2067@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <4E02251C.6040301@gmx.de>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1486 bytes --]
On Wed, 22 Jun 2011, Stefan Müller wrote:
> Hi list,
>
> in one of my documents (MkIV) I defined several different enumerations with
> \defineenumerations. Currently their only differences are in the values of
> "text=" and "style=". With the following I got what I wanted so far:
>
> \defineenumeration[lemma][text=Lemma, location=serried, width=fit,
> style=slanted, indenting=yes, prefix=yes, prefixsegments=chapter,
> indentnext=no]
>
> \starttext
> \startlemma
> Some slanted text.
> \stoplemma
> \stoptext
>
> Results in "Lemma 1 Some slanted text", head in bold and the text slanted.
>
> But now I have some lemmata that should get some kind of title, for example:
> "Lemma 1 (Farkas Lemma) Some slanted text."
>
> How can I achieve this without defining a new description for every "special
> case"? I tried something like "\startlemma[right={My title}]" without avail.
> I want the "title", "(Farkas Lemma)" in the above example, to be placed
> before the added "distance". In addition I would like to be able to set
> (within \definedescription for all lemmata would be enough) whether I want
> the "title" to be bold (like the head "Lemma 1") or not. Is all or some of
> this possible?
\defineenumeration[lemma][title=yes]
\startlemma {Farkas Lemma} ...
...
\stoplemma
> I'm pretty confident that ConTeXt can already handle this,
> but I don't know how.
Have you seen http://www.ntg.nl/maps/36/09.pdf?
Aditya
[-- 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
___________________________________________________________________________________
next prev parent reply other threads:[~2011-06-22 19:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-22 17:23 Stefan Müller
2011-06-22 19:02 ` Aditya Mahajan [this message]
2011-06-22 19:14 ` Stefan Müller
2011-06-22 19:35 ` Stefan Müller
2011-06-22 19:47 ` Wolfgang Schuster
2011-06-22 20:03 ` Stefan Müller
2011-06-22 20:14 ` Wolfgang Schuster
2011-06-22 20:43 ` Stefan Müller
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=alpine.LNX.2.02.1106221500540.2067@ybpnyubfg.ybpnyqbznva \
--to=adityam@umich.edu \
--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).