I'd like to manipulate the arguments in \newcommand. More explicitly, I'd like something like that:
\newcommand{\X}[1]{
#1+1
}
And if I call \X{0}, I want it to return 1 and not 0+1.
Thank you :-)
|
I'd like to manipulate the arguments in
And if I call Thank you :-) |
||||
|
This is the first time I tried
Note that you can also change |
|||||||||
|
{}). Usually, we don't put a greeting or a "thank you" in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Upvoting is the preferred way here to say "thank you" to users who helped you. – Claudio Fiandrino Jan 28 at 8:54#1argument always integer or decimal? You can also search for\numexpron this site. – percusse Jan 28 at 8:54:-)– hpesoj626 Jan 28 at 9:29