The following instructions
const expr_1 = ce.box(["Power", -2, 2])
console.log(expr_1.latex)
const expr_2 = ce.box(["Power", ["Negate", 2], 2])
console.log(expr_2.latex)
const expr_3 = ce.box(["Negate", ["Power", 2, 2]])
console.log(expr_3.latex)
give :
I should be :
I have never used this library. I was just testing it from mathlive.io.
The versions displayed are :
MathField 0.105.3
Compute Engine {{SDK_VERSION}} ... (it looks like an interpolation was not done here).