Re: [NTG-context] startenumerate in romans a la LaTeX

2010-08-31 Thread Xan

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
___


Re: [NTG-context] startenumerate in romans a la LaTeX

2010-08-31 Thread Xan

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
___


Re: [NTG-context] startenumerate in romans a la LaTeX

2010-08-31 Thread 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?

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
___


Re: [NTG-context] startenumerate in romans a la LaTeX

2010-08-31 Thread Jerónimo Alaminos Prats

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
___


Re: [NTG-context] startenumerate in romans a la LaTeX

2010-08-31 Thread Wolfgang Schuster

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
___


Re: [NTG-context] startenumerate in romans a la LaTeX

2010-08-31 Thread Xan

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
___


Re: [NTG-context] startenumerate in romans a la LaTeX

2010-08-31 Thread Otared Kavian

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
___


Re: [NTG-context] startenumerate in romans a la LaTeX

2010-08-31 Thread xancorreu

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
___


Re: [NTG-context] startenumerate in romans a la LaTeX

2010-08-31 Thread Jerónimo Alaminos Prats

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
___


[NTG-context] startenumerate in romans a la LaTeX

2010-08-30 Thread Xan xan
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
___


[NTG-context] startenumerate in romans a la LaTeX

2010-08-30 Thread Xan xan
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
___


[NTG-context] startenumerate in romans a la LaTeX

2010-08-30 Thread Xan

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
___


[NTG-context] startenumerate in romans a la LaTeX

2010-08-30 Thread Xan

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
___


Re: [NTG-context] startenumerate in romans a la LaTeX

2010-08-30 Thread Taco Hoekwater

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
___


Re: [NTG-context] startenumerate in romans a la LaTeX

2010-08-30 Thread Jörg Hagmann



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
___