ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* startenumerate in romans a la LaTeX
@ 2010-08-28 17:56 Xan
  0 siblings, 0 replies; 15+ messages in thread
From: Xan @ 2010-08-28 17:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

I just want to simulate the behaviour of

\usepackage{enumerate}
...

\begin{enumerate}[(i)]
\item
\end{enumerate}

in ConTeXt. That is:
- items in (i), (ii), ....
- right indentation of items: in context items start at the same point. 
In LaTeX is the item text itself who starts at the same point, not the 
romans.

Can anyone help me?

Thanks,
Xan.

PS: Please CCme.
___________________________________________________________________________________
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] 15+ messages in thread

* Re: startenumerate in romans a la LaTeX
  2010-08-31 14:58             ` xancorreu
@ 2010-08-31 17:10               ` Jerónimo Alaminos Prats
  0 siblings, 0 replies; 15+ messages in thread
From: Jerónimo Alaminos Prats @ 2010-08-31 17:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users


El 31/08/2010, a las 16:58, xancorreu escribió:

> Al 31/08/10 12:16, En/na Otared Kavian ha escrit:
>> On 31 août 2010, at 11:28, Xan wrote:
>>   
>>> It does not work for me. The numbers are left aligned.
>>> 
>>> Xan.
>>>     
>> Wolfgang's solution works for me with mkiv: Xan, are you using mkii or mkiv?
>> 
>> Best regards: OK
>>   
> I use mkii
> Xan.
> ___________________________________________________________________________________
> 

The version with "fit" works in mkii here:

\setupitemgroup[enumerate][each][romannumerals,fit][width=1cm,distance=1em,itemalign=flushright,left=(,right=),stopper=]

At least for me, do not work if omitted.

Jeronimo.

___________________________________________________________________________________
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] 15+ messages in thread

* Re: startenumerate in romans a la LaTeX
  2010-08-31 10:16           ` Otared Kavian
@ 2010-08-31 14:58             ` xancorreu
  2010-08-31 17:10               ` Jerónimo Alaminos Prats
  0 siblings, 1 reply; 15+ messages in thread
From: xancorreu @ 2010-08-31 14:58 UTC (permalink / raw)
  To: ntg-context

Al 31/08/10 12:16, En/na Otared Kavian ha escrit:
> On 31 août 2010, at 11:28, Xan wrote:
>    
>> It does not work for me. The numbers are left aligned.
>>
>> Xan.
>>      
> Wolfgang's solution works for me with mkiv: Xan, are you using mkii or mkiv?
>
> Best regards: OK
>    
I use mkii
Xan.
___________________________________________________________________________________
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] 15+ messages in thread

* Re: startenumerate in romans a la LaTeX
  2010-08-31  9:28         ` Xan
@ 2010-08-31 10:16           ` Otared Kavian
  2010-08-31 14:58             ` xancorreu
  0 siblings, 1 reply; 15+ messages in thread
From: Otared Kavian @ 2010-08-31 10:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On 31 août 2010, at 11:28, Xan wrote:
> It does not work for me. The numbers are left aligned.
> 
> Xan.

Wolfgang's solution works for me with mkiv: Xan, are you using mkii or mkiv?

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
___________________________________________________________________________________


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

