How can I create a newcommand (for latex preamble, using lyx) which its arguments are more than one character?
Specifically, I'm trying to create myself a shortcut for the Rank–nullity theorem and tried to set the following latex preamble I wrote: (I've set \Ima command to Im text)
\newcommand{\dimthm}[2]{\dim{#1}=\dim{\Ima{#2}}+\dim{\ker{#2}}}
It works fine if every argument is only one character: \dimthm VT will produce:
dim V = dim Im T + dim ker T
But if for example my transformation is LALA I won't be able to get
dim V = dim Im LALA + dim ker LALA
Is it possible?
I've saw a few similar question over here, but couldn't make any solution work.
\dimthm{VT}then? Otherwise TeX/LaTeX just reads theVand ignores theTas macro argument to\dimthm– Mar 24 '17 at 17:16