Question
How can I \renewcommand{\todo} to give single spacing in the todonotes of an otherwise double spaced document?
What I have tried
The documentation (p. 11, section 1.8.6) suggests that something like this should work (with todonotes.sty in the proper directory), but it doesn't:
\documentclass[12pt]{article}
\usepackage{setspace}
\doublespacing
\usepackage[backgroundcolor=white,textsize=tiny]{todonotes}
\newcommand{\smalltodo}[2][]
{\todo[caption={#2}, #1]
{\begin{spacing}{0.5}#2\end{spacing}}}
\begin{document}
\smalltodo[inline]{testing todonotes here with single spacing}
\end{document}
giving the following error:
Runaway argument?
{\todo [caption={##2}, ##1] {\begin {spacing}{0.5}##2\end {spacing}} \ETC.
! File ended while scanning use of \@xargdef.
But I can't figure out the error.
Once I get this to work, can I just replace \newcommand{\smalltodo} with \renewcommand{\todo} ?
todonotes.sty(the optional argument to\ProvidesPackageat the top) for LaTeXLab I have no idea. – Caramdir Jan 5 '11 at 20:20\ProvidesPackage{todonotes}[2009/04/02], I was looking for a version number. – David Jan 5 '11 at 20:25