Merge branch 'SpacingIssues' into ReleaseBranch

master
Henrik Skov Midtiby 14 years ago
commit 887f245604
  1. 33
      todonotes.dtx

@ -1412,7 +1412,7 @@
% \begin{macrocode} % \begin{macrocode}
\if@todonotes@disabled% \if@todonotes@disabled%
\newcommand{\listoftodos}[1][]{} \newcommand{\listoftodos}[1][]{}
\newcommand{\@todo}[2][]{\ignorespaces} \newcommand{\@todo}[2][]{}
\newcommand{\missingfigure}[2][]{} \newcommand{\missingfigure}[2][]{}
\else % \if@todonotes@disabled \else % \if@todonotes@disabled
% \end{macrocode} % \end{macrocode}
@ -1489,7 +1489,7 @@
\else% \else%
\renewcommand{\@todonotes@caption}{#2}% \renewcommand{\@todonotes@caption}{#2}%
\fi% \fi%
\@todonotes@addElementToListOfTodos \@todonotes@addElementToListOfTodos%
\fi% \fi%
% \end{macrocode} % \end{macrocode}
% Prepend the short caption given if it is requested % Prepend the short caption given if it is requested
@ -1504,12 +1504,11 @@
% marginpar), below is the code for the inline placement. % marginpar), below is the code for the inline placement.
% \begin{macrocode} % \begin{macrocode}
\if@todonotes@inlinenote% \if@todonotes@inlinenote%
\@todonotes@drawInlineNote \@todonotes@drawInlineNote%
\else% \else%
\@todonotes@drawMarginNoteWithLine \@todonotes@drawMarginNoteWithLine%
\fi %\if@todonotes@inlinenote \fi%\if@todonotes@inlinenote
\fi %\if@todonotes@localdisable \fi%\if@todonotes@localdisable
\ignorespaces%
}% }%
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
@ -1523,7 +1522,7 @@
% First is the current location in the document stored, this enables % First is the current location in the document stored, this enables
% us later to connect this point with the inserted todonote. % us later to connect this point with the inserted todonote.
% \begin{macrocode} % \begin{macrocode}
\begin{tikzpicture}[remember picture, baseline=-0.75ex]% \begin{tikzpicture}[remember picture, overlay, baseline=-0.75ex]%
\node [coordinate] (inText) {};% \node [coordinate] (inText) {};%
\end{tikzpicture}% \end{tikzpicture}%
\marginpar[{% Draw note in left margin \marginpar[{% Draw note in left margin
@ -1574,7 +1573,7 @@
\draw node[inlinenotestyle] {};\end{tikzpicture}\par}% \draw node[inlinenotestyle] {};\end{tikzpicture}\par}%
\else% \else%
{\par\noindent\begin{tikzpicture}[remember picture]% {\par\noindent\begin{tikzpicture}[remember picture]%
\draw node[inlinenotestyle,font=\@todonotes@sizecommand] {% \draw node[inlinenotestyle,font=\@todonotes@sizecommand]{%
\if@todonotes@authorgiven% \if@todonotes@authorgiven%
{\noindent \@todonotes@sizecommand \@todonotes@author:\,\@todonotes@text}% {\noindent \@todonotes@sizecommand \@todonotes@author:\,\@todonotes@text}%
\else% \else%
@ -1591,7 +1590,7 @@
\if@todonotes@dviStyle% \if@todonotes@dviStyle%
\begin{tikzpicture}[remember picture]% \begin{tikzpicture}[remember picture]%
\draw node[notestyle] {};% \draw node[notestyle] {};%
\end{tikzpicture}\\ % \end{tikzpicture}\\%
\begin{minipage}{\@todonotes@textwidth}% \begin{minipage}{\@todonotes@textwidth}%
\if@todonotes@authorgiven% \if@todonotes@authorgiven%
\@todonotes@sizecommand \@todonotes@author \@todonotes@text% \@todonotes@sizecommand \@todonotes@author \@todonotes@text%
@ -1603,8 +1602,8 @@
\draw node[notestyle] (inNote) {};% \draw node[notestyle] (inNote) {};%
\end{tikzpicture}% \end{tikzpicture}%
\else% \else%
\let\originalHbadness\hbadness \let\originalHbadness\hbadness%
\hbadness 100000 \hbadness 100000%
\begin{tikzpicture}[remember picture,baseline=(X.base)]% \begin{tikzpicture}[remember picture,baseline=(X.base)]%
\node(X){\vphantom{X}};% \node(X){\vphantom{X}};%
\draw node[notestyle,font=\@todonotes@sizecommand,anchor=north] (inNote) at (X.north)% \draw node[notestyle,font=\@todonotes@sizecommand,anchor=north] (inNote) at (X.north)%
@ -1620,7 +1619,7 @@
{\@todonotes@text};% {\@todonotes@text};%
\fi% \fi%
\end{tikzpicture}% \end{tikzpicture}%
\hbadness \originalHbadness \hbadness \originalHbadness%
\fi}% \fi}%
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
@ -1646,14 +1645,14 @@
-| ([xshift=-0.2cm] inNote.west)% -| ([xshift=-0.2cm] inNote.west)%
-| (inNote.west);% -| (inNote.west);%
\end{tikzpicture}% \end{tikzpicture}%
\fi \fi%
\fi}% \fi}%
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
% \begin{macro}{drawLineToLeftMargin} % \begin{macro}{drawLineToLeftMargin}
% Define helper function |drawLineToLeftMargin|. % Define helper function |drawLineToLeftMargin|.
% \begin{macrocode} % \begin{macrocode}
\newcommand{\@todonotes@drawLineToLeftMargin}{ \newcommand{\@todonotes@drawLineToLeftMargin}{%
\if@todonotes@line% \if@todonotes@line%
\if@todonotes@fancyline% \if@todonotes@fancyline%
\tikz[remember picture,overlay]{% \tikz[remember picture,overlay]{%
@ -1673,7 +1672,7 @@
-| (inNote.east);% -| (inNote.east);%
\end{tikzpicture}% \end{tikzpicture}%
\fi% \fi%
\fi} \fi}%
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
% \begin{macro}{\missingfigure} % \begin{macro}{\missingfigure}
@ -1716,7 +1715,7 @@
% \begin{macro}{\todo} % \begin{macro}{\todo}
% Define the |\todo| command as a redirection to |\@todo|. % Define the |\todo| command as a redirection to |\@todo|.
% \begin{macrocode} % \begin{macrocode}
\newcommand{\todo}[2][]{\@todo[#1]{#2}}% \newcommand{\todo}[2][]{\@bsphack\@todo[#1]{#2}\@esphack\ignorespaces}%
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
% \appendix % \appendix

Loading…
Cancel
Save