ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Fractions and binomial inlined in text ($n \choose \frac{n}2$): Parentheses not scaled
@ 2011-12-03 18:56 Paul Menzel
  2011-12-04  8:52 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Menzel @ 2011-12-03 18:56 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1.1: Type: text/plain, Size: 625 bytes --]

Dear ConTeXt folks,


using the following minimal example

        \starttext
        Using \type{\choose} in text $n \choose \frac{n}2$.
        
        \startformula
        n \choose \frac{n}2
        \stopformula
        
        \CONTEXT\ \contextmark\ \contextversion\ with \texenginename\
        \texengineversion
        \stoptext

the parentheses of the binomial in the text or too short. I guess this
is because the parentheses are not scaled when inlined and that this is
also a TeX limitation and therefore expected?

ConTEXt MKIV 2011.11.25 21:29 with LuaTeX 0.70.1


Thanks,

Paul


[-- Attachment #1.1.2: choose.pdf --]
[-- Type: application/pdf, Size: 26020 bytes --]

[-- Attachment #1.1.3: choose.tex --]
[-- Type: text/x-tex, Size: 211 bytes --]

\starttext
Using \type{\choose} in text $n \choose \frac{n}2$.

\startformula
n \choose \frac{n}2
\stopformula

\CONTEXT\ \contextmark\ \contextversion\ with \texenginename\ \texengineversion
\stoptext

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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] 3+ messages in thread

* Re: Fractions and binomial inlined in text ($n \choose \frac{n}2$): Parentheses not scaled
  2011-12-03 18:56 Fractions and binomial inlined in text ($n \choose \frac{n}2$): Parentheses not scaled Paul Menzel
@ 2011-12-04  8:52 ` Wolfgang Schuster
  2011-12-04 20:38   ` [solved] " Paul Menzel
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2011-12-04  8:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Paul Menzel


Am 03.12.2011 um 19:56 schrieb Paul Menzel:

> Dear ConTeXt folks,
> 
> 
> using the following minimal example
> 
>        \starttext
>        Using \type{\choose} in text $n \choose \frac{n}2$.
> 
>        \startformula
>        n \choose \frac{n}2
>        \stopformula
> 
>        \CONTEXT\ \contextmark\ \contextversion\ with \texenginename\
>        \texengineversion
>        \stoptext
> 
> the parentheses of the binomial in the text or too short. I guess this
> is because the parentheses are not scaled when inlined and that this is
> also a TeX limitation and therefore expected?


Instead if \choose you can use \binom which is the recommended way in context.

The \dbinom command sets the content in display style while \tbinom use textstyle.

\starttext

Using \tex{binom} in text $\binom{n}{\frac{n}{2}}$.

Using \tex{dbinom} in text $\dbinom{n}{\frac{n}{2}}$.

Using \tex{tbinom} in text $\tbinom{n}{\frac{n}{2}}$.

\startformula
\binom{n}{\frac{n}{2}}
\stopformula

\stoptext

Wolfgang
___________________________________________________________________________________
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] 3+ messages in thread

* Re: [solved] Fractions and binomial inlined in text ($n \choose \frac{n}2$): Parentheses not scaled
  2011-12-04  8:52 ` Wolfgang Schuster
@ 2011-12-04 20:38   ` Paul Menzel
  0 siblings, 0 replies; 3+ messages in thread
From: Paul Menzel @ 2011-12-04 20:38 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1.1: Type: text/plain, Size: 1234 bytes --]

Am Sonntag, den 04.12.2011, 09:52 +0100 schrieb Wolfgang Schuster:
> Am 03.12.2011 um 19:56 schrieb Paul Menzel:

> > using the following minimal example
> > 
> >        \starttext
> >        Using \type{\choose} in text $n \choose \frac{n}2$.
> > 
> >        \startformula
> >        n \choose \frac{n}2
> >        \stopformula
> > 
> >        \CONTEXT\ \contextmark\ \contextversion\ with \texenginename\
> >        \texengineversion
> >        \stoptext
> > 
> > the parentheses of the binomial in the text or too short. I guess this
> > is because the parentheses are not scaled when inlined and that this is
> > also a TeX limitation and therefore expected?
> 
> 
> Instead if \choose you can use \binom which is the recommended way in context.
> 
> The \dbinom command sets the content in display style while \tbinom use textstyle.
> 
> \starttext
> 
> Using \tex{binom} in text $\binom{n}{\frac{n}{2}}$.
> 
> Using \tex{dbinom} in text $\dbinom{n}{\frac{n}{2}}$.
> 
> Using \tex{tbinom} in text $\tbinom{n}{\frac{n}{2}}$.
> 
> \startformula
> \binom{n}{\frac{n}{2}}
> \stopformula
> 
> \stoptext

As always that did the trick. Thank you a lot Wolfgang and Dalyoung!


Thanks,

Paul

[-- Attachment #1.1.2: binom.pdf --]
[-- Type: application/pdf, Size: 24002 bytes --]

[-- Attachment #1.1.3: binom.tex --]
[-- Type: text/x-tex, Size: 249 bytes --]

\starttext

Using \tex{binom} in text $\binom{n}{\frac{n}{2}}$.

Using \tex{dbinom} in text $\dbinom{n}{\frac{n}{2}}$.

Using \tex{tbinom} in text $\tbinom{n}{\frac{n}{2}}$.

\startformula
\binom{n}{\frac{n}{2}}
\stopformula

\stoptext

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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] 3+ messages in thread

end of thread, other threads:[~2011-12-04 20:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-03 18:56 Fractions and binomial inlined in text ($n \choose \frac{n}2$): Parentheses not scaled Paul Menzel
2011-12-04  8:52 ` Wolfgang Schuster
2011-12-04 20:38   ` [solved] " Paul Menzel

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