I like increasing spacing around equals signs and proportional signs. So far, I’ve done that like this:
#show math.prop: it => [#h(10pt) #it #h(10pt)]
#show math.eq: it => [#h(10pt) #it #h(10pt)]
Any way I could do both at once? I would like to avoid repeated code. I believe using a for loop would limit the scope of the show rules to inside the loop.
#show math.equation: it => {
// import sym: *
// or
import math: *
let symbols = (eq, prop)
show regex("[" + symbols.join() + "]"): it => [#h(10pt) #it #h(10pt)]
it
}
$a prop b$ \
$a eq b$
But from the docs these symbols are classified as “relation” class, so I assume that using custom spacing around the symbol can result in pure typesetting, which I assume can be fixed by wrapping it in the appropriate class: