texlive[59465] Master/texmf-dist: todonotes (4jun21)
commits+karl at tug.org
commits+karl at tug.org
Fri Jun 4 22:14:51 CEST 2021
Revision: 59465
http://tug.org/svn/texlive?view=revision&revision=59465
Author: karl
Date: 2021-06-04 22:14:51 +0200 (Fri, 04 Jun 2021)
Log Message:
-----------
todonotes (4jun21)
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 2021-06-04 20:14:38 UTC (rev 59464)
+++ trunk/Master/texmf-dist/source/latex/todonotes/todonotes.dtx 2021-06-04 20:14:51 UTC (rev 59465)
@@ -20,7 +20,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{todonotes}
%<*package>
- [2021/04/26 v1.1.4 Todonotes source and documentation.]
+ [2021/06/04 v1.1.5 Todonotes source and documentation.]
%</package>
%
%<*driver>
@@ -27,7 +27,7 @@
\documentclass{ltxdoc}
\usepackage{wrapfig}
\usepackage[colorlinks, linkcolor=black, urlcolor=blue]{hyperref}
-\usepackage[colorinlistoftodos, loadshadowlibrary]{todonotes}[2021/04/26]
+\usepackage[colorinlistoftodos, loadshadowlibrary]{todonotes}[2021/06/04]
\usepackage{amsmath}
\usepackage{setspace}
\usepackage{soul}
@@ -45,7 +45,7 @@
%</driver>
% \fi
%
-% \CheckSum{731}
+% \CheckSum{734}
%
% \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
@@ -209,6 +209,10 @@
% globally available.}
% \changes{1.1.4}{2021/04/26}{Fix issue 51 by avoid loading the tikz shadows
% library by default.}
+% \changes{1.1.5}{2021/06/04}{Fix issue 54 related to additional spacing around todos with
+% shadows. Actually use the tickmarkheight option as suggested by
+% José Francisco Loff library by default. Described a workaround for using
+% the standalone document class.}
% \GetFileInfo{todonotes.dtx}
%
% \DoNotIndex{\newcommand,\newenvironment}
@@ -808,7 +812,7 @@
% |\let\marginpar\oldmarginpar|
%
%
-% \subsubsection{todos in math and floating environments}
+% \subsubsection{Todos in math and floating environments}
% It is not possible to insert todonotes into math environments or
% floating environments like \verb!figure! or \verb!table!.
% By replacing the marginpar command with a marginnote this
@@ -835,6 +839,26 @@
% \end{verbatim}
%
%
+% \subsubsection{Conflict between marginpar and the standalone class}
+%
+% The \verb!standalone! document class is not compatible with the
+% \verb!\marginpar! command, which is used in the todonotes package
+% to insert contents in the side margins.
+% A workaround is to replace the \verb!\marginpar! with \verb!\marginnote!.
+% This is demonstrated here:
+% \begin{verbatim}
+% \documentclass[crop=false]{standalone}
+% \usepackage{todonotes}
+% \usepackage{marginnote}
+% \let\marginpar\marginnote
+% \begin{document}
+% Lorem ipsum
+% \todo{Bug}
+% \end{document}
+% \end{verbatim}
+%
+%
+%
% \subsection{Things to improve}
% This is a list of things I consider to improve sometime in the
% future. It have not been done yet as I lack the time or skills to
@@ -1240,9 +1264,39 @@
% \end{verbatim}
%
%
+% \subsubsection{Adding color coded levels of todos}
%
+% Sometimes it can be beneficial to be able to distinguish
+% between different types of todos.
+% For this I would suggest the following approach:
+% \begin{verbatim}
+% \newcommand{\todoerror}[2][]{\todo[color=red!70, #1]{#2}}
+% \newcommand{\todowarn}[2][]{\todo[color=orange, #1]{#2}}
+% \newcommand{\todoremark}[2][]{\todo[color=yellow!80!black, #1]{#2}}
+% \newcommand{\todohint}[2][]{\todo[color=green!20, #1]{#2}}
+% \newcommand{\tododone}[2][]{\todo[color=blue!50, #1]{#2}}
+%
+% \todoerror[inline]{Testing}
+% \todoremark{Testing}
+% \todowarn[inline]{Testing}
+% \todohint{Testing}
+% \tododone[disable]{Testing}
+% \end{verbatim}
%
+% \newcommand{\todoerror}[2][]{\todo[color=red!70, #1]{#2}}
+% \newcommand{\todowarn}[2][]{\todo[color=orange, #1]{#2}}
+% \newcommand{\todoremark}[2][]{\todo[color=yellow!80!black, #1]{#2}}
+% \newcommand{\todohint}[2][]{\todo[color=green!20, #1]{#2}}
+% \newcommand{\tododone}[2][]{\todo[color=blue!50, #1]{#2}}
%
+% \todoerror[inline]{Testing}
+% \todoremark{Testing}
+% \todowarn[inline]{Testing}
+% \todohint{Testing}
+% \tododone[disable]{Testing}
+%
+%
+%
% \iffalse
% \StopEventually{\PrintChanges\PrintIndex}
% \fi
@@ -1253,7 +1307,7 @@
%
% Identifies the package and loads the packages dependences.
% \begin{macrocode}
-\ProvidesPackage{todonotes}[2018/11/22]
+\ProvidesPackage{todonotes}[2021/06/04]
\RequirePackage{ifthen}
\RequirePackage{xkeyval}
\RequirePackage{xcolor}
@@ -1272,7 +1326,7 @@
\newcommand{\@todonotes at textcolor}{black}
\newcommand{\@todonotes at linecolor}{orange}
\newcommand{\@todonotes at bordercolor}{black}
-\newcommand{\@todonotes at tickmarkheight}{0cm}
+\newcommand{\@todonotes at tickmarkheight}{unused value}
\newcommand{\@todonotes at textwidth}{\marginparwidth}
\newcommand{\@todonotes at textsize}{\normalsize}
\newcommand{\@todonotes at figwidth}{\linewidth}
@@ -1463,8 +1517,9 @@
% Make the height of the line start marking as
% an option.
% \begin{macrocode}
-\define at key{todonotes.sty}%
- {tickmarkheight}{\renewcommand{\@todonotes at tickmarkheight}{#1}}
+\newcommand{\@todonotes at defaulttickmarkheight}{0cm}
+\define at key{todonotes.sty}{tickmarkheight}{%
+ \renewcommand{\@todonotes at defaulttickmarkheight}{#1}}%
% \end{macrocode}
% Set whether short captions given as arguments to the todo command
% should be included in the inserted todonote.
@@ -1490,11 +1545,11 @@
\newif\if at todonotes@shadowlibraryloaded
\@todonotes at shadowlibraryloadedfalse
\DeclareOptionX{loadshadowlibrary}{%
- \usetikzlibrary{shadows}%
- \@todonotes at shadowlibraryloadedtrue}
+ \usetikzlibrary{shadows}%
+ \@todonotes at shadowlibraryloadedtrue}
\newcommand{\@todonotes at shadowenabledbydefault}{noshadow}
\DeclareOptionX{shadow}{%
- \renewcommand{\@todonotes at shadowenabledbydefault}{shadow}}
+ \renewcommand{\@todonotes at shadowenabledbydefault}{shadow}}
% \end{macrocode}
% Add option for the default width of the figure inserted with
% |\missingfigure|.
@@ -1665,7 +1720,7 @@
backgroundcolor=\@todonotes at backgroundcolor,%
textcolor=\@todonotes at textcolor,%
bordercolor=\@todonotes at bordercolor,%
- tickmarkheight=0cm,%
+ tickmarkheight=\@todonotes at defaulttickmarkheight,%
nofancyline,%
nodisable,%
noinline,%
@@ -1741,9 +1796,9 @@
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}
+\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%
Modified: trunk/Master/texmf-dist/tex/latex/todonotes/todonotes.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/todonotes/todonotes.sty 2021-06-04 20:14:38 UTC (rev 59464)
+++ trunk/Master/texmf-dist/tex/latex/todonotes/todonotes.sty 2021-06-04 20:14:51 UTC (rev 59465)
@@ -22,9 +22,9 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{todonotes}
- [2021/04/26 v1.1.4 Todonotes source and documentation.]
+ [2021/06/04 v1.1.5 Todonotes source and documentation.]
-\ProvidesPackage{todonotes}[2018/11/22]
+\ProvidesPackage{todonotes}[2021/06/04]
\RequirePackage{ifthen}
\RequirePackage{xkeyval}
\RequirePackage{xcolor}
@@ -37,7 +37,7 @@
\newcommand{\@todonotes at textcolor}{black}
\newcommand{\@todonotes at linecolor}{orange}
\newcommand{\@todonotes at bordercolor}{black}
-\newcommand{\@todonotes at tickmarkheight}{0cm}
+\newcommand{\@todonotes at tickmarkheight}{unused value}
\newcommand{\@todonotes at textwidth}{\marginparwidth}
\newcommand{\@todonotes at textsize}{\normalsize}
\newcommand{\@todonotes at figwidth}{\linewidth}
@@ -171,8 +171,9 @@
{linecolor}{\renewcommand{\@todonotes at linecolor}{#1}}
\define at key{todonotes.sty}%
{bordercolor}{\renewcommand{\@todonotes at bordercolor}{#1}}
-\define at key{todonotes.sty}%
- {tickmarkheight}{\renewcommand{\@todonotes at tickmarkheight}{#1}}
+\newcommand{\@todonotes at defaulttickmarkheight}{0cm}
+\define at key{todonotes.sty}{tickmarkheight}{%
+ \renewcommand{\@todonotes at defaulttickmarkheight}{#1}}%
\newif{\if at todonotes@prependcaptionglobal}
\@todonotes at prependcaptionglobalfalse
\DeclareOptionX{prependcaption}{\@todonotes at prependcaptionglobaltrue}
@@ -185,11 +186,11 @@
\newif\if at todonotes@shadowlibraryloaded
\@todonotes at shadowlibraryloadedfalse
\DeclareOptionX{loadshadowlibrary}{%
-\usetikzlibrary{shadows}%
-\@todonotes at shadowlibraryloadedtrue}
+ \usetikzlibrary{shadows}%
+ \@todonotes at shadowlibraryloadedtrue}
\newcommand{\@todonotes at shadowenabledbydefault}{noshadow}
\DeclareOptionX{shadow}{%
-\renewcommand{\@todonotes at shadowenabledbydefault}{shadow}}
+ \renewcommand{\@todonotes at shadowenabledbydefault}{shadow}}
\define at key{todonotes.sty}%
{figwidth}{\renewcommand{\@todonotes at figwidth}{#1}}
\define at key{todonotes.sty}%
@@ -288,7 +289,7 @@
backgroundcolor=\@todonotes at backgroundcolor,%
textcolor=\@todonotes at textcolor,%
bordercolor=\@todonotes at bordercolor,%
- tickmarkheight=0cm,%
+ tickmarkheight=\@todonotes at defaulttickmarkheight,%
nofancyline,%
nodisable,%
noinline,%
@@ -336,9 +337,9 @@
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}
+\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%
More information about the tex-live-commits
mailing list.