I noticed that while \ker renders correctly as the "kernel" operator in Linear Algebra, the corresponding \im for the "image" is not defined (I tried everything that could possibly be an abbreviation for "image") nor is "rank" given a command.

Can I get these operators from some kind of 'math add-on' package? And if not, how should I typeset operators correctly? I tried \text{im}A but this didn't put any space, so I ended up doing \text{im}\, A - is that the right amount of spacing for an operator?

EDIT: Also, what's the difference between \text{stuff} and \mathrm{text}?


You can use \DeclareMathOperator to declare other math operators:

enter image description here

There are way too many to have them all defined so \DeclareMathOperator is provided to allow one to define their own.





\ker A \quad \im B
| improve this answer | |
  • Ok so the first brace is the code, and the second is what it will write? So I could do a shortcut like \DeclareMathOperator{\i}{image} and have it write out "image" is that correct? – user50612 Apr 30 '14 at 2:59
  • Can I make a package with a bunch of those "declare operators" that I can use in all my papers? – user50612 Apr 30 '14 at 3:02
  • 1
    I'd recommend using longer names over shorter names so as to not overwrite any existing macros. Even if you check that a particular macro names is not currently in use, it may be used by a package that you decide to use in the future. So \Image would be preferable over \i (which already has a meaning). And yes you can put all these in one .sty file and just include it as you do other packages. – Peter Grill Apr 30 '14 at 3:03
  • Ok got it, cheers! – user50612 Apr 30 '14 at 3:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.