From: Paul Menzel <paulepanter@users.sourceforge.net>
To: ntg-context@ntg.nl
Subject: Re: [solved] Fractions and binomial inlined in text ($n \choose \frac{n}2$): Parentheses not scaled
Date: Sun, 04 Dec 2011 21:38:29 +0100 [thread overview]
Message-ID: <1323031109.13072.15.camel@mattotaupa> (raw)
In-Reply-To: <7F375F04-9B50-4A4C-841D-D23A38EB3F77@googlemail.com>
[-- 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
___________________________________________________________________________________
prev parent reply other threads:[~2011-12-04 20:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-03 18:56 Paul Menzel
2011-12-04 8:52 ` Wolfgang Schuster
2011-12-04 20:38 ` Paul Menzel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1323031109.13072.15.camel@mattotaupa \
--to=paulepanter@users.sourceforge.net \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).