ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Additional title after enumerations-head
@ 2011-06-22 17:23 Stefan Müller
  2011-06-22 19:02 ` Aditya Mahajan
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Müller @ 2011-06-22 17:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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?  I'm pretty confident that 
ConTeXt can already handle this, but I don't know how.

Thanks in advance for any hints!

Kind regards,
Stefan
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Additional title after enumerations-head
  2011-06-22 17:23 Additional title after enumerations-head Stefan Müller
@ 2011-06-22 19:02 ` Aditya Mahajan
  2011-06-22 19:14   ` Stefan Müller
  0 siblings, 1 reply; 8+ messages in thread
From: Aditya Mahajan @ 2011-06-22 19:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Additional title after enumerations-head
  2011-06-22 19:02 ` Aditya Mahajan
@ 2011-06-22 19:14   ` Stefan Müller
  2011-06-22 19:35     ` Stefan Müller
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Müller @ 2011-06-22 19:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 22.06.2011 21:02, Aditya Mahajan wrote:
> On Wed, 22 Jun 2011, Stefan Müller wrote:
>
>> [...]
>
> \defineenumeration[lemma][title=yes]
>
> \startlemma {Farkas Lemma} ...
> ...
> \stoplemma

Thanks a lot, that does the job!

>> 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

Well, no, I haven't. I'll read it at once! Thank you very much for this, 
too!

Kind regards,
Stefan
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Additional title after enumerations-head
  2011-06-22 19:14   ` Stefan Müller
@ 2011-06-22 19:35     ` Stefan Müller
  2011-06-22 19:47       ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Müller @ 2011-06-22 19:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users



On 22.06.2011 21:14, Stefan Müller wrote:
> On 22.06.2011 21:02, Aditya Mahajan wrote:
>> On Wed, 22 Jun 2011, Stefan Müller wrote:
>>
>>> [...]
>>
>> \defineenumeration[lemma][title=yes]
>>
>> \startlemma {Farkas Lemma} ...
>> ...
>> \stoplemma
>
> Thanks a lot, that does the job!
>
>>> 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
>
> Well, no, I haven't. I'll read it at once! Thank you very much for this,
> too!
>
> Kind regards,
> Stefan

Two questions about the article: Can you confirm that 
"conversion=Characters" and "conversion=Roman" (top of page 2) does not 
work? I vaguely recall some more or less recent changes in ConTeXt MkIV 
concerning number conversion.

And can you confirm that (e.g.) "number=theorem" (page 3, middle) does 
not work? It seems as if you have to use "counter=theorem" now.

Stefan
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Additional title after enumerations-head
  2011-06-22 19:35     ` Stefan Müller
@ 2011-06-22 19:47       ` Wolfgang Schuster
  2011-06-22 20:03         ` Stefan Müller
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2011-06-22 19:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 22.06.2011 um 21:35 schrieb Stefan Müller:

> Two questions about the article: Can you confirm that "conversion=Characters" and "conversion=Roman" (top of page 2) does not work? I vaguely recall some more or less recent changes in ConTeXt MkIV concerning number conversion.

The new name of the key is “numberconversion” (inherited from \setupnumber).

> And can you confirm that (e.g.) "number=theorem" (page 3, middle) does not work? It seems as if you have to use "counter=theorem" now.

Number takes only the two values “yes” and “no”.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Additional title after enumerations-head
  2011-06-22 19:47       ` Wolfgang Schuster
@ 2011-06-22 20:03         ` Stefan Müller
  2011-06-22 20:14           ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Müller @ 2011-06-22 20:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thank you.  I wanted to add this to the wiki, but now I'm not sure how 
the mentioned commands relate to each other.  So I guess 
\setupenumerations inherits all keys (among them "number" and 
"numberconversion") from \setupnumber?  Unfortunatly there's no 
reference page for \setupnumber on the wiki, yet.  How to find out which 
keys there are for \setupnumber?  In general, I find it extremly hard to 
find out which values for which keys are even defined for a given 
ConTeXt command...

Stefan.

On 22.06.2011 21:47, Wolfgang Schuster wrote:
>
> Am 22.06.2011 um 21:35 schrieb Stefan Müller:
>
>> Two questions about the article: Can you confirm that "conversion=Characters" and "conversion=Roman" (top of page 2) does not work? I vaguely recall some more or less recent changes in ConTeXt MkIV concerning number conversion.
>
> The new name of the key is “numberconversion” (inherited from \setupnumber).
>
>> And can you confirm that (e.g.) "number=theorem" (page 3, middle) does not work? It seems as if you have to use "counter=theorem" now.
>
> Number takes only the two values “yes” and “no”.
>
> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Additional title after enumerations-head
  2011-06-22 20:03         ` Stefan Müller
@ 2011-06-22 20:14           ` Wolfgang Schuster
  2011-06-22 20:43             ` Stefan Müller
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2011-06-22 20:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


Am 22.06.2011 um 22:03 schrieb Stefan Müller:

> Thank you.  I wanted to add this to the wiki, but now I'm not sure how the mentioned commands relate to each other.  So I guess \setupenumerations inherits all keys (among them "number" and "numberconversion") from \setupnumber?

I attached a updated version of the options for the \setupdescriptions and \setupenumerations commands.

> Unfortunatly there's no reference page for \setupnumber on the wiki, yet.  How to find out which keys there are for \setupnumber?

For the moment the source is the only reference but I’m working on a new list with all options for the most important commands.

> In general, I find it extremly hard to find out which values for which keys are even defined for a given ConTeXt command...


There is a manual with the keys and values for many commands: http://www.pragma-ade.com/general/qrcs/setup-en.pdf

Wolfgang

[-- Attachment #1.2.1: Type: text/html, Size: 1433 bytes --]

[-- Attachment #1.2.2: reference.pdf --]
[-- Type: application/pdf, Size: 17865 bytes --]

[-- Attachment #1.2.3: Type: text/html, Size: 147 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Additional title after enumerations-head
  2011-06-22 20:14           ` Wolfgang Schuster
@ 2011-06-22 20:43             ` Stefan Müller
  0 siblings, 0 replies; 8+ messages in thread
From: Stefan Müller @ 2011-06-22 20:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 22.06.2011 22:14, Wolfgang Schuster wrote:
>
> Am 22.06.2011 um 22:03 schrieb Stefan Müller:
>
>> Thank you. I wanted to add this to the wiki, but now I'm not sure how
>> the mentioned commands relate to each other. So I guess
>> \setupenumerations inherits all keys (among them "number" and
>> "numberconversion") from \setupnumber?
>
> I attached a updated version of the options for the \setupdescriptions
> and \setupenumerations commands.

Thank you very much.

>> Unfortunatly there's no reference page for \setupnumber on the wiki,
>> yet. How to find out which keys there are for \setupnumber?
>
> For the moment the source is the only reference but I’m working on a new
> list with all options for the most important commands.

Again, thank you very much. I really appreciate all the work you (and 
others) are putting into this!

>> In general, I find it extremly hard to find out which values for which
>> keys are even defined for a given ConTeXt command...
>
> There is a manual with the keys and values for many commands:
> http://www.pragma-ade.com/general/qrcs/setup-en.pdf

Yes, right. I saw this document when I started with ConTeXt and almost 
forgot about it. I didn't know it has been updated. Btw., \setupnumber 
is currently not in there, but I guess you now that.

> Wolfgang

Stefan
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-06-22 20:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-22 17:23 Additional title after enumerations-head Stefan Müller
2011-06-22 19:02 ` Aditya Mahajan
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

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).