diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/todonotes')
-rw-r--r-- | Master/texmf-dist/tex/latex/todonotes/todonotes.sty | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/todonotes/todonotes.sty b/Master/texmf-dist/tex/latex/todonotes/todonotes.sty index 03ebf8c7eba..ccd55d1a025 100644 --- a/Master/texmf-dist/tex/latex/todonotes/todonotes.sty +++ b/Master/texmf-dist/tex/latex/todonotes/todonotes.sty @@ -22,7 +22,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{todonotes} - [2020/08/18 v1.1.3 Todonotes source and documentation.] + [2021/04/26 v1.1.4 Todonotes source and documentation.] \ProvidesPackage{todonotes}[2018/11/22] \RequirePackage{ifthen} @@ -30,7 +30,6 @@ \RequirePackage{xcolor} \RequirePackage{tikz} \usetikzlibrary{positioning} -\usetikzlibrary{shadows} \RequirePackage{calc} \newcommand\setuptodonotes[1]{\presetkeys{todonotes}{#1}{}} \newcommand{\@todonotes@text}{}% @@ -183,8 +182,14 @@ prior to loading the todonotes package.} \else\fi% {textsize}{\renewcommand{\@todonotes@textsize}{#1}} \define@key{todonotes.sty}% {size}{\renewcommand{\@todonotes@textsize}{#1}} +\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}} \define@key{todonotes.sty}% {figwidth}{\renewcommand{\@todonotes@figwidth}{#1}} \define@key{todonotes.sty}% @@ -326,10 +331,17 @@ prior to loading the todonotes package.} \else\fi% \renewcommand{\@todonotes@caption}{#2}% \setkeys{todonotes}{#1}% \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% \tikzstyle{notestyleleft} = [% |