Suppress underfull hbox warnings generated by the todonotes package.

Patch by Peter M Schuler.
master
Henrik Skov Midtiby 15 years ago
parent 06fc25340c
commit 3a9aaf1244
  1. 7
      todonotes.dtx

@ -46,7 +46,7 @@
%</driver>
% \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}

Loading…
Cancel
Save