it's not really clear to me how to declare unary and binary math operators in a "good" way. At the very least, I'd like spacing to be correct. But I'd also like the defined macro to be used "as is" in text mode (with correct spacing here also).
For instance, I have operators called X and U, the former being unary while the latter is binary. As I want them to work both in math and text mode, with correct spacing, I define them the following way, as of now:
But I'm not really sure it's the best practice...