texlive[42423] Master/texmf-dist: todonotes (2nov16)

commits+karl at tug.org commits+karl at tug.org
Wed Nov 2 21:29:04 CET 2016


Revision: 42423
          http://tug.org/svn/texlive?view=revision&revision=42423
Author:   karl
Date:     2016-11-02 21:29:04 +0100 (Wed, 02 Nov 2016)
Log Message:
-----------
todonotes (2nov16)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/todonotes/examples/alterAppearenceOfListOfTodos.pdf
    trunk/Master/texmf-dist/doc/latex/todonotes/examples/externalize.pdf
    trunk/Master/texmf-dist/doc/latex/todonotes/examples/saveColorByUsingLayers.pdf
    trunk/Master/texmf-dist/doc/latex/todonotes/todonotes.pdf
    trunk/Master/texmf-dist/source/latex/todonotes/todonotes.dtx
    trunk/Master/texmf-dist/tex/latex/todonotes/todonotes.sty

Modified: trunk/Master/texmf-dist/doc/latex/todonotes/examples/alterAppearenceOfListOfTodos.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/todonotes/examples/externalize.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/todonotes/examples/saveColorByUsingLayers.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/todonotes/todonotes.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/todonotes/todonotes.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/todonotes/todonotes.dtx	2016-11-02 02:17:14 UTC (rev 42422)
+++ trunk/Master/texmf-dist/source/latex/todonotes/todonotes.dtx	2016-11-02 20:29:04 UTC (rev 42423)
@@ -184,6 +184,7 @@
 %             Removed some underfull box warnings, solution by Ernst Blecha.} 
 % \changes{1.0.4}{2015/07/09}{Restructured documentation and placed some examples in the 
 %             doc/examples subdirectory.}
+% \changes{1.0.5}{2016/11/02}{Example of how to change the space eating behaviour added by Anselm Wagner. Reduced the width of missingfigure to avoid bad box warnings.}
 % \GetFileInfo{todonotes.dtx}   
 %
 % \DoNotIndex{\newcommand,\newenvironment}
@@ -304,7 +305,7 @@
 % The option |obeyFinal| does something similar, except that the 
 % todonotes package is only disabled if the |final| option given.
 %
-% \DescribeMacro{danish, german, ngerman, french, swedish}
+% \DescribeMacro{danish, german, ngerman, english, french, swedish}
 % \DescribeMacro{spanish, catalan, italian}
 % \DescribeMacro{portuguese, dutch, croatian}
 % Use translations of the text strings 
@@ -316,6 +317,7 @@
 % croatian,
 % danish,
 % dutch,
+% english, 
 % french,
 % german,
 % ngerman,
@@ -627,11 +629,17 @@
 % \subsubsection{Spacing around inserted notes}
 % Inserted todo commands will eat the white space after the command.
 % \begin{verbatim}
-%Testing\todo{Does this eat the space?} testing
-% \end{verbatim}
-% 
-% Testing\todo{Does this eat the space?}testing
+%Testing\todo{Does this eat the space?} testing.\end{verbatim}
+% \noindent
+% Testing\todo{Does this eat the space?} testing.
 %
+% This can be prevented by adding curly parenthesis after the 
+% todo command, like shown below.
+% \begin{verbatim}
+%Testing\todo{Does this eat the space?}{} testing.\end{verbatim}
+% \noindent
+% Testing\todo{Does this eat the space?}{} testing.
+%
 % \subsubsection{Wrapping of long lines in list of todos}
 % When a document is compiled with latex (and not pdflatex) long
 % items in the list of todos are not wrapped into several lines, and
@@ -1119,11 +1127,23 @@
 % \subsubsection{Highligt text to fix}
 % Tobias Winchen provides the following example on how to highlight
 % text related to the inserted todonote.
