texlive[56158] Master/texmf-dist: todonotes (22aug20)
commits+karl at tug.org
commits+karl at tug.org
Sun Aug 23 22:39:30 CEST 2020
Revision: 56158
http://tug.org/svn/texlive?view=revision&revision=56158
Author: karl
Date: 2020-08-23 22:39:30 +0200 (Sun, 23 Aug 2020)
Log Message:
-----------
todonotes (22aug20)
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 2020-08-23 14:05:54 UTC (rev 56157)
+++ trunk/Master/texmf-dist/source/latex/todonotes/todonotes.dtx 2020-08-23 20:39:30 UTC (rev 56158)
@@ -20,7 +20,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{todonotes}
%<*package>
- [2019/01/24 v1.1.2 Todonotes source and documentation.]
+ [2020/08/18 v1.1.3 Todonotes source and documentation.]
%</package>
%
%<*driver>
@@ -27,7 +27,7 @@
\documentclass{ltxdoc}
\usepackage{wrapfig}
\usepackage[colorlinks, linkcolor=black, urlcolor=blue]{hyperref}
-\usepackage[colorinlistoftodos]{todonotes}[2018/11/22]
+\usepackage[colorinlistoftodos]{todonotes}[2020/08/18]
\usepackage{amsmath}
\usepackage{setspace}
\usepackage{soul}
@@ -45,7 +45,7 @@
%</driver>
% \fi
%
-% \CheckSum{717}
+% \CheckSum{721}
%
% \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
@@ -205,6 +205,8 @@
% (both commands (backslash tiny) and text (tiny) are now supported).}
% \changes{1.1.1}{2018/11/22}{Implemented shadow and noshadow options for the todo command.}
% \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.}
% \GetFileInfo{todonotes.dtx}
%
% \DoNotIndex{\newcommand,\newenvironment}
@@ -253,10 +255,10 @@
% Large package with a lot of features.
% \end{itemize}
% The main reason for considering other packages is that the todonotes
-% package is quire large and relies heavily on tikz.
+% package is quite large and relies heavily on tikz.
% This can slow down compilation of large documents significantly.
% The mentioned alternatives have a different feature set and does not
-% rely on tikz, which makes them require less ressoureces.
+% rely on tikz, which makes them require fewer resources.
%
%
% \subsection{Usage}
@@ -700,7 +702,13 @@
%\usepackage{menukeys}
% \end{verbatim}
%
+% The following packages must be loaded before the todonotes
+% package:
+% \begin{itemize}
+% \item polyglossia
+% \end{itemize}
%
+%
% \subsubsection{Wrapping of long lines in list of todos}
% When a document is compiled with latex (and not pdflatex) long
% items in the list of todos are not wrapped into several lines, and
@@ -792,6 +800,33 @@
% |\let\marginpar\oldmarginpar|
%
%
+% \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
+% can be enabled.
+% For todos inside math environments the todo must be placed in an
+% \verb!mbox! or \verb!\textrm! command.
+%
+% \begin{verbatim}
+% \documentclass{article}
+% \usepackage{todonotes}
+% \usepackage{marginnote}
+% \let\marginpar\marginnote
+%
+% \begin{document}
+% \begin{equation}
+% a^2=b^2+c^2 \textrm{\todo{Test}}
+% \end{equation}
+% \begin{figure}
+% \centering
+% \caption{Caption\todo{tests}.}
+% \label{fig}
+% \end{figure}
+%
+% \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
@@ -859,18 +894,16 @@
% functionality of |\todo| with custom default values.
% \begin{verbatim}
% \newcommand{\todoredefined}[2][]
-% {\todo[color=red, #1]{#2}}
-% \end{verbatim}
+% {\todo[color=red, #1]{#2}}\end{verbatim}
% \newcommand{\todoredefined}[2][]
% {\todo[color=red, #1]{#2}}
-% \todoredefined{Test of newly defined command.}
-% The new command can now be used like shown below
+% The \todoredefined{Test of newly defined command.}
+% new command can now be used like shown below
% \begin{verbatim}
% \todoredefined{Test of newly defined command.}
-% \todoredefined[color=green]{Test of newly defined command, requesting a green color.}
-% \end{verbatim}
-% \todoredefined[color=green]{Test of newly defined command, requesting a green color.}
-% This can be done with all the accepted options for the |\todo| command.
+% \todoredefined[color=green]{Test of newly defined command, requesting a green color.} \end{verbatim}
+% This \todoredefined[color=green]{Test of newly defined command, requesting a green color.}
+% can be done with all the accepted options for the |\todo| command.
%
%
%
@@ -1497,21 +1530,21 @@
% commands in the package are defined.
% Set an arbitrarily fill color
% \begin{macrocode}
-\newcommand{\@todonotes at currentlinecolor}{}%
-\newcommand{\@todonotes at currentbackgroundcolor}{}%
-\newcommand{\@todonotes at currenttextcolor}{}%
-\newcommand{\@todonotes at currentbordercolor}{}%
+\gdef\@todonotes at currentlinecolor{\@todonotes at linecolor}%
+\gdef\@todonotes at currentbackgroundcolor{\@todonotes at backgroundcolor}%
+\gdef\@todonotes at currenttextcolor{\@todonotes at textcolor}%
+\gdef\@todonotes at currentbordercolor{\@todonotes at bordercolor}%
\define at key{todonotes}{color}{%
- \renewcommand{\@todonotes at currentlinecolor}{#1}%
- \renewcommand{\@todonotes at currentbackgroundcolor}{#1}}%
+ \gdef\@todonotes at currentlinecolor{#1}%
+ \gdef\@todonotes at currentbackgroundcolor{#1}}%
\define at key{todonotes}{linecolor}{%
- \renewcommand{\@todonotes at currentlinecolor}{#1}}%
+ \gdef\@todonotes at currentlinecolor{#1}}%
\define at key{todonotes}{backgroundcolor}{%
- \renewcommand{\@todonotes at currentbackgroundcolor}{#1}}%
+ \gdef\@todonotes at currentbackgroundcolor{#1}}%
\define at key{todonotes}{textcolor}{%
- \renewcommand{\@todonotes at currenttextcolor}{#1}}%
+ \gdef\@todonotes at currenttextcolor{#1}}%
\define at key{todonotes}{bordercolor}{%
- \renewcommand{\@todonotes at currentbordercolor}{#1}}%
+ \gdef\@todonotes at currentbordercolor{#1}}%
% \end{macrocode}
% Toggle whether there is a shadow behind the inserted notes.
% \begin{macrocode}
Modified: trunk/Master/texmf-dist/tex/latex/todonotes/todonotes.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/todonotes/todonotes.sty 2020-08-23 14:05:54 UTC (rev 56157)
+++ trunk/Master/texmf-dist/tex/latex/todonotes/todonotes.sty 2020-08-23 20:39:30 UTC (rev 56158)
@@ -22,7 +22,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{todonotes}
- [2019/01/24 v1.1.2 Todonotes source and documentation.]
+ [2020/08/18 v1.1.3 Todonotes source and documentation.]
\ProvidesPackage{todonotes}[2018/11/22]
\RequirePackage{ifthen}
@@ -208,21 +208,21 @@
\fi
\fi
-\newcommand{\@todonotes at currentlinecolor}{}%
-\newcommand{\@todonotes at currentbackgroundcolor}{}%
-\newcommand{\@todonotes at currenttextcolor}{}%
-\newcommand{\@todonotes at currentbordercolor}{}%
+\gdef\@todonotes at currentlinecolor{\@todonotes at linecolor}%
+\gdef\@todonotes at currentbackgroundcolor{\@todonotes at backgroundcolor}%
+\gdef\@todonotes at currenttextcolor{\@todonotes at textcolor}%
+\gdef\@todonotes at currentbordercolor{\@todonotes at bordercolor}%
\define at key{todonotes}{color}{%
- \renewcommand{\@todonotes at currentlinecolor}{#1}%
- \renewcommand{\@todonotes at currentbackgroundcolor}{#1}}%
+ \gdef\@todonotes at currentlinecolor{#1}%
+ \gdef\@todonotes at currentbackgroundcolor{#1}}%
\define at key{todonotes}{linecolor}{%
- \renewcommand{\@todonotes at currentlinecolor}{#1}}%
+ \gdef\@todonotes at currentlinecolor{#1}}%
\define at key{todonotes}{backgroundcolor}{%
- \renewcommand{\@todonotes at currentbackgroundcolor}{#1}}%
+ \gdef\@todonotes at currentbackgroundcolor{#1}}%
\define at key{todonotes}{textcolor}{%
- \renewcommand{\@todonotes at currenttextcolor}{#1}}%
+ \gdef\@todonotes at currenttextcolor{#1}}%
\define at key{todonotes}{bordercolor}{%
- \renewcommand{\@todonotes at currentbordercolor}{#1}}%
+ \gdef\@todonotes at currentbordercolor{#1}}%
\newif\if at todonotes@useshadow%
\define at key{todonotes}{shadow}[]{\@todonotes at useshadowtrue}%
\define at key{todonotes}{noshadow}[]{\@todonotes at useshadowfalse}%
More information about the tex-live-commits
mailing list.