I'm using the todonotes package to add little margin notes to my text, however writing
Hello\todo{test} World!
removes the interword space as is already pointed out in this question. So I tried
\pretocmd{\todo}{\@bsphack}{}{}
\apptocmd{\todo}{\@esphack}{}{}
and this adds the interword space but simply outputs all parameters instead of passing them to \todo.
Full MWE:
\documentclass{article}
\usepackage{etoolbox}
\usepackage{todonotes}
\makeatletter
\pretocmd{\todo}{\@bsphack}{}{}
\apptocmd{\todo}{\@esphack}{}{}
\makeatother
\begin{document}
Hello\todo{test} World!
\end{document}
\[be]sphackdo (or perhaps more appropriately, which package are they from)? – Sean Allred Mar 03 '14 at 17:41