* Re: startenumerate in romans a la LaTeX
  2010-08-31  8:06       ` Wolfgang Schuster
@ 2010-08-31  9:28         ` Xan
  2010-08-31 10:16           ` Otared Kavian
  0 siblings, 1 reply; 15+ messages in thread
From: Xan @ 2010-08-31  9:28 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users

Al 31/08/10 10:06, En/na Wolfgang Schuster ha escrit:
> Am 31.08.2010 um 09:47 schrieb Taco Hoekwater:
>
>    
>> On 08/31/2010 09:31 AM, Xan wrote:
>>      
>>> Al 30/08/10 15:55, En/na Taco Hoekwater ha escrit:
>>>        
>>>> On 08/28/2010 09:31 PM, Xan wrote:
>>>>          
>>>>> - right indentation of items: in context items start at the same point.
>>>>> In LaTeX is the item text itself who starts at the same point, not the
>>>>> romans.
>>>>>            
>>>> I do not understand this sentence. Does this do what you want?
>>>>
>>>>          
>>> Easy: in ConTeXt
>>>
>>> (i) bla bla bla
>>> (ii) bla bla bla
>>> (iii) bla bla bla
>>> (iv) bla bla bla
>>>
>>> in LaTeX
>>>
>>> (i) bla bla bla
>>> (ii) bla bla bla
>>> (iii) bla bla bla
>>> (iv) bla bla bla
>>>
>>> Context aligns text and LaTeX right-aligns the numbers (markers)
>>>        
>> Wolfgang? I know how to code this in plain style, but is there a nicer
>> way?
>>      
> \defineitemgroup[enumerate]
>
> \setupitemgroup[enumerate][each][romannumerals][width=1cm,distance=1em,itemalign=flushright,left=(,right=),stopper=]
> %\setupitemgroup[enumerate][each][romannumerals,fit][distance=1em,itemalign=flushright,left=(,right=),stopper=]
>
> \starttext
>
> \startenumerate
> \item one
> \item two
> \item \input ward
> \stopenumerate
>
> \stoptext
>
> Wolfgang
>
>    
It does not work for me. The numbers are left aligned.

Xan.
___________________________________________________________________________________
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] 15+ messages in thread

* Re: startenumerate in romans a la LaTeX
  2010-08-31  7:47     ` Taco Hoekwater
  2010-08-31  8:05       ` Jerónimo Alaminos Prats
@ 2010-08-31  8:06       ` Wolfgang Schuster
  2010-08-31  9:28         ` Xan
  1 sibling, 1 reply; 15+ messages in thread
From: Wolfgang Schuster @ 2010-08-31  8:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Xan


Am 31.08.2010 um 09:47 schrieb Taco Hoekwater:

> On 08/31/2010 09:31 AM, Xan wrote:
>> Al 30/08/10 15:55, En/na Taco Hoekwater ha escrit:
>>> On 08/28/2010 09:31 PM, Xan wrote:
>>>> - right indentation of items: in context items start at the same point.
>>>> In LaTeX is the item text itself who starts at the same point, not the
>>>> romans.
>>> 
>>> I do not understand this sentence. Does this do what you want?
>>> 
>> 
>> Easy: in ConTeXt
>> 
>> (i) bla bla bla
>> (ii) bla bla bla
>> (iii) bla bla bla
>> (iv) bla bla bla
>> 
>> in LaTeX
>> 
>> (i) bla bla bla
>> (ii) bla bla bla
>> (iii) bla bla bla
>> (iv) bla bla bla
>> 
>> Context aligns text and LaTeX right-aligns the numbers (markers)
> 
> Wolfgang? I know how to code this in plain style, but is there a nicer
> way?

\defineitemgroup[enumerate]

\setupitemgroup[enumerate][each][romannumerals][width=1cm,distance=1em,itemalign=flushright,left=(,right=),stopper=]
%\setupitemgroup[enumerate][each][romannumerals,fit][distance=1em,itemalign=flushright,left=(,right=),stopper=]

\starttext

\startenumerate
\item one
\item two
\item \input ward
\stopenumerate

\stoptext

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] 15+ messages in thread

* Re: startenumerate in romans a la LaTeX
  2010-08-31  7:47     ` Taco Hoekwater
@ 2010-08-31  8:05       ` Jerónimo Alaminos Prats
  2010-08-31  8:06       ` Wolfgang Schuster
  1 sibling, 0 replies; 15+ messages in thread
From: Jerónimo Alaminos Prats @ 2010-08-31  8:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users


El 31/08/2010, a las 09:47, Taco Hoekwater escribió:

> On 08/31/2010 09:31 AM, Xan wrote:
>> Al 30/08/10 15:55, En/na Taco Hoekwater ha escrit:
>>> On 08/28/2010 09:31 PM, Xan wrote:
>>>> - right indentation of items: in context items start at the same point.
>>>> In LaTeX is the item text itself who starts at the same point, not the
>>>> romans.
>>> 
>>> I do not understand this sentence. Does this do what you want?
>>> 
>> 
>> Easy: in ConTeXt
>> 
>> (i) bla bla bla
>> (ii) bla bla bla
>> (iii) bla bla bla
>> (iv) bla bla bla
>> 
>> in LaTeX
>> 
>> (i) bla bla bla
>> (ii) bla bla bla
>> (iii) bla bla bla
>> (iv) bla bla bla
>> 
>> Context aligns text and LaTeX right-aligns the numbers (markers)
> 
> Wolfgang? I know how to code this in plain style, but is there a nicer
> way?

Hello,

this appeared in the list some time ago. 

\startitemize[r,fit][stopper=,left=(,right=),itemalign=flushright]

\dorecurse{10}{\item prueba}

\stopitemize

Best,
Jeronimo.

> 
> Best wishes,
> Taco
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________


