Am Mittwoch, den 07.12.2016, 22:14 -0500 schrieb Richard Heck: > So it looks as if this is a bug in the LaTeX package, then, not in > LyX?
Yes, the following code in the preamble fixes it: \renewcommand{\@todonotes@drawMarginNote}{% \if@todonotes@dviStyle% \begin{tikzpicture}[remember picture]% \draw node[notestyle] {};% \end{tikzpicture}\\% \begin{minipage}{\@todonotes@textwidth}% \if@todonotes@authorgiven% \@todonotes@sizecommand \@todonotes@author \@todonotes@text% \else% \@todonotes@sizecommand \@todonotes@text% \fi% \end{minipage}\\% \begin{tikzpicture}[remember picture]% \draw node[notestyle] (inNote) {};% \end{tikzpicture}% \else% \let\originalHbadness\hbadness% \hbadness 100000% \begin{tikzpicture}[remember picture,baseline=(X.base)]% % Fix 1: consider \@todonotes@sizecommand here! \node(X){\vphantom{\@todonotes@sizecommand X}};% \draw node[notestyle,font=\@todonotes@sizecommand,anchor=north] (inNote) at (X.north)% % Fix 2: don't output \@todonotes@text twice {};%{\@todonotes@text};% \if@todonotes@authorgiven% \draw node[notestyle,font=\@todonotes@sizecommand,anchor=no rth] (inNote) at (X.north)% {\@todonotes@sizecommand\@todonotes@author};% \node(Y)[below=of X]{};% \draw node[notestyle,font=\@todonotes@sizecommand,anchor=no rth] (inNote) at (X.south)% {\@todonotes@text};% \else% \draw node[notestyle,font=\@todonotes@sizecommand,anchor=no rth] (inNote) at (X.north)% {\@todonotes@text};% \fi% \end{tikzpicture}% \hbadness \originalHbadness% \fi}% I'll do a bug report. Jürgen
signature.asc
Description: This is a digitally signed message part