From 3a9aaf1244142adafeb4de51f887fb8a3a14170b Mon Sep 17 00:00:00 2001 From: Henrik Skov Midtiby Date: Thu, 21 Apr 2011 10:03:07 +0200 Subject: [PATCH] Suppress underfull hbox warnings generated by the todonotes package. Patch by Peter M Schuler. --- todonotes.dtx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/todonotes.dtx b/todonotes.dtx index 489f17b..2713689 100644 --- a/todonotes.dtx +++ b/todonotes.dtx @@ -46,7 +46,7 @@ % % \fi % -% \CheckSum{489} +% \CheckSum{495} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -159,6 +159,8 @@ % \changes{0.9.6}{2010/11/04}{Give fontsize to TikZ. Align notes with line where note % is set. Added new option fancyline. Patches by Benjamin Kellermann.} % \changes{0.9.7}{2011/03/07}{Updated documentation.} +% \changes{0.9.8}{2011/04/21}{Suppress warnings about underfull / overful boxes +% generated by the inserted todonotes. Patch by Peter M Schuler.} % \GetFileInfo{todonotes.dtx} % % \DoNotIndex{\newcommand,\newenvironment} @@ -1444,11 +1446,14 @@ \draw node[notestyle] (inNote) {};% \end{tikzpicture}% \else% + \let\originalHbadness\hbadness + \hbadness 100000 \begin{tikzpicture}[remember picture,baseline=(X.base)]% \node(X){\vphantom{X}};% \draw node[notestyle,font=\@todonotes@sizecommand,anchor=north] (inNote) at (X.north)% {\@todonotes@text};% \end{tikzpicture}% + \hbadness \originalHbadness \fi}% % \end{macrocode} % \end{macro}