___________________________________________________________________________________
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] 15+ messages in thread

* Re: startenumerate in romans a la LaTeX
  2010-08-31  7:31   ` Xan
@ 2010-08-31  7:47     ` Taco Hoekwater
  2010-08-31  8:05       ` Jerónimo Alaminos Prats
  2010-08-31  8:06       ` Wolfgang Schuster
  0 siblings, 2 replies; 15+ messages in thread
From: Taco Hoekwater @ 2010-08-31  7:47 UTC (permalink / raw)
  To: Xan; +Cc: mailing list for ConTeXt users

On 08/31/2010 09:31 AM, Xan wrote:
> Al 30/08/10 15:55, En/na Taco Hoekwater ha escrit:
>> On 08/28/2010 09:31 PM, Xan wrote:
>>> - right indentation of items: in context items start at the same point.
>>> In LaTeX is the item text itself who starts at the same point, not the
>>> romans.
>>
>> I do not understand this sentence. Does this do what you want?
>>
>
> Easy: in ConTeXt
>
> (i) bla bla bla
> (ii) bla bla bla
> (iii) bla bla bla
> (iv) bla bla bla
>
> in LaTeX
>
> (i) bla bla bla
> (ii) bla bla bla
> (iii) bla bla bla
> (iv) bla bla bla
>
> Context aligns text and LaTeX right-aligns the numbers (markers)

Wolfgang? I know how to code this in plain style, but is there a nicer
way?

Best wishes,
Taco
___________________________________________________________________________________
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] 15+ messages in thread

* Re: startenumerate in romans a la LaTeX
  2010-08-30 13:55 ` Taco Hoekwater
  2010-08-30 15:26   ` Jörg Hagmann
  2010-08-31  7:31   ` Xan
@ 2010-08-31  7:33   ` Xan
  2 siblings, 0 replies; 15+ messages in thread
From: Xan @ 2010-08-31  7:33 UTC (permalink / raw)
  To: Taco Hoekwater; +Cc: mailing list for ConTeXt users

Al 30/08/10 15:55, En/na Taco Hoekwater ha escrit:
>
>
> \defineitemgroup[enumerate]
>
> \setupenumerate[1][romannumerals]
> \setupenumerate[1][width=1cm,stopper=,left=(,right=)]
>
> \starttext
> \startenumerate
>
> \item A
>
> \item B
>
> \item C
>
> \stopenumerate
> \stoptext


For the other hand, is width=1cm arbitrary? Without left=( and right=), 
what is the separation between text and numbers? I think it's a little 
bit of 1cm, isn't?

Xan,
___________________________________________________________________________________
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] 15+ messages in thread

* Re: startenumerate in romans a la LaTeX
  2010-08-30 13:55 ` Taco Hoekwater
  2010-08-30 15:26   ` Jörg Hagmann
@ 2010-08-31  7:31   ` Xan
  2010-08-31  7:47     ` Taco Hoekwater
  2010-08-31  7:33   ` Xan
  2 siblings, 1 reply; 15+ messages in thread
From: Xan @ 2010-08-31  7:31 UTC (permalink / raw)
  To: Taco Hoekwater; +Cc: mailing list for ConTeXt users

Al 30/08/10 15:55, En/na Taco Hoekwater ha escrit:
> On 08/28/2010 09:31 PM, Xan wrote:
>> - right indentation of items: in context items start at the same point.
>> In LaTeX is the item text itself who starts at the same point, not the
>> romans.
>
> I do not understand this sentence. Does this do what you want?
>

Easy: in ConTeXt

     (i) bla bla bla
     (ii) bla bla bla
     (iii) bla bla bla
     (iv) bla bla bla

in LaTeX

       (i) bla bla bla
      (ii) bla bla bla
     (iii) bla bla bla
     (iv) bla bla bla

Context aligns text and LaTeX right-aligns the numbers (markers)


>
>
> \defineitemgroup[enumerate]
>
> \setupenumerate[1][romannumerals]
> \setupenumerate[1][width=1cm,stopper=,left=(,right=)]
>
> \starttext
> \startenumerate
>
> \item A
>
> \item B
>
> \item C
>
> \stopenumerate
> \stoptext

___________________________________________________________________________________
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] 15+ messages in thread

* Re: startenumerate in romans a la LaTeX
  2010-08-30 13:55 ` Taco Hoekwater
