This is sort of a continuation of this question. However, in that question, the problematic superscript was being added through a function, so the function could inspect the content and handle the superscript accordingly. I just want to add a superscript directly:
#let frobnorm(x) = $norm(#x)_upright(F)$
$ frobnorm(A)^2 $
I know I could just make a function like
#let pow2(it) = {
if it.func() == math.equation {
it = it.body
}
if it.func() == math.attach and it.has("b") {
$it.base_it.b^2$
}
else {
$#it^2$
}
}
but to me, frobnorm(A)^2 is both more writable and more readable than pow2(frobnorm(A)). The other question is kind of old so I was wondering if there's any update to how the expected spacing can be achieved?
Discord
Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.