ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* 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
* 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 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

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 19:31 startenumerate in romans a la LaTeX 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
  -- strict thread matches above, loose matches on Subject: below --
2010-08-29 17:09 Xan xan
2010-08-30  9:26 ` Xan xan
2010-08-28 17:56 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).