From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61325 Path: news.gmane.org!not-for-mail From: Xan xan Newsgroups: gmane.comp.tex.context Subject: startenumerate in romans a la LaTeX Date: Sun, 29 Aug 2010 19:09:57 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2014273904==" X-Trace: dough.gmane.org 1283149544 22400 80.91.229.12 (30 Aug 2010 06:25:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 Aug 2010 06:25:44 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 30 08:25:42 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OpxoL-0000MT-3e for gctc-ntg-context-518@m.gmane.org; Mon, 30 Aug 2010 08:25:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DFAF2CA64F; Mon, 30 Aug 2010 08:25:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 7AYRt8VE8c0o; Mon, 30 Aug 2010 08:25:38 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 92AB2CA612; Mon, 30 Aug 2010 08:25:33 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3E110CA5F3 for ; Sun, 29 Aug 2010 19:11:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id GFf3rjtxI9GX for ; Sun, 29 Aug 2010 19:11:20 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 0B72ACA5BD for ; Sun, 29 Aug 2010 19:11:20 +0200 (CEST) Original-Received: from mail-iw0-f169.google.com (mail-iw0-f169.google.com [209.85.214.169]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o7THB1dx028822 for ; Sun, 29 Aug 2010 19:11:19 +0200 Original-Received: by mail-iw0-f169.google.com with SMTP id 33so5862447iwn.14 for ; Sun, 29 Aug 2010 10:11:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=4XAV7uzuUkks7Ed6kAgfjvPL9G8T5HijdEnW4N8GcyQ=; b=rj7ozvK0RWdmt/8FfbtOf5i5bS/xDe/jkPlmc7vAeKaHks71p1F6v8dIvTZgOGgHQU t/iRAXwUM1RViERxZ+Tso0NPW8AdTFRH1Odfssw0x6+qpU1hNWJav1Cj/mwmefkGzQ/R VyO0m653M1wbhEk7EetT3+hKtSY9grnlY7TdY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=S973IpAHiT8gWItg0d8YuVmMmZkh/LbumZ0G9cS22Je/4qe5H5y7DlNktQ0ph2iD9w SLbDMPsc83Xz8jmzGnXc1JiosqP3VYunnaj7p+y8Jkc94O/aTcnYFlq57HfraMOy12Ol tRC3d0ez4r+nNhd7bFahTWgLw03An6klD3Wec= Original-Received: by 10.231.170.208 with SMTP id e16mr4212977ibz.44.1283101797620; Sun, 29 Aug 2010 10:09:57 -0700 (PDT) Original-Received: by 10.231.200.212 with HTTP; Sun, 29 Aug 2010 10:09:57 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05D0hbjeD - 5ddd45328b05 - 20100829 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.216 X-Mailman-Approved-At: Mon, 30 Aug 2010 08:25:31 +0200 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:61325 Archived-At: --===============2014273904== Content-Type: multipart/alternative; boundary=001636e1ea84db9b64048ef96a93 --001636e1ea84db9b64048ef96a93 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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=3D{Lemma}, % Qu=C3=A8 es mostra before=3D{\blank[big]}, % abans de lema, un bigskip after=3D{\blank[big]}, % despr=C3=A9s de lema, un bigskip headstyle=3Dbold, % Negreta per la cap=C3=A7aleras %between=3D\blank, % Entre Lemmes una l=C3=ADnia en blanc titledistance=3D.5em, % espai entre n=C3=BAmero i par=C3=A8ntesis. textdistance=3D.5em, % espai entre ) i text stopper=3D{.\space}, % Com acaba. Despr=C3=A9s de par=C3=A8ntesis un '.' location=3Dserried, width=3Dfit, % que ocupi tot l'espai style=3Ditalic, % estil del text title=3Dyes, % si puc posar o no arguments opcionals titlestyle=3Dbf, % estil del t=C3=ADtol way=3Dbytext, % enumerar en tot el document conversion=3Dnumbers,indenting=3Dyes] % enumera amb arabic %enumera els lemes per seccion [...] \startmylema Let $G$ be a group with a finite presentation ${\cal P} =3D \langle X \mid R \rangle$. Then for all null-homotopic words $u, v$ in ${\cal P}$, \setupitems[align=3Dright] \startitemize[r][left=3D(,right=3D),stopper=3D] \item $\text{area}(u \cdot w) =3D \text{area} (w \cdot u)$ \item $\text{area}(wuw^{-1}) =3D \text{area}(w)$ \item $\text{area}(u \cdot w) \leq \text{area}(u) + \text{area}(w)$ \item $\text{area}(u) =3D \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. --001636e1ea84db9b64048ef96a93 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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.= =20 In LaTeX is the item text itself who starts at the same point, not the=20 romans.


I try:
\defineenumeration
=C2=A0 [mylema]
=C2=A0 [text=3D{Lemma}, % Qu=C3=A8 es mostra
=C2=A0=C2=A0 before=3D{\blank[big]}, % abans de lema, un bigskip
=C2=A0=C2=A0 after=3D{\blank[big]}, % despr=C3=A9s de lema, un bigskip
=C2=A0=C2=A0 headstyle=3Dbold, % Negreta per la cap=C3=A7aleras
=C2=A0=C2=A0 %between=3D\blank, % Entre Lemmes una l=C3=ADnia en blanc
=C2=A0=C2=A0 titledistance=3D.5em, % espai entre n=C3=BAmero i par=C3= =A8ntesis.
=C2=A0=C2=A0 textdistance=3D.5em, % espai entre ) i text
=C2=A0=C2=A0 stopper=3D{.\space}, % Com acaba. Despr=C3=A9s de par=C3= =A8ntesis un '.'
=C2=A0=C2=A0 location=3Dserried,
=C2=A0=C2=A0 width=3Dfit, % que ocupi tot l'espai
=C2=A0=C2=A0 style=3Ditalic, % estil del text
=C2=A0=C2=A0 title=3Dyes, % si puc posar o no arguments opcionals
=C2=A0=C2=A0 titlestyle=3Dbf, % estil del t=C3=ADtol
=C2=A0=C2=A0 way=3Dbytext, % enumerar en tot el document
=C2=A0=C2=A0 conversion=3Dnumbers,indenting=3Dyes] % enumera amb arabic
=C2=A0%enumera els lemes per seccion
[...]
\startmylema Let $G$ be a group with a finite presentation ${\cal P} = =3D=20 \langle X \mid R \rangle$. Then for all null-homotopic words $u, v$ in=20 ${\cal P}$,
\setupitems[align=3Dright]
\startitemize[r][left=3D(,right=3D),stopper=3D]
\item $\text{area}(u \cdot w) =3D \text{area}
(w \cdot u)$
\item $\text{area}(wuw^{-1}) =3D \text{area}(w)$
\item $\text{area}(u \cdot w) \leq \text{area}(u) + \text{area}(w)$
\item $\text{area}(u) =3D \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 e= mails.
--001636e1ea84db9b64048ef96a93-- --===============2014273904== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============2014273904==--