The amsmath packages helpfully define a macro \DeclareMathOperator which does what it says on the tin: it declares a mathematical operator such as \sin or \Null or whatever and typesets it all nice and dandy.
If I want to do a one-shot operator, it seems a bit of a fuss to \DeclareMathOperator it if I'm only going to use it once. So:
Is there a command that typesets its contents in the same way that \DeclareMathOperator does? (And I'd like it to be exactly how \DeclareMathOperator does since I sometimes mess with fonts and colours and would like them consistent.)
\Null? – Lover of Structure Jul 04 '13 at 11:55\DeclareMathOperator{\Null}{Null}to allow me to write\Nullin the document. I generally use it for the null space of a matrix or linear transformation. As I often teach linear algebra I use it quite a lot so I use\DeclareMathOperatorto define it. But sometimes there's something that I'll only use once (see my comment on Yiannis' answer), hence this question. – Andrew Stacey Jul 04 '13 at 12:31