Add optional arguments to \sqrt

Summary:
Use the TeX definitions of `\root` to get the optional `\sqrt`
argument in the right place. Also add the MathML version.

Fixes #48

Test Plan:
 - `make test`
 - See that the images look good

Reviewers: kevinb, alpert

Reviewed By: alpert

Differential Revision: https://phabricator.khanacademy.org/D17236
This commit is contained in:
Emily Eisenberg
2015-04-22 15:26:10 -07:00
parent e239f6cc84
commit c48de165e8
7 changed files with 58 additions and 13 deletions

View File

@@ -1,5 +1,8 @@
@import "fonts.less";
// The mu unit is defined as 1/18 em
@mu: 1.0/18.0em;
.katex-display {
display: block;
margin: 1em 0;
@@ -359,6 +362,13 @@
margin-top: -1px;
}
}
> .root {
// These values are taken from the definition of `\r@@t`,
// `\mkern 5mu` and `\mkern -10mu`.
margin-left: 5*@mu;
margin-right: -10*@mu;
}
}
.sizing, .fontsize-ensurer {