edhowler / mathtex

Automatically exported from code.google.com/p/mathtex
Other
1 stars 1 forks source link

mathtex lacks \binom support #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

\binom{a}{b} is loosely equivalent to \left(\frac{a}{b}\right) with no
fraction beam.

mathtex doesn't currently support this.

It may be worth following the lead of TeX and adding support for \genfrac,
upon which \binom, \frac and others can be based.

Original issue reported on code.google.com by mdb...@gmail.com on 5 Aug 2009 at 5:09

GoogleCodeExporter commented 9 years ago
A related function is \stackrel, which can also be based on \genfrac.

Original comment by mdb...@gmail.com on 5 Aug 2009 at 5:10

GoogleCodeExporter commented 9 years ago
Patch attached that adds genfrac, binom and stackrel, with frac refactored to 
use
genfrac.

Original comment by mdb...@gmail.com on 5 Aug 2009 at 7:45

Attachments:

GoogleCodeExporter commented 9 years ago
It is getting late here, but I'll review it properly in the morning. Thanks!

Original comment by fred...@witherden.org on 6 Aug 2009 at 11:32

GoogleCodeExporter commented 9 years ago
Committed along with the appropriate test-cases in r90. 

Original comment by fred...@witherden.org on 7 Aug 2009 at 12:45