[NTG-context] Additional title after enumerations-head

2011-06-22 Thread Stefan Müller

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
___


Re: [NTG-context] Additional title after enumerations-head

2011-06-22 Thread Aditya Mahajan

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

Re: [NTG-context] Additional title after enumerations-head

2011-06-22 Thread Stefan Müller

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
___


Re: [NTG-context] Additional title after enumerations-head

2011-06-22 Thread Stefan Müller



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
___


Re: [NTG-context] Additional title after enumerations-head

2011-06-22 Thread Wolfgang Schuster

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
___


Re: [NTG-context] Additional title after enumerations-head

2011-06-22 Thread 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?  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
___


Re: [NTG-context] Additional title after enumerations-head

2011-06-22 Thread Wolfgang Schuster
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.pdfWolfgang

reference.pdf
Description: Adobe PDF document
___
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
___

Re: [NTG-context] Additional title after enumerations-head

2011-06-22 Thread Stefan Müller

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
___