summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/todonotes
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-04-27 13:32:15 +0000
committerKarl Berry <karl@freefriends.org>2021-04-27 13:32:15 +0000
commit6a6e0023683198607247630bb34b0cdb305c2916 (patch)
tree26bc64b36b3a95955c138c3f6365c4fbf801657a /Master/texmf-dist/tex/latex/todonotes
parentae0a6d178b5d23d8223da76cef8e2fa305772028 (diff)
todonotes (26apr21)
git-svn-id: svn://tug.org/texlive/trunk@58998 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/todonotes')
-rw-r--r--Master/texmf-dist/tex/latex/todonotes/todonotes.sty18
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} = [%