Make large fractions actually work

Summary:
Also, rename it to '\dfrac', because it's more like a display fraction

Auditors: spicyj
This commit is contained in:
Emily Eisenberg
2013-07-07 22:41:22 -07:00
parent 2643f72a9d
commit f97aad13b7
4 changed files with 10 additions and 5 deletions

View File

@@ -48,8 +48,8 @@ func
{$$ = [{type: 'bin', value: yytext}];}
| 'div'
{$$ = [{type: 'bin', value: yytext}];}
| 'frac' group group
{$$ = [{type: 'frac', value: {numer: $2, denom: $3}}];}
| 'dfrac' group group
{$$ = [{type: 'dfrac', value: {numer: $2, denom: $3}}];}
| 'lvert'
{$$ = [{type: 'open', value: yytext}];}
| 'rvert'