texlive[45454] Master/texmf-dist: luatodonotes (2oct17)

commits+karl at tug.org commits+karl at tug.org
Mon Oct 2 23:58:58 CEST 2017


Revision: 45454
          http://tug.org/svn/texlive?view=revision&revision=45454
Author:   karl
Date:     2017-10-02 23:58:58 +0200 (Mon, 02 Oct 2017)
Log Message:
-----------
luatodonotes (2oct17)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/lualatex/luatodonotes/luatodonotes.pdf
    trunk/Master/texmf-dist/source/lualatex/luatodonotes/luatodonotes.dtx
    trunk/Master/texmf-dist/tex/lualatex/luatodonotes/luatodonotes.sty

Modified: trunk/Master/texmf-dist/doc/lualatex/luatodonotes/luatodonotes.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/lualatex/luatodonotes/luatodonotes.dtx
===================================================================
--- trunk/Master/texmf-dist/source/lualatex/luatodonotes/luatodonotes.dtx	2017-10-02 21:58:46 UTC (rev 45453)
+++ trunk/Master/texmf-dist/source/lualatex/luatodonotes/luatodonotes.dtx	2017-10-02 21:58:58 UTC (rev 45454)
@@ -1,6 +1,6 @@
 % \iffalse meta-comment
 %
-% Copyright (C) 2014-2015 by Fabian Lipp <fabian.lipp at gmx.de>
+% Copyright (C) 2014-2017 by Fabian Lipp <fabian.lipp at gmx.de>
 % based on the todonotes package
 %   by Henrik Skov Midtiby <henrikmidtiby at gmail.com>
 % ------------------------------------------------------------
@@ -24,7 +24,7 @@
 %<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
 %<package>\ProvidesPackage{luatodonotes}
 %<*package>
-    [2015/12/03 v0.3 luatodonotes source and documentation.]
+    [2017/09/30 v0.4 luatodonotes source and documentation.]
 %</package>
 %
 %<*driver>
@@ -32,7 +32,7 @@
 \usepackage{wrapfig}
 \PassOptionsToPackage{colorlinks, urlcolor=blue}{hyperref}
 \usepackage{hypdoc} % this package loads hyperref among others
-\usepackage[colorinlistoftodos, shadow]{luatodonotes}[2015/12/03]
+\usepackage[colorinlistoftodos, shadow]{luatodonotes}[2017/09/30]
 \usepackage{fontspec}
 \usepackage{amsmath}
 \usepackage{setspace}
@@ -51,7 +51,7 @@
 %</driver>
 % \fi
 %
-% \CheckSum{905}
+% \CheckSum{906}
 %
 % \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
@@ -77,6 +77,8 @@
 % \changes{0.2}{2015/03/12}{Added troubleshooting section to documentation}
 % \changes{0.3}{2015/12/03}{Incorporated some changes from todonotes (version
 % 1.0.4)}
+% \changes{0.4}{2017/10/01}{Incorporated some changes from todonotes (version
+% 1.0.5)}
 % \GetFileInfo{luatodonotes.dtx}
 %
 % \DoNotIndex{\newcommand,\newenvironment}
@@ -257,7 +259,7 @@
 % The option |obeyFinal| does something similar, except that the 
 % todonotes package is only disabled if the |final| option given.
 %
-% \DescribeMacro{danish, german, ngerman, french, swedish}
+% \DescribeMacro{danish, german, ngerman, english, french, swedish}
 % \DescribeMacro{spanish, catalan, italian}
 % \DescribeMacro{portuguese, dutch, croatian}
 % Use translations of the text strings 
@@ -269,6 +271,7 @@
 % croatian,
 % danish,
 % dutch,
+% english,
 % french,
 % german,
 % ngerman,
@@ -811,12 +814,19 @@
 % \subsubsection{Spacing around inserted notes}
 % Inserted todo commands will eat the white space after the command.
 % \begin{verbatim}
-%Testing\todo{Does this eat the space?} testing
-% \end{verbatim}
-% 
-% Testing\todo{Does this eat the space?}testing
+%Testing\todo{Does this eat the space?} testing.\end{verbatim}
+% \noindent
+% Testing\todo{Does this eat the space?} testing.
 %
+% This can be prevented by adding curly parenthesis after the
+% todo command, like shown below.
+% \begin{verbatim}
+%Testing\todo{Does this eat the space?}{} testing.\end{verbatim}
+% \noindent
+% Testing\todo{Does this eat the space?}{} testing.
 %
+%
+%
 % \subsubsection{Conflicts with the amsart documentclass}
 % The |amsart| document class redefines some internal commands that
 % is used by the todonotes package, this will cause an malfunctioning
@@ -975,6 +985,7 @@
 \RequirePackage{ifoddpage}
 \RequirePackage{soul}
 \RequirePackage{soulpos}
+\RequirePackage{etoolbox}
 %    \end{macrocode}
 % The package |luatex| must not be loaded in new TeX distributions as the
 % definition of |\newattribute| in it conflicts with newer versions of