@ 2010-08-30 15:26   ` Jörg Hagmann
  2010-08-31  7:31   ` Xan
  2010-08-31  7:33   ` Xan
  2 siblings, 0 replies; 15+ messages in thread
From: Jörg Hagmann @ 2010-08-30 15:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users


> On 08/28/2010 09:31 PM, Xan wrote:
>> - right indentation of items: in context items start at the same point.
>> In LaTeX is the item text itself who starts at the same point, not the
>> romans.

The Romans always start too late, try the Celts!

JH
___________________________________________________________________________________
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] 15+ messages in thread

* Re: startenumerate in romans a la LaTeX
  2010-08-28 19:31 Xan
@ 2010-08-30 13:55 ` Taco Hoekwater
  2010-08-30 15:26   ` Jörg Hagmann
                     ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Taco Hoekwater @ 2010-08-30 13:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Xan

On 08/28/2010 09:31 PM, Xan wrote:
> - right indentation of items: in context items start at the same point.
> In LaTeX is the item text itself who starts at the same point, not the
> romans.

I do not understand this sentence. Does this do what you want?



\defineitemgroup[enumerate]

\setupenumerate[1][romannumerals]
\setupenumerate[1][width=1cm,stopper=,left=(,right=)]

\starttext
\startenumerate

\item A

\item B

\item C

\stopenumerate
\stoptext
___________________________________________________________________________________
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] 15+ messages in thread

* startenumerate in romans a la LaTeX
  2010-08-29 17:09 Xan xan
@ 2010-08-30  9:26 ` Xan xan
  0 siblings, 0 replies; 15+ messages in thread
From: Xan xan @ 2010-08-30  9:26 UTC (permalink / raw)
  To: ntg-context

Hi,

I just want to simulate the behaviour of

\usepackage{enumerate}
...

\begin{enumerate}[(i)]
\item
\end{enumerate}

in ConTeXt. That is:
- items in (i), (ii), ....
- right indentation of items: in context items start at the same
point. In LaTeX is the item text itself who starts at the same point,
not the romans.


I try:
\defineenumeration
  [mylema]
  [text={Lemma}, % Què es mostra
   before={\blank[big]}, % abans de lema, un bigskip
   after={\blank[big]}, % després de lema, un bigskip
   headstyle=bold, % Negreta per la capçaleras
   %between=\blank, % Entre Lemmes una línia en blanc
   titledistance=.5em, % espai entre número i parèntesis.
   textdistance=.5em, % espai entre ) i text
   stopper={.\space}, % Com acaba. Després de parèntesis un '.'
   location=serried,
   width=fit, % que ocupi tot l'espai
   style=italic, % estil del text
   title=yes, % si puc posar o no arguments opcionals
   titlestyle=bf, % estil del títol
   way=bytext, % enumerar en tot el document
   conversion=numbers,indenting=yes] % enumera amb arabic
 %enumera els lemes per seccion
[...]
\startmylema Let $G$ be a group with a finite presentation ${\cal P} =
\langle X \mid R \rangle$. Then for all null-homotopic words $u, v$ in
${\cal P}$,
\setupitems[align=right]
\startitemize[r][left=(,right=),stopper=]
\item $\text{area}(u \cdot w) = \text{area}
(w \cdot u)$
\item $\text{area}(wuw^{-1}) = \text{area}(w)$
\item $\text{area}(u \cdot w) \leq \text{area}(u) + \text{area}(w)$
\item $\text{area}(u) = \text{area}(u^{-1})$
\stopitemize
\stopmylema

but the numbers are left-aligned and they bit the text.

Can anyone help me?

Thanks,
Xan.

PS: I have a new email address. The old has problems with sending emails.
___________________________________________________________________________________
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] 15+ messages in thread

