I'm doing this:
\documentclass{article}
\begin{document}
\newcommand\print[1]{[\texttt{#1}]}
\print{ foo }
\end{document}
I'm getting:
[ foo ]
How can I make it print this:
[ foo ]
spacing
I'm doing this:
\documentclass{article}
\begin{document}
\newcommand\print[1]{[\texttt{#1}]}
\print{ foo }
\end{document}
I'm getting:
[ foo ]
How can I make it print this:
[ foo ]
Best Answer
Consider activating
\obeyspaces
: