From 5c628436fda45c9dcae5c2382445eb7d3395d1d6 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 2 Apr 2009 18:41:54 +0000 Subject: todonotes update (31mar09) git-svn-id: svn://tug.org/texlive/trunk@12606 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/todonotes/todonotes.sty | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist/tex/latex/todonotes') diff --git a/Master/texmf-dist/tex/latex/todonotes/todonotes.sty b/Master/texmf-dist/tex/latex/todonotes/todonotes.sty index ac1a8f8da41..b825597f50c 100644 --- a/Master/texmf-dist/tex/latex/todonotes/todonotes.sty +++ b/Master/texmf-dist/tex/latex/todonotes/todonotes.sty @@ -22,9 +22,9 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{todonotes} - [2009/01/09 .dtx Todonotes source and documentation.] + [2009/03/31 .dtx Todonotes source and documentation.] -\ProvidesPackage{todonotes}[2009/01/09] +\ProvidesPackage{todonotes}[2009/03/31] \RequirePackage{ifthen} \RequirePackage{xkeyval} \RequirePackage{xcolor} @@ -94,6 +94,10 @@ \@todonotes@SetMissingFigureDown{mancante}% } \newcounter{@todonotes@numberoftodonotes} +\newif{\if@todonotes@obeyDraft} +\DeclareOptionX{obeyDraft}{\@todonotes@obeyDrafttrue} +\newif{\if@todonotes@isDraft} +\DeclareOptionX{draft}{\@todonotes@isDrafttrue} \newif{\if@todonotes@disabled} \DeclareOptionX{disable}{\@todonotes@disabledtrue} \newif{\if@todonotes@colorinlistoftodos} @@ -124,6 +128,12 @@ \define@key{todonotes.sty}% {figwidth}{\renewcommand{\@todonotes@figwidth}{#1}} \ProcessOptionsX +\if@todonotes@obeyDraft +\@todonotes@disabledfalse +\if@todonotes@isDraft +\@todonotes@disabledtrue +\fi +\fi \newcommand{\@todonotes@currentlinecolor}{}% \newcommand{\@todonotes@currentbackgroundcolor}{}% -- cgit v1.2.3