ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Indent after formula in enumeration
@ 2009-05-30 15:49 Xan
  2009-05-30 16:29 ` Aditya Mahajan
  2009-05-30 16:52 ` Xan
  0 siblings, 2 replies; 4+ messages in thread
From: Xan @ 2009-05-30 15:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Xan

Hi,

I have

\setupformulae[indentnext=auto]

but when I put a \startformula \stopformula in demo environment it does not indent.
 Why? What can I do for getting that?


My environment is:

\defineenumeration[demo][text={Demostració.\space},
number=no,location=serried,width=fit,headstyle=italic,
indentnext=yes,between=\blank,textdistance=.5em,closesymbol={\mathematics{\Box}},style=normal]


Thanks a lot,
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Indent after formula in enumeration
  2009-05-30 15:49 Indent after formula in enumeration Xan
@ 2009-05-30 16:29 ` Aditya Mahajan
  2009-05-30 16:52 ` Xan
  1 sibling, 0 replies; 4+ messages in thread
From: Aditya Mahajan @ 2009-05-30 16:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 494 bytes --]

On Sat, 30 May 2009, Xan wrote:

> Hi,
>
> I have
>
> \setupformulae[indentnext=auto]
>
> but when I put a \startformula \stopformula in demo environment it does not 
> indent.
> Why? What can I do for getting that?
>
>
> My environment is:
>
> \defineenumeration[demo][text={Demostració.\space},
> number=no,location=serried,width=fit,headstyle=italic,
> indentnext=yes,between=\blank,textdistance=.5em,closesymbol={\mathematics{\Box}},style=normal]

indenting=yes

Aditya

[-- Attachment #2: Type: text/plain, Size: 487 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Indent after formula in enumeration
  2009-05-30 15:49 Indent after formula in enumeration Xan
  2009-05-30 16:29 ` Aditya Mahajan
@ 2009-05-30 16:52 ` Xan
  2009-05-30 17:01   ` Xan
  1 sibling, 1 reply; 4+ messages in thread
From: Xan @ 2009-05-30 16:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Xan

Thanks Aditya, but it does not work what it should?

With:
\defineenumeration[demo][text={Demostració.\space},number=no,
location=serried,width=fit,headstyle=italic,indentnext=yes,
between=\blank,textdistance=.5em,closesymbol={\mathematics{\Box}},
style=normal,indenting=yes]

and
\starttext

\startdemo Si $\text{area}(u) = N$ i $\text{area}(v) = M$, aleshores
\startformula
\startmathalignment
 \NC u \NC  = \prod_{i=1}^N x_i^{-1} r_i x_i, \NR[+]
 \NC v \NC  = \prod_{j=1}^M y_j^{-1} s_j y_j, \NR[+]
\stopmathalignment
\stopformula%
per a alguns $x_i, y_j \in F(A)$, $r_i, s_j \in R$, on aquestes 
igualtats són dins el grup lliure $F(A)$. Com que $w = u v$ també dins 
el grup lliure, tenim que
\placeformula[-] \startformula \startsplit
  \NC w = u v \NC = \bigl( \prod_{i = 1}^N x_i^{-1} r_i x_i \bigr) \cdot 
\bigl( \prod_{j=1}^M y_j^{-1} s_j y_j \bigr) \NR
  \NC \NC = (x_1^{-1} r_1 x_1)\cdots (x_N^{-1} r_N x_N) \cdot (y_1^{-1} 
s_1 y_1) \cdots (y_M^{-1} s_M y_M) \NR
  \NC \NC =  \prod_{k=1}^{M+N} z_k^{-1} t_k z_k
\stopsplit \stopformula
on
\startformula
  z_k = \startcases
    \NC x_k    \MC 1 \leq k \leq N \NR
    \NC y_{k-N} \MC N+1 \leq k \leq N+M, \NR
  \stopcases t_k = \startcases
    \NC r_k    \MC 1 \leq k \leq N \NR
    \NC s_{k-N} \MC N+1 \leq k \leq N+M. \NR
  \stopcases
\stopformula
Llavors, per definició, $\text{area}(w) \leq N+M = \text{area}(u) + 
\text{area}(v)$.
\stopdemo

\stoptext


I have that "per a alguns" is indenting but "on" is not.

Why?

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Indent after formula in enumeration
  2009-05-30 16:52 ` Xan
@ 2009-05-30 17:01   ` Xan
  0 siblings, 0 replies; 4+ messages in thread
From: Xan @ 2009-05-30 17:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

En/na Xan ha escrit:
> Thanks Aditya, but it does not work what it should?
>
> With:
> \defineenumeration[demo][text={Demostració.\space},number=no,
> location=serried,width=fit,headstyle=italic,indentnext=yes,
> between=\blank,textdistance=.5em,closesymbol={\mathematics{\Box}},
> style=normal,indenting=yes]
>
> and
> \starttext
>
> \startdemo Si $\text{area}(u) = N$ i $\text{area}(v) = M$, aleshores
> \startformula
> \startmathalignment
> \NC u \NC  = \prod_{i=1}^N x_i^{-1} r_i x_i, \NR[+]
> \NC v \NC  = \prod_{j=1}^M y_j^{-1} s_j y_j, \NR[+]
> \stopmathalignment
> \stopformula%
> per a alguns $x_i, y_j \in F(A)$, $r_i, s_j \in R$, on aquestes 
> igualtats són dins el grup lliure $F(A)$. Com que $w = u v$ també dins 
> el grup lliure, tenim que
> \placeformula[-] \startformula \startsplit
>  \NC w = u v \NC = \bigl( \prod_{i = 1}^N x_i^{-1} r_i x_i \bigr) 
> \cdot \bigl( \prod_{j=1}^M y_j^{-1} s_j y_j \bigr) \NR
>  \NC \NC = (x_1^{-1} r_1 x_1)\cdots (x_N^{-1} r_N x_N) \cdot (y_1^{-1} 
> s_1 y_1) \cdots (y_M^{-1} s_M y_M) \NR
>  \NC \NC =  \prod_{k=1}^{M+N} z_k^{-1} t_k z_k
> \stopsplit \stopformula
> on
> \startformula
>  z_k = \startcases
>    \NC x_k    \MC 1 \leq k \leq N \NR
>    \NC y_{k-N} \MC N+1 \leq k \leq N+M, \NR
>  \stopcases t_k = \startcases
>    \NC r_k    \MC 1 \leq k \leq N \NR
>    \NC s_{k-N} \MC N+1 \leq k \leq N+M. \NR
>  \stopcases
> \stopformula
> Llavors, per definició, $\text{area}(w) \leq N+M = \text{area}(u) + 
> \text{area}(v)$.
> \stopdemo
>
> \stoptext
>
>
> I have that "per a alguns" is indenting but "on" is not.
>
> Why?
>
> Xan.
>
> PS: Please, CCme
I have

%Indentation
\setupheads[indentnext=yes]
\setupindenting[yes,small,first]
\setupformulae[indentnext=yes]

in headers.

if I put setupformulae[identnext=yes] and ident=yes for enumerations 
_always_ have indenting after formula even if the text is following.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2009-05-30 17:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-30 15:49 Indent after formula in enumeration Xan
2009-05-30 16:29 ` Aditya Mahajan
2009-05-30 16:52 ` Xan
2009-05-30 17:01   ` 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).