summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
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
parentae0a6d178b5d23d8223da76cef8e2fa305772028 (diff)
todonotes (26apr21)
git-svn-id: svn://tug.org/texlive/trunk@58998 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/todonotes/examples/alterAppearenceOfListOfTodos.pdfbin64813 -> 64821 bytes
-rw-r--r--Master/texmf-dist/doc/latex/todonotes/examples/externalize.pdfbin29623 -> 29626 bytes
-rw-r--r--Master/texmf-dist/doc/latex/todonotes/examples/saveColorByUsingLayers.pdfbin27155 -> 27159 bytes
-rw-r--r--Master/texmf-dist/doc/latex/todonotes/todonotes.pdfbin317605 -> 318360 bytes
-rw-r--r--Master/texmf-dist/source/latex/todonotes/todonotes.dtx34
-rw-r--r--Master/texmf-dist/tex/latex/todonotes/todonotes.sty18
6 files changed, 42 insertions, 10 deletions
diff --git a/Master/texmf-dist/doc/latex/todonotes/examples/alterAppearenceOfListOfTodos.pdf b/Master/texmf-dist/doc/latex/todonotes/examples/alterAppearenceOfListOfTodos.pdf
index 9c5ad84d163..1bf726bc395 100644
--- a/Master/texmf-dist/doc/latex/todonotes/examples/alterAppearenceOfListOfTodos.pdf
+++ b/Master/texmf-dist/doc/latex/todonotes/examples/alterAppearenceOfListOfTodos.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/todonotes/examples/externalize.pdf b/Master/texmf-dist/doc/latex/todonotes/examples/externalize.pdf
index 13fc64975f1..f22dec514d6 100644
--- a/Master/texmf-dist/doc/latex/todonotes/examples/externalize.pdf
+++ b/Master/texmf-dist/doc/latex/todonotes/examples/externalize.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/todonotes/examples/saveColorByUsingLayers.pdf b/Master/texmf-dist/doc/latex/todonotes/examples/saveColorByUsingLayers.pdf
index d0544a53ec9..3f3dc73c5ee 100644
--- a/Master/texmf-dist/doc/latex/todonotes/examples/saveColorByUsingLayers.pdf
+++ b/Master/texmf-dist/doc/latex/todonotes/examples/saveColorByUsingLayers.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/todonotes/todonotes.pdf b/Master/texmf-dist/doc/latex/todonotes/todonotes.pdf
index a3f20cdf2b9..ea1dc3e6b08 100644
--- a/Master/texmf-dist/doc/latex/todonotes/todonotes.pdf
+++ b/Master/texmf-dist/doc/latex/todonotes/todonotes.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/todonotes/todonotes.dtx b/Master/texmf-dist/source/latex/todonotes/todonotes.dtx
index 484d825eb3e..0ca23696c62 100644
--- a/Master/texmf-dist/source/latex/todonotes/todonotes.dtx
+++ b/Master/texmf-dist/source/latex/todonotes/todonotes.dtx
@@ -20,14 +20,14 @@
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{todonotes}
%<*package>
- [2020/08/18 v1.1.3 Todonotes source and documentation.]
+ [2021/04/26 v1.1.4 Todonotes source and documentation.]
%</package>
%
%<*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 @@
%</driver>
% \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/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} = [%