From 3851f9966878b3d9ab5296c68a738bc8fa2dcb89 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 25 Jan 2019 23:24:36 +0000 Subject: todonotes git-svn-id: svn://tug.org/texlive/trunk@49820 c570f23f-e606-0410-a88d-b1316a301751 --- .../source/latex/todonotes/todonotes.dtx | 24 ++++++++++++---------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'Master/texmf-dist/source/latex/todonotes') diff --git a/Master/texmf-dist/source/latex/todonotes/todonotes.dtx b/Master/texmf-dist/source/latex/todonotes/todonotes.dtx index 4604bceb623..b4180a797f6 100644 --- a/Master/texmf-dist/source/latex/todonotes/todonotes.dtx +++ b/Master/texmf-dist/source/latex/todonotes/todonotes.dtx @@ -1,17 +1,15 @@ % \iffalse meta-comment % -% Copyright (C) 2015 by Henrik Skov Midtiby +% Copyright (C) 2019 by Henrik Skov Midtiby % ------------------------------------------------------- % -% This file may be distributed and/or modified under the -% conditions of the LaTeX Project Public License, either version 1.2 +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3 % of this license or (at your option) any later version. -% The latest version of this license is in: -% -% http://www.latex-project.org/lppl.txt -% -% and version 1.2 or later is part of all distributions of LaTeX -% version 1999/12/01 or later. +% The latest version of this license is in +% http://www.latex-project.org/lppl.txt +% and version 1.3 or later is part of all distributions of LaTeX +% version 2005/12/01 or later. % % \fi % @@ -22,7 +20,7 @@ %\NeedsTeXFormat{LaTeX2e}[1999/12/01] %\ProvidesPackage{todonotes} %<*package> - [2018/11/22 v1.1.1 Todonotes source and documentation.] + [2019/01/24 v1.1.2 Todonotes source and documentation.] % % %<*driver> @@ -47,7 +45,7 @@ % % \fi % -% \CheckSum{710} +% \CheckSum{717} % % \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 @@ -206,6 +204,7 @@ % Steamline which options that are accepted to size commands % (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.} % \GetFileInfo{todonotes.dtx} % % \DoNotIndex{\newcommand,\newenvironment} @@ -1983,6 +1982,9 @@ prior to loading the todonotes package.} \else\fi% % Define the |\todo| command as a redirection to |\@todo|. % \begin{macrocode} \newcommand{\todo}[2][]{% + % Needed to output any dangling \item of a noskip section (see #36): + \if@inlabel \leavevmode \fi + \if@noskipsec \leavevmode \fi \if@todonotes@inlinepar \ifhmode \@bsphack -- cgit v1.2.3