From 95b070aee1a6351879af117f723c84d50b48338d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 27 Apr 2021 03:00:54 +0000 Subject: CTAN sync 202104270300 --- .../examples/alterAppearenceOfListOfTodos.pdf | Bin 64813 -> 64821 bytes .../contrib/todonotes/examples/externalize.pdf | Bin 29623 -> 29626 bytes .../todonotes/examples/saveColorByUsingLayers.pdf | Bin 27155 -> 27159 bytes macros/latex/contrib/todonotes/todonotes.dtx | 34 ++++++++++++++++----- macros/latex/contrib/todonotes/todonotes.pdf | Bin 317605 -> 318360 bytes 5 files changed, 27 insertions(+), 7 deletions(-) (limited to 'macros/latex/contrib/todonotes') diff --git a/macros/latex/contrib/todonotes/examples/alterAppearenceOfListOfTodos.pdf b/macros/latex/contrib/todonotes/examples/alterAppearenceOfListOfTodos.pdf index 9c5ad84d16..1bf726bc39 100644 Binary files a/macros/latex/contrib/todonotes/examples/alterAppearenceOfListOfTodos.pdf and b/macros/latex/contrib/todonotes/examples/alterAppearenceOfListOfTodos.pdf differ diff --git a/macros/latex/contrib/todonotes/examples/externalize.pdf b/macros/latex/contrib/todonotes/examples/externalize.pdf index 13fc64975f..f22dec514d 100644 Binary files a/macros/latex/contrib/todonotes/examples/externalize.pdf and b/macros/latex/contrib/todonotes/examples/externalize.pdf differ diff --git a/macros/latex/contrib/todonotes/examples/saveColorByUsingLayers.pdf b/macros/latex/contrib/todonotes/examples/saveColorByUsingLayers.pdf index d0544a53ec..3f3dc73c5e 100644 Binary files a/macros/latex/contrib/todonotes/examples/saveColorByUsingLayers.pdf and b/macros/latex/contrib/todonotes/examples/saveColorByUsingLayers.pdf differ diff --git a/macros/latex/contrib/todonotes/todonotes.dtx b/macros/latex/contrib/todonotes/todonotes.dtx index 484d825eb3..0ca23696c6 100644 --- a/macros/latex/contrib/todonotes/todonotes.dtx +++ b/macros/latex/contrib/todonotes/todonotes.dtx @@ -20,14 +20,14 @@ %\NeedsTeXFormat{LaTeX2e}[1999/12/01] %\ProvidesPackage{todonotes} %<*package> - [2020/08/18 v1.1.3 Todonotes source and documentation.] + [2021/04/26 v1.1.4 Todonotes source and documentation.] % % %<*driver> \documentclass{ltxdoc} \usepackage{wrapfig} \usepackage[colorlinks, linkcolor=black, urlcolor=blue]{hyperref} -\usepackage[colorinlistoftodos]{todonotes}[2020/08/18] +\usepackage[colorinlistoftodos, loadshadowlibrary]{todonotes}[2021/04/26] \usepackage{amsmath} \usepackage{setspace} \usepackage{soul} @@ -45,7 +45,7 @@ % % \fi % -% \CheckSum{721} +% \CheckSum{731} % % \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 @@ -207,6 +207,8 @@ % \changes{1.1.2}{2019/01/24}{Fix issue 36 and 37.} % \changes{1.1.3}{2020/08/18}{Fix issue 48 and make colors used in the last todo % globally available.} +% \changes{1.1.4}{2021/04/26}{Fix issue 51 by avoid loading the tikz shadows +% library by default.} % \GetFileInfo{todonotes.dtx} % % \DoNotIndex{\newcommand,\newenvironment} @@ -394,9 +396,15 @@ % |caption=val| option for the todo command, where the given value % |val| is inserted in the inserted todonote. % +% \DescribeMacro{loadshadowlibrary} +% If given, the |shadows| tikz library will be loaded. This is required +% for adding shadows to the inserted todonotes. +% % \DescribeMacro{shadow} -% If the |shadow| option is given, the inserted todonotes will be -% displayed with a gray shadow. +% If the |shadow| option is given, the inserted todonotes will by +% default be displayed with a gray shadow. +% For this to work, the package option |loadshadowlibrary| must be +% provided. % I expect that the option will trigger problems with tikz versions % prior to 2.0. % @@ -1251,7 +1259,6 @@ \RequirePackage{xcolor} \RequirePackage{tikz} \usetikzlibrary{positioning} -\usetikzlibrary{shadows} \RequirePackage{calc} % \end{macrocode} % Implement a function for setting up the todonotes package. @@ -1480,8 +1487,14 @@ prior to loading the todonotes package.} \else\fi% % \end{macrocode} % Add option for shadows behind the inserted notes % \begin{macrocode} +\newif\if@todonotes@shadowlibraryloaded +\@todonotes@shadowlibraryloadedfalse +\DeclareOptionX{loadshadowlibrary}{% + \usetikzlibrary{shadows}% + \@todonotes@shadowlibraryloadedtrue} \newcommand{\@todonotes@shadowenabledbydefault}{noshadow} -\DeclareOptionX{shadow}{\renewcommand{\@todonotes@shadowenabledbydefault}{shadow}} +\DeclareOptionX{shadow}{% + \renewcommand{\@todonotes@shadowenabledbydefault}{shadow}} % \end{macrocode} % Add option for the default width of the figure inserted with % |\missingfigure|. @@ -1723,10 +1736,17 @@ prior to loading the todonotes package.} \else\fi% % Add shadows to the inserted todonotes. % \begin{macrocode} \if@todonotes@useshadow% +\if@todonotes@shadowlibraryloaded% \tikzstyle{notestyle} = [notestyleraw,% general shadow={shadow xshift=0.5ex, shadow yshift=-0.5ex,% opacity=1,fill=black!50}]% \else% +\PackageWarning{todonotes}{Trying to put a shadow below a todonote, + but the loadshadowlibrary option was not given when loading + the todonotes package} +\tikzstyle{notestyle} = [notestyleraw]% +\fi% +\else% \tikzstyle{notestyle} = [notestyleraw]% \fi% % \end{macrocode} diff --git a/macros/latex/contrib/todonotes/todonotes.pdf b/macros/latex/contrib/todonotes/todonotes.pdf index a3f20cdf2b..ea1dc3e6b0 100644 Binary files a/macros/latex/contrib/todonotes/todonotes.pdf and b/macros/latex/contrib/todonotes/todonotes.pdf differ -- cgit v1.2.3