I'm rotating my text in a table cell with a \newcommand{\up}{\rotatebox[origin=c]{90}} definition. Sometimes it's good to rotate and align text left/right not centered.
So I would like to change that definition to take a second value that can be origin=l.
I found this but I'm not able to get a functional newcommand with second parameter something like \newcommand{\up{#2}}{\rotatebox[origin=#2]{90}}.
I wold like to use it like this: \up{l}{text}
Can somebody help me with that?
\newcommandis:\newcommand{\mycommand}[number of arguments]{definition of the command}. You can refer to the arguments as #1, #2, #3 etc. – bmv Feb 10 '18 at 22:08