Re: [NTG-context] Fractions and binomial inlined in text ($n \choose \frac{n}2$): Parentheses not scaled

2011-12-04 Thread Wolfgang Schuster

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
___


[NTG-context] Fractions and binomial inlined in text ($n \choose \frac{n}2$): Parentheses not scaled

2011-12-03 Thread 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?

ConTEXt MKIV 2011.11.25 21:29 with LuaTeX 0.70.1


Thanks,

Paul



choose.pdf
Description: Adobe PDF document
\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


signature.asc
Description: This is a digitally signed message part
___
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
___

Re: [NTG-context] Fractions and binomial inlined in text ($n \choose \frac{n}2$): Parentheses not scaled

2011-12-03 Thread dalyoung
Dear Paul,

 using the following minimal example
 
\starttext
Using \type{\choose} in text $n \choose \frac{n}2$.
 

Please try $\displaystyle{n \choose \frac{n}2}$.
It is working for me.

I hope it is what you are looking for.

best regards,

Dalyoung

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