[NTG-context] Migrations: exactly LaTeX margins -- ConTeXt margins

2010-08-30 Thread Xan xan
Hi,

I want to migrate one LaTeX document to ConTeXt document. I only want to
put the _exact_ margins LaTeX use for \documentclass[12pt,a4paper]{article}.


Anyone could say me the exact values I have to put in **layout**?

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


[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] Fwd: Migrations: exactly LaTeX margins -- ConTeXt margins

2010-08-30 Thread Xan xan
-- Forwarded message --
From: Xan xan xancor...@gmail.com
Date: 2010/8/30
Subject: Re: [NTG-context] Migrations: exactly LaTeX margins -- ConTeXt margins
To: Hans Hagen pra...@wxs.nl


There is a technical explanation in The Not so Short Introduction to
LaTeX [tobi.oetiker.ch/lshort/lshort.pdf]
(page 129)

It's too much for me. I supose there are equivalencies in ConTeXt but
too bit tech for me.

Thanks,
Xan.

2010/8/30 Hans Hagen pra...@wxs.nl

 On 29-8-2010 7:11, Xan xan wrote:

 Hi,

 I want to migrate one LaTeX document to ConTeXt document. I only want to
 put the _exact_ margins LaTeX use for \documentclass[12pt,a4paper]{article}.


 Anyone could say me the exact values I have to put in **layout**?

 You first have to figure out what the exact latex values are. I suppose that 
 they are documented somewhere or can be deduced from the document class 
 (maybe make a list for more popular document classes).

 At some point there can be a module doing things like

 \definelayout[latex-article][...]

 Hans

 -
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
 -
___
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
___