I am writing a document with extra notes intended only for myself.
\newcommand{\mycomment}[1]{\emph{Note: #1}}
%\newcommand{\mycomment}[1]{}
When I wish to remove the extra comments, I simply comment the first line and uncomment the latter line. Then each call to \mycomment should do nothing. However, instead each call generates a small space. Is it possible to remove this space?
Many thanks.
\renewcommand{\mycomment}[1]{\null}if you want to remove these. – Martin - マーチン Jul 18 '13 at 15:51%\newcommand{\mycomment}[1]{\unskip}– Steven B. Segletes Jul 18 '13 at 15:53\nullwill reduce the space, but there will be a noticeable space after multiple calls.\unskipworks with the same effect as\ignorespaces(no space even after multiple calls). – user82371 Jul 18 '13 at 16:04\ignorespacesand\unskip. The former seems indeed to be safer; In some locations,\unskipcan generate an "ERROR: You can't use\unskipin vertical mode.", but\ignorespaceswill work fine. – user82371 Jul 18 '13 at 16:19