ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* auto-sizing of nested parentheses
@ 2009-12-01 12:47 commb07
  2009-12-01 13:08 ` Khaled Hosny
  0 siblings, 1 reply; 11+ messages in thread
From: commb07 @ 2009-12-01 12:47 UTC (permalink / raw)
  To: ntg-context

hi,

is there a way to let ConTeXt make nested parentheses bigger 
automatically (based on level of nesting)?
if you have like (((((..).)..))..), it is very hard to read if all 
parentheses are the same size.

tobias
___________________________________________________________________________________
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] 11+ messages in thread

* Re: auto-sizing of nested parentheses
  2009-12-01 12:47 auto-sizing of nested parentheses commb07
@ 2009-12-01 13:08 ` Khaled Hosny
  2009-12-01 14:05   ` commb07
  2009-12-02 17:33   ` commb07
  0 siblings, 2 replies; 11+ messages in thread
From: Khaled Hosny @ 2009-12-01 13:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 490 bytes --]

On Tue, Dec 01, 2009 at 01:47:17PM +0100, commb07@googlemail.com wrote:
> hi,
> 
> is there a way to let ConTeXt make nested parentheses bigger
> automatically (based on level of nesting)?
> if you have like (((((..).)..))..), it is very hard to read if all
> parentheses are the same size.

What about:

$\Bigg(\bigg(\Big(\big((..).\big)..\Big)\bigg)..\Bigg)$

Regards,
 Khaled


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 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] 11+ messages in thread

* Re: auto-sizing of nested parentheses
  2009-12-01 14:05   ` commb07
@ 2009-12-01 14:04     ` Taco Hoekwater
  2009-12-01 14:30       ` commb07
  0 siblings, 1 reply; 11+ messages in thread
From: Taco Hoekwater @ 2009-12-01 14:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users



commb07@googlemail.com wrote:
>> What about:
>>
>> $\Bigg(\bigg(\Big(\big((..).\big)..\Big)\bigg)..\Bigg)$
>>
>> Regards,
>>  Khaled
> 
> thanks for your reply, but i would like to have it done automatically,
> not by hand; something like a switch for parentheses mode.
> also i´m not sure if those \big( parentheses vary their size according
> to what they surround, so i should have asked for parentheses with
> sizing based on level of nesting AND what´s inside.

Like with \left?

  $\left(\left( ... \right)\right)$

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
___________________________________________________________________________________

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

* Re: auto-sizing of nested parentheses
  2009-12-01 13:08 ` Khaled Hosny
@ 2009-12-01 14:05   ` commb07
  2009-12-01 14:04     ` Taco Hoekwater
  2009-12-02 17:33   ` commb07
  1 sibling, 1 reply; 11+ messages in thread
From: commb07 @ 2009-12-01 14:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

> What about:
> 
> $\Bigg(\bigg(\Big(\big((..).\big)..\Big)\bigg)..\Bigg)$
> 
> Regards,
>  Khaled

thanks for your reply, but i would like to have it done automatically, 
not by hand; something like a switch for parentheses mode.
also i´m not sure if those \big( parentheses vary their size according 
to what they surround, so i should have asked for parentheses with 
sizing based on level of nesting AND what´s inside.

tobias
___________________________________________________________________________________
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] 11+ messages in thread

* Re: auto-sizing of nested parentheses
  2009-12-01 14:04     ` Taco Hoekwater
@ 2009-12-01 14:30       ` commb07
  2009-12-01 15:11         ` Taco Hoekwater
  2009-12-01 23:26         ` luigi scarso
  0 siblings, 2 replies; 11+ messages in thread
From: commb07 @ 2009-12-01 14:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 565 bytes --]

> Like with \left?
> 
>   $\left(\left( ... \right)\right)$
> 
> Best wishes,
> Taco

maybe im doing something wrong here. i have this expression

\startformula
\sum\limits_{i = 1}^n {\left( {\left( {\left( {\alpha { \odot 
_{C}}{{\tilde k}_i}\left( y \right)} \right){ \oplus _{C}}\left( {\beta 
{ \odot _{C}}{{\tilde k}_i}\left( z \right)} \right)} \right){ \odot 
_Y}{u_i}} \right)}
\stopformula

and the first 3 parentheses have the same size. i would like the outer 
to be bigger than the inner, like in the attached image (i hope 
attachments work).


tobias

[-- Attachment #2: linear.gif --]
[-- Type: image/gif, Size: 5067 bytes --]

[-- Attachment #3: 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] 11+ messages in thread

* Re: auto-sizing of nested parentheses
  2009-12-01 14:30       ` commb07
@ 2009-12-01 15:11         ` Taco Hoekwater
  2009-12-01 15:46           ` commb07
  2009-12-01 23:26         ` luigi scarso
  1 sibling, 1 reply; 11+ messages in thread
From: Taco Hoekwater @ 2009-12-01 15:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users



commb07@googlemail.com wrote:
>> Like with \left?
>>
>>   $\left(\left( ... \right)\right)$
>>
>> Best wishes,
>> Taco
> 
> maybe im doing something wrong here. i have this expression
> 
> \startformula
> \sum\limits_{i = 1}^n {\left( {\left( {\left( {\alpha { \odot
> _{C}}{{\tilde k}_i}\left( y \right)} \right){ \oplus _{C}}\left( {\beta
> { \odot _{C}}{{\tilde k}_i}\left( z \right)} \right)} \right){ \odot
> _Y}{u_i}} \right)}
> \stopformula
> 
> and the first 3 parentheses have the same size. i would like the outer
> to be bigger than the inner, like in the attached image (i hope
> attachments work).

I see. You can add \delimiterfactor=1001 in the preamble somewhere.

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
___________________________________________________________________________________


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

* Re: auto-sizing of nested parentheses
  2009-12-01 15:11         ` Taco Hoekwater
@ 2009-12-01 15:46           ` commb07
  2009-12-01 15:51             ` Taco Hoekwater
  0 siblings, 1 reply; 11+ messages in thread
From: commb07 @ 2009-12-01 15:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

> 
> commb07@googlemail.com wrote:
>>> Like with \left?
>>>
>>>   $\left(\left( ... \right)\right)$
>>>
>>> Best wishes,
>>> Taco
>> maybe im doing something wrong here. i have this expression
>>
>> \startformula
>> \sum\limits_{i = 1}^n {\left( {\left( {\left( {\alpha { \odot
>> _{C}}{{\tilde k}_i}\left( y \right)} \right){ \oplus _{C}}\left( {\beta
>> { \odot _{C}}{{\tilde k}_i}\left( z \right)} \right)} \right){ \odot
>> _Y}{u_i}} \right)}
>> \stopformula
>>
>> and the first 3 parentheses have the same size. i would like the outer
>> to be bigger than the inner, like in the attached image (i hope
>> attachments work).
> 
> I see. You can add \delimiterfactor=1001 in the preamble somewhere.
> 
> Best wishes,
> Taco


yes, that´s what i was searching for! thank you so much for your 
fantastic help!

\delimitershortfall=-2pt
seems to be another alternative.


tobias
___________________________________________________________________________________
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] 11+ messages in thread

* Re: auto-sizing of nested parentheses
  2009-12-01 15:46           ` commb07
@ 2009-12-01 15:51             ` Taco Hoekwater
  0 siblings, 0 replies; 11+ messages in thread
From: Taco Hoekwater @ 2009-12-01 15:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users



commb07@googlemail.com wrote:
> 
> yes, that´s what i was searching for! thank you so much for your
> fantastic help!
> 
> \delimitershortfall=-2pt
> seems to be another alternative.

Yes. There is a small bit of danger in the value -2pt, though:
at smaller pointsizes you may skip over an intermediate size.
Any negative value will do, so \delimitershortfall=-1sp is
better than -2pt.

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
___________________________________________________________________________________


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

* Re: auto-sizing of nested parentheses
  2009-12-01 14:30       ` commb07
  2009-12-01 15:11         ` Taco Hoekwater
@ 2009-12-01 23:26         ` luigi scarso
  1 sibling, 0 replies; 11+ messages in thread
From: luigi scarso @ 2009-12-01 23:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Dec 1, 2009 at 3:30 PM,  <commb07@googlemail.com> wrote:
>> Like with \left?
>>
>>  $\left(\left( ... \right)\right)$
>>
>> Best wishes,
>> Taco
>
> maybe im doing something wrong here. i have this expression
>
> \startformula
> \sum\limits_{i = 1}^n {\left( {\left( {\left( {\alpha { \odot _{C}}{{\tilde
> k}_i}\left( y \right)} \right){ \oplus _{C}}\left( {\beta { \odot
> _{C}}{{\tilde k}_i}\left( z \right)} \right)} \right){ \odot _Y}{u_i}}
> \right)}
> \stopformula
>
> and the first 3 parentheses have the same size. i would like the outer to be
> bigger than the inner, like in the attached image (i hope attachments work).
a bit ot..
It sounds to me like a hint:
is the third parentheses necessary ?




-- 
luigi
___________________________________________________________________________________
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] 11+ messages in thread

* Re: auto-sizing of nested parentheses
  2009-12-01 13:08 ` Khaled Hosny
  2009-12-01 14:05   ` commb07
@ 2009-12-02 17:33   ` commb07
  2009-12-02 18:02     ` luigi scarso
  1 sibling, 1 reply; 11+ messages in thread
From: commb07 @ 2009-12-02 17:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

> is the third parentheses necessary ?

well, i guess you´re right, it´s not absolutely necessary because all 
the expressions have indizes, so one could guess all belong to the sum. 
but this way it´s clearly visible and formally precise that all 
expressions belong to the sum.

tobias
___________________________________________________________________________________
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] 11+ messages in thread

* Re: auto-sizing of nested parentheses
  2009-12-02 17:33   ` commb07
@ 2009-12-02 18:02     ` luigi scarso
  0 siblings, 0 replies; 11+ messages in thread
From: luigi scarso @ 2009-12-02 18:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Dec 2, 2009 at 6:33 PM,  <commb07@googlemail.com> wrote:
>> is the third parentheses necessary ?
>
> well, i guess you´re right, it´s not absolutely necessary because all the
> expressions have indizes, so one could guess all belong to the sum. but this
> way it´s clearly visible and formally precise that all expressions belong to
> the sum.
Yes, true
but a sum sign  smaller than first parenthesis looks a bit strange .
Anyway it' really my opinion.
-- 
luigi
___________________________________________________________________________________
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] 11+ messages in thread

end of thread, other threads:[~2009-12-02 18:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-01 12:47 auto-sizing of nested parentheses commb07
2009-12-01 13:08 ` Khaled Hosny
2009-12-01 14:05   ` commb07
2009-12-01 14:04     ` Taco Hoekwater
2009-12-01 14:30       ` commb07
2009-12-01 15:11         ` Taco Hoekwater
2009-12-01 15:46           ` commb07
2009-12-01 15:51             ` Taco Hoekwater
2009-12-01 23:26         ` luigi scarso
2009-12-02 17:33   ` commb07
2009-12-02 18:02     ` luigi scarso

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).