@@ -1303,6 +1314,8 @@
 % \begin{macro}{additionalMargin}
 % Control whether the margin should be enlarged for the notes and its width.
 % \changes{0.3}{2015/12/01}{Introduce package option \texttt{additionalMargin}}
+% \changes{0.4}{2016/04/01}{Fixed problems of the \texttt{additionalMargin}
+% option with certain documentclasses}
 %    \begin{macrocode}
 \newif{\if at todonotes@additionalMarginEnabled}
 \@todonotes at additionalMarginEnabledfalse
@@ -1350,11 +1363,12 @@
 \fi
 %    \end{macrocode}
 % If the option |additionalMargin| is given, we enlarge the margins for the notes.
-% We simply increase the page size by the doubled value of |additionalMargin| and move the contents to the right using |\hoffset|.
+% We simply increase the page size by the doubled value of |additionalMargin|
+% and move the contents to the right using |\hoffset|.
 %    \begin{macrocode}
 \if at todonotes@additionalMarginEnabled
     \newlength{\@todonotes at modpaperwidth}
-    \AtBeginDocument{%
+    \AfterEndPreamble{%
         \setlength{\@todonotes at modpaperwidth}{\paperwidth}%
         \addtolength{\@todonotes at modpaperwidth}{\@todonotes at additionalMargin}%
         \addtolength{\@todonotes at modpaperwidth}{\@todonotes at additionalMargin}%
@@ -1638,10 +1652,10 @@
 %    \begin{macrocode}
 \newcommand{\@todonotes at currentfigwidth}{\@todonotes at figwidth}
 \define at key{todonotes}%
-    {figwidth}{\renewcommand{\@todonotes at currentfigwidth}{#1}}
+    {figwidth}{\renewcommand{\@todonotes at currentfigwidth}{#1-2pt}}
 \newcommand{\@todonotes at currentfigheight}{\@todonotes at figheight}
 \define at key{todonotes}%
-    {figheight}{\renewcommand{\@todonotes at currentfigheight}{#1}}
+    {figheight}{\renewcommand{\@todonotes at currentfigheight}{#1-2pt}}
 \newcommand{\@todonotes at currentfigcolor}{\@todonotes at figcolor}
 \define at key{todonotes}%
     {figcolor}{\renewcommand{\@todonotes at currentfigcolor}{#1}}

Modified: trunk/Master/texmf-dist/tex/lualatex/luatodonotes/luatodonotes.sty
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/luatodonotes/luatodonotes.sty	2017-10-02 21:58:46 UTC (rev 45453)
+++ trunk/Master/texmf-dist/tex/lualatex/luatodonotes/luatodonotes.sty	2017-10-02 21:58:58 UTC (rev 45454)
@@ -24,7 +24,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}[1999/12/01]
 \ProvidesPackage{luatodonotes}
-    [2015/12/03 v0.3 luatodonotes source and documentation.]
+    [2017/09/30 v0.4 luatodonotes source and documentation.]
 
 \@ifpackageloaded{todonotes}{
   \PackageError{luatodonotes}{%
@@ -59,6 +59,7 @@
 \RequirePackage{ifoddpage}
 \RequirePackage{soul}
 \RequirePackage{soulpos}
+\RequirePackage{etoolbox}
 \@ifpackagelater{luatexbase}{2013/05/04}{}{
     \RequirePackage{luatex}
 }
@@ -278,7 +279,7 @@
 \fi
 \if at todonotes@additionalMarginEnabled
     \newlength{\@todonotes at modpaperwidth}
-    \AtBeginDocument{%
+    \AfterEndPreamble{%
         \setlength{\@todonotes at modpaperwidth}{\paperwidth}%
         \addtolength{\@todonotes at modpaperwidth}{\@todonotes at additionalMargin}%
         \addtolength{\@todonotes at modpaperwidth}{\@todonotes at additionalMargin}%
@@ -445,10 +446,10 @@
 \define at key{todonotes}{nocaption}[]{\@todonotes at captiongivenfalse}%
 \newcommand{\@todonotes at currentfigwidth}{\@todonotes at figwidth}
 \define at key{todonotes}%
-    {figwidth}{\renewcommand{\@todonotes at currentfigwidth}{#1}}
+    {figwidth}{\renewcommand{\@todonotes at currentfigwidth}{#1-2pt}}
 \newcommand{\@todonotes at currentfigheight}{\@todonotes at figheight}
 \define at key{todonotes}%
-    {figheight}{\renewcommand{\@todonotes at currentfigheight}{#1}}
+    {figheight}{\renewcommand{\@todonotes at currentfigheight}{#1-2pt}}
 \newcommand{\@todonotes at currentfigcolor}{\@todonotes at figcolor}
 \define at key{todonotes}%
     {figcolor}{\renewcommand{\@todonotes at currentfigcolor}{#1}}



More information about the tex-live-commits mailing list