From 765ab1a2fa26c799bc54af8b2db4649e0109c1ac Mon Sep 17 00:00:00 2001 From: Henrik Skov Midtiby Date: Wed, 17 Oct 2018 14:17:26 +0200 Subject: [PATCH] Fix bug related to interpretation of the size option to the package. Solution provided by Frank Mittelbach. --- todonotes.dtx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/todonotes.dtx b/todonotes.dtx index a77f78c..710ce42 100644 --- a/todonotes.dtx +++ b/todonotes.dtx @@ -1601,9 +1601,12 @@ prior to loading the todonotes package.} \else\fi% figwidth=\@todonotes@figwidth,% figheight=\@todonotes@figheight,% figcolor=\@todonotes@figcolor,% - line, list, size=\@todonotes@textsize, + line, list,% inlinewidth=\linewidth, inlinepar}{}% +\@temptokena\expandafter{\@todonotes@textsize} +\edef\next{\noexpand\presetkeys{todonotes}{size=\the\@temptokena}{}} +\next % \end{macrocode} % \subsection{The main code part} % Here is the actual macros defined.