0
$\begingroup$

Note that writing $x^{2}$ produces the mathematical expression $x^{2}$.

I was wondering if sometime in the future the Math Educators SE could parse <math> </math> such that they map to the same token as $.

<math>x^{2}<math>

This would be done to make it easier to re-use formulas from Wikipedia on The Math Educators Stack Exchange.

$\endgroup$
2
  • 3
    $\begingroup$ One really shouldn't be copy-pasting content from one place to another. Indeed, it is generally a violation of academic ethics to do so. I am not sure why we would want to make it easier for users to plagiarize... $\endgroup$
    – Xander Henderson Mod
    Commented May 26, 2023 at 20:05
  • 4
    $\begingroup$ @XanderHenderson This hostile comment makes unwarranted assumptions. There are plenty of valid reasons to copy-paste material. $\endgroup$ Commented Jun 6, 2023 at 11:17

1 Answer 1

3
$\begingroup$

Running https://npm.runkit.com/mathml-to-latex on the MathML from this TeX.SE question produced this:

$$ a < x < a + \left(\delta\right)_{1} \Rightarrow \left|f_{1} \left(x\right) - L_{1}\right| < \frac{L_{1} - L_{2}}{2} \\ \Rightarrow L_{1} - \frac{L_{1} - L_{2}}{2} < f_{1} \left(x\right) < L_{1} + \frac{L_{1} - L_{2}}{2} \\ \Rightarrow \frac{L_{1} + L_{2}}{2} < f_{1} \left(\right. x \left.\right)\textrm{ }$$

It seems to have extra parentheses around $\delta$.

An outline of the code for RunKit (linked above);

var mathmlToLatex = require("mathml-to-latex");

const mathml = `<your MathML code here>`;

mathmlToLatex.convert(mathml);
$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .