How to get "choose" notation?

89 views
Skip to first unread message

Grant Edwards

unread,
Sep 4, 2010, 12:52:35 PM9/4/10
to ASCIIMath
How do you get asciimath to produce choose notation -- parens
containing a superscript and subscript value?

I can't seem to convice asciimath to produce a subscript and
superscript values without something else
in fromt of them.

Marc Grober

unread,
Sep 4, 2010, 9:32:07 PM9/4/10
to asci...@googlegroups.com, ASCIIMath
See, http://moodle.org/mod/forum/discuss.php?d=111785
Log in as guest if you want.

> --
> You received this message because you are subscribed to the Google Groups "ASCIIMath" group.
> To post to this group, send email to asci...@googlegroups.com.
> To unsubscribe from this group, send email to asciimath+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/asciimath?hl=en.
>

David Lippman

unread,
Sep 4, 2010, 9:44:49 PM9/4/10
to ASCIIMath
For choose notation, I wouldn't normally use superscripts and
subscripts - I'd use matrix notation to create a column vector

((5),(2))

Marc Grober

unread,
Sep 4, 2010, 10:15:29 PM9/4/10
to asci...@googlegroups.com
See, e.g. 3rd paragraph of http://en.m.wikipedia.org/wiki/Binomial_coefficient

Grant Edwards

unread,
Sep 4, 2010, 11:00:11 PM9/4/10
to ASCIIMath
On Sep 4, 8:32 pm, Marc Grober <m...@interak.com> wrote:
> On Sep 4, 2010, at 8:52 AM, Grant Edwards <grant.b.edwa...@gmail.com> wrote:
>
> > How do you get asciimath to produce choose notation -- parens
> > containing a superscript and subscript value?

> See,http://moodle.org/mod/forum/discuss.php?d=111785

Bingo. It took me a few minutes to spot it but the answer is indeed
there. :)

LaTeX: n \choose m

asciimath: `({::}_m^n)`

I don't know if I ever would have figured out that {::} is how you
write a null symbol.

Thanks!

--
Grant

Grant Edwards

unread,
Sep 4, 2010, 11:13:13 PM9/4/10
to ASCIIMath
On Sep 4, 8:44 pm, David Lippman <drlipp...@yahoo.com> wrote:
> On Sep 4, 9:52 am, Grant Edwards <grant.b.edwa...@gmail.com> wrote:
>
> > How do you get asciimath to produce choose notation -- parens
> > containing a superscript and subscript value?
>
> For choose notation, I wouldn't normally use superscripts and
> subscripts - I'd use matrix notation to create a column vector
>
> ((5),(2))

Yup, I tried that. The problem is that it turns out looking like a
column vector instead of choose. ;) The rendering of '({::}_N^M)`
notation is a lot closer to being "correct"[1]. I'd prefer that the
top of the M was even with (or even slightly above) the top of the
paren and the bottom of the N was even with (or slightly below) the
bottom of the paren, but it's good enough for the 'web.

[1] "correct" is pretty much defined as "what TeX does". The context
would probably have been sufficient to make the meaning clear, but
after 20 years of using TeX and LaTeX I've gotten awfully picky
about typesetting -- which means that doing anything to be
published via web is always a bit of teeth-gritting
experience. Asciimath has made it a lot better. :)

Marc Grober

unread,
Sep 4, 2010, 11:14:53 PM9/4/10
to asci...@googlegroups.com
But note David's observation about using matrix notation if that is what you are looking for, as opposed to C notation, which would require super/sub scripts

Reply all
Reply to author
Forward
0 new messages