-% \newcommand{\hlfix}[2]{\texthl{#1}\todo{#2}} 
+% \makeatletter
+% \if at todonotes@disabled
+% \newcommand{\hlfix}[2]{#1}
+% \else
+% \newcommand{\hlfix}[2]{\texthl{#1}\todo{#2}}
+% \fi
+% \makeatother
 % Example \hlfix{wrong text}{fix text}~continues here. 
 % Notice that the code relies on the \verb!soul! package.
 % \begin{verbatim}
-% \newcommand{\hlfix}[2]{\texthl{#1}\todo{#2}} 
+% \makeatletter
+% \if at todonotes@disabled
+% \newcommand{\hlfix}[2]{#1}
+% \else
+% \newcommand{\hlfix}[2]{\texthl{#1}\todo{#2}}
+% \fi
+% \makeatother
 % Example \hlfix{wrong text}{fix text}~continues here. 
 % \end{verbatim}
 % 
@@ -1480,10 +1500,10 @@
 %    \begin{macrocode}
 \newcommand{\@todonotes at currentfigwidth}{\@todonotes at figwidth}
 \define at key{todonotes}%
-    {figwidth}{\renewcommand{\@todonotes at currentfigwidth}{#1}}
+    {figwidth}{\renewcommand{\@todonotes at currentfigwidth}{#1-2pt}}
 \newcommand{\@todonotes at currentfigheight}{\@todonotes at figheight}
 \define at key{todonotes}%
-    {figheight}{\renewcommand{\@todonotes at currentfigheight}{#1}}
+    {figheight}{\renewcommand{\@todonotes at currentfigheight}{#1-2pt}}
 \newcommand{\@todonotes at currentfigcolor}{\@todonotes at figcolor}
 \define at key{todonotes}%
     {figcolor}{\renewcommand{\@todonotes at currentfigcolor}{#1}}
@@ -1795,7 +1815,7 @@
 \draw (0, -0.3) node {\@todonotes at MissingFigureDown};
 \end{tikzpicture}\hfill
 }% Ending \missingfigure command
-\fi % Ending \@todonotes at ifdisabled
+\fi% Ending \@todonotes at ifdisabled
 %    \end{macrocode}
 % \end{macro}
 % \begin{macro}{\todototoc}

Modified: trunk/Master/texmf-dist/tex/latex/todonotes/todonotes.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/todonotes/todonotes.sty	2016-11-02 02:17:14 UTC (rev 42422)
+++ trunk/Master/texmf-dist/tex/latex/todonotes/todonotes.sty	2016-11-02 20:29:04 UTC (rev 42423)
@@ -239,10 +239,10 @@
 \define at key{todonotes}{nocaption}[]{\@todonotes at captiongivenfalse}%
 \newcommand{\@todonotes at currentfigwidth}{\@todonotes at figwidth}
 \define at key{todonotes}%
-    {figwidth}{\renewcommand{\@todonotes at currentfigwidth}{#1}}
+    {figwidth}{\renewcommand{\@todonotes at currentfigwidth}{#1-2pt}}
 \newcommand{\@todonotes at currentfigheight}{\@todonotes at figheight}
 \define at key{todonotes}%
-    {figheight}{\renewcommand{\@todonotes at currentfigheight}{#1}}
+    {figheight}{\renewcommand{\@todonotes at currentfigheight}{#1-2pt}}
 \newcommand{\@todonotes at currentfigcolor}{\@todonotes at figcolor}
 \define at key{todonotes}%
     {figcolor}{\renewcommand{\@todonotes at currentfigcolor}{#1}}
@@ -460,7 +460,7 @@
 \draw (0, -0.3) node {\@todonotes at MissingFigureDown};
 \end{tikzpicture}\hfill
 }% Ending \missingfigure command
-\fi % Ending \@todonotes at ifdisabled
+\fi% Ending \@todonotes at ifdisabled
 \newcommand{\todototoc}
 {
     \if at todonotes@disabled



More information about the tex-live-commits mailing list