* startenumerate in romans a la LaTeX
@ 2010-08-29 17:09 Xan xan
  2010-08-30  9:26 ` Xan xan
  0 siblings, 1 reply; 15+ messages in thread
From: Xan xan @ 2010-08-29 17:09 UTC (permalink / raw)
  To: ntg-context


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

Hi,

I just want to simulate the behaviour of

\usepackage{enumerate}
...

\begin{enumerate}[(i)]
\item
\end{enumerate}

in ConTeXt. That is:
- items in (i), (ii), ....
- right indentation of items: in context items start at the same point. In
LaTeX is the item text itself who starts at the same point, not the romans.


I try:
\defineenumeration
  [mylema]
  [text={Lemma}, % Què es mostra
   before={\blank[big]}, % abans de lema, un bigskip
   after={\blank[big]}, % després de lema, un bigskip
   headstyle=bold, % Negreta per la capçaleras
   %between=\blank, % Entre Lemmes una línia en blanc
   titledistance=.5em, % espai entre número i parèntesis.
   textdistance=.5em, % espai entre ) i text
   stopper={.\space}, % Com acaba. Després de parèntesis un '.'
   location=serried,
   width=fit, % que ocupi tot l'espai
   style=italic, % estil del text
   title=yes, % si puc posar o no arguments opcionals
   titlestyle=bf, % estil del títol
   way=bytext, % enumerar en tot el document
   conversion=numbers,indenting=yes] % enumera amb arabic
 %enumera els lemes per seccion
[...]
\startmylema Let $G$ be a group with a finite presentation ${\cal P} =
\langle X \mid R \rangle$. Then for all null-homotopic words $u, v$ in
${\cal P}$,
\setupitems[align=right]
\startitemize[r][left=(,right=),stopper=]
\item $\text{area}(u \cdot w) = \text{area}
(w \cdot u)$
\item $\text{area}(wuw^{-1}) = \text{area}(w)$
\item $\text{area}(u \cdot w) \leq \text{area}(u) + \text{area}(w)$
\item $\text{area}(u) = \text{area}(u^{-1})$
\stopitemize
\stopmylema

but the numbers are left-aligned and they bit the text.

Can anyone help me?

Thanks,
Xan.

PS: I have a new email address. The old has problems with sending emails.

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

[-- Attachment #2: Type: text/plain, Size: 486 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] 15+ messages in thread

* startenumerate in romans a la LaTeX
@ 2010-08-28 19:31 Xan
  2010-08-30 13:55 ` Taco Hoekwater
  0 siblings, 1 reply; 15+ messages in thread
From: Xan @ 2010-08-28 19:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

I just want to simulate the behaviour of

\usepackage{enumerate}
...

\begin{enumerate}[(i)]
\item
\end{enumerate}

in ConTeXt. That is:
- items in (i), (ii), ....
- right indentation of items: in context items start at the same point. 
In LaTeX is the item text itself who starts at the same point, not the 
romans.


I try:
\defineenumeration
   [mylema]
   [text={Lemma}, % Què es mostra
    before={\blank[big]}, % abans de lema, un bigskip
    after={\blank[big]}, % després de lema, un bigskip
    headstyle=bold, % Negreta per la capçaleras
    %between=\blank, % Entre Lemmes una línia en blanc
    titledistance=.5em, % espai entre número i parèntesis.
    textdistance=.5em, % espai entre ) i text
    stopper={.\space}, % Com acaba. Després de parèntesis un '.'
    location=serried,
    width=fit, % que ocupi tot l'espai
    style=italic, % estil del text
    title=yes, % si puc posar o no arguments opcionals
    titlestyle=bf, % estil del títol
    way=bytext, % enumerar en tot el document
    conversion=numbers,indenting=yes] % enumera amb arabic
  %enumera els lemes per seccion
[...]
\startmylema Let $G$ be a group with a finite presentation ${\cal P} = 
\langle X \mid R \rangle$. Then for all null-homotopic words $u, v$ in 
${\cal P}$,
\setupitems[align=right]
\startitemize[r][left=(,right=),stopper=]
\item $\text{area}(u \cdot w) = \text{area}
(w \cdot u)$
\item $\text{area}(wuw^{-1}) = \text{area}(w)$
\item $\text{area}(u \cdot w) \leq \text{area}(u) + \text{area}(w)$
\item $\text{area}(u) = \text{area}(u^{-1})$
\stopitemize
\stopmylema

but the numbers are left-aligned and they bit the text.

Can anyone help me?

Thanks,
Xan.

PS: Please CCme.
___________________________________________________________________________________
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] 15+ messages in thread

end of thread, other threads:[~2010-08-31 17:10 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-28 17:56 startenumerate in romans a la LaTeX Xan
2010-08-28 19:31 Xan
2010-08-30 13:55 ` Taco Hoekwater
2010-08-30 15:26   ` Jörg Hagmann
2010-08-31  7:31   ` Xan
2010-08-31  7:47     ` Taco Hoekwater
2010-08-31  8:05       ` Jerónimo Alaminos Prats
2010-08-31  8:06       ` Wolfgang Schuster
2010-08-31  9:28         ` Xan
2010-08-31 10:16           ` Otared Kavian
2010-08-31 14:58             ` xancorreu
2010-08-31 17:10               ` Jerónimo Alaminos Prats
2010-08-31  7:33   ` Xan
2010-08-29 17:09 Xan xan
2010-08-30  9:26 ` Xan xan

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