summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex/luatodonotes
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-10-02 21:58:58 +0000
committerKarl Berry <karl@freefriends.org>2017-10-02 21:58:58 +0000
commit08ee74e2ec3191cb9901c3e0d76b509d24e2b13a (patch)
treee29e8cfe5e6ec9154c3f3af6b77e40a72619e0d2 /Master/texmf-dist/tex/lualatex/luatodonotes
parentfd5f690d11016435384d6ae952eb94789cf60746 (diff)
luatodonotes (2oct17)
git-svn-id: svn://tug.org/texlive/trunk@45454 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/luatodonotes')
-rw-r--r--Master/texmf-dist/tex/lualatex/luatodonotes/luatodonotes.sty9
1 files changed, 5 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/lualatex/luatodonotes/luatodonotes.sty b/Master/texmf-dist/tex/lualatex/luatodonotes/luatodonotes.sty
index 8663c610eb8..80d63967175 100644
--- a/Master/texmf-dist/tex/lualatex/luatodonotes/luatodonotes.sty
+++ b/Master/texmf-dist/tex/lualatex/luatodonotes/luatodonotes.sty
@@ -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@todonotes@additionalMarginEnabled
\newlength{\@todonotes@modpaperwidth}
- \AtBeginDocument{%
+ \AfterEndPreamble{%
\setlength{\@todonotes@modpaperwidth}{\paperwidth}%
\addtolength{\@todonotes@modpaperwidth}{\@todonotes@additionalMargin}%
\addtolength{\@todonotes@modpaperwidth}{\@todonotes@additionalMargin}%
@@ -445,10 +446,10 @@
\define@key{todonotes}{nocaption}[]{\@todonotes@captiongivenfalse}%
\newcommand{\@todonotes@currentfigwidth}{\@todonotes@figwidth}
\define@key{todonotes}%
- {figwidth}{\renewcommand{\@todonotes@currentfigwidth}{#1}}
+ {figwidth}{\renewcommand{\@todonotes@currentfigwidth}{#1-2pt}}
\newcommand{\@todonotes@currentfigheight}{\@todonotes@figheight}
\define@key{todonotes}%
- {figheight}{\renewcommand{\@todonotes@currentfigheight}{#1}}
+ {figheight}{\renewcommand{\@todonotes@currentfigheight}{#1-2pt}}
\newcommand{\@todonotes@currentfigcolor}{\@todonotes@figcolor}
\define@key{todonotes}%
{figcolor}{\renewcommand{\@todonotes@currentfigcolor}{#1}}