#let cc = text.with(fill: black)
#let oo = text.with(fill: orange)
$
oo(cc(a)/cc(b))
$
^^^ Any better way to do this? ^^^
#let cc = text.with(fill: black)
#let oo = text.with(fill: orange)
$
oo(cc(a)/cc(b))
$
^^^ Any better way to do this? ^^^
#show math.frac: set text(orange) gives the same result, so I guess a more hacky solution is necessary:
#show math.frac: set text(orange)
#show math.frac: it => {
show regex(".+"): set text(black)
it
}
$ (sigma A_1) / (delta b^2) $
Cool, useful if you need all your fractions to be that way actually. I will stick to my method for now as it was just a one-off.
To do a one-off:
#let oo(body) = {
show math.frac: set text(orange)
show math.frac: it => {
show regex(".+"): set text(black)
it
}
body
}
$ oo((sigma A_1) / (delta b^2)) $
#oo($ (sigma A_1) / (delta b^2) $)