When I define a \newcommand over multiple lines, I get unwanted white space in my output.
How do I make it so I can write a long command, but still make it readable, without getting the extra white spaces?
My current solution is just to write everything without line breaks, but that's not very sustainable.
Here is a MWE of this behaviour:
\documentclass{memoir}
\begin{document}
\newcommand{\lraA}{B}
\newcommand{\lraB}{
%lots of latex logic
%so this command is on multiple lines
B
}
\ \\
A\lraA{}C\\
A\lraB{}C
\end{document}
This produces:
ABC
A B C
\newcommand{\lraB}{%– Jun 09 '16 at 11:02%to be one of your best friends. Welcome to the site. – Steven B. Segletes Jun 09 '16 at 11:37