Hey guys I am frequently using function in my documents. For example
#let formatXY(msg, color: blue) = {
text(msg, color)
}
Now having declared a function we can simply use it and provide arguments to it. Like:
Some paragraph #formatXY("test")
My question now is how to for instance set the color of all future formatXY calls to be red instead. When trying to use a set / show rule, I get the hint / error that: “only element functions can be used in set rules”.
For example: #set formatXY(color:red)
Has anyone of you figured this one out or is it impossible to use show / set rules for custom functions?