-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mathematical functions #44
Conversation
43f2744
to
229a46e
Compare
src/WpfMath/TexFormulaParser.cs
Outdated
@@ -550,12 +552,23 @@ private Atom AttachScripts(TexFormula formula, string value, ref int position, A | |||
return atom; | |||
|
|||
// Check whether to return Big Operator or Scripts. | |||
var subscriptAtom = subscriptFormula == null ? null : subscriptFormula.RootAtom; | |||
var superscriptAtom = superscriptFormula == null ? null : superscriptFormula.RootAtom; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a good place to use C# 6 syntax: subscriptFormula?.RootAtom
, superscriptFormula?.RootAtom
.
Regarding the localized function names: at the moment, I propose to add those common extensions and mark them with comment at the (except for the last two, of course: they aren't functions) (Taken from a Russian LaTeX book «LATEX2ε в примерах» by К. В. Воронцов, p. 7.) |
Thanks for contribution! 🙌 |
Closes #32.