From 5e7679b3fae60cad87c935a8753cbc929b337f22 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 14 Sep 2010 22:51:45 +0000 Subject: todonotes 0.9.3 (13sep10) git-svn-id: svn://tug.org/texlive/trunk@19729 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/todonotes/todonotes.sty | 24 +++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'Master/texmf-dist/tex/latex') diff --git a/Master/texmf-dist/tex/latex/todonotes/todonotes.sty b/Master/texmf-dist/tex/latex/todonotes/todonotes.sty index 27d23195bdd..fef33bf07db 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/12/25 .dtx Todonotes source and documentation.] + [2010/09/13 .dtx Todonotes source and documentation.] -\ProvidesPackage{todonotes}[2009/04/02] +\ProvidesPackage{todonotes}[2010/09/13] \RequirePackage{ifthen} \RequirePackage{xkeyval} \RequirePackage{xcolor} @@ -74,6 +74,12 @@ \@todonotes@SetMissingFigureUp{Ontbrekende}% \@todonotes@SetMissingFigureDown{figuur}% } +\DeclareOptionX{english}{% + \@todonotes@SetTodoListName{Todo list}% + \@todonotes@SetMissingFigureText{Figure}% + \@todonotes@SetMissingFigureUp{Missing}% + \@todonotes@SetMissingFigureDown{figure}% +} \DeclareOptionX{french}{% \@todonotes@SetTodoListName{Liste des points \`a traiter}% \@todonotes@SetMissingFigureText{Figure}% @@ -202,11 +208,11 @@ line, list, size=\@todonotes@textsize}{}% \if@todonotes@disabled% \newcommand{\listoftodos}[1][]{} - \newcommand{\todo}[2][]{\ignorespaces} + \newcommand{\@todo}[2][]{\ignorespaces} \newcommand{\missingfigure}[2][]{} \else % \if@todonotes@disabled \newcommand{\listoftodos}[1][\@todonotes@todolistname] - {\section*{#1} \@starttoc{tdo}} + {\ifdefined\chapter\chapter*{#1}\else\section*{#1}\fi \@starttoc{tdo}} \newcommand{\l@todo} {\@dottedtocline{1}{0em}{2.3em}} \tikzstyle{notestyleraw} = [ @@ -232,7 +238,7 @@ \tikzstyle{inlinenotestyle} = [ notestyle, text width=\linewidth - 1.6 ex - 1 pt] -\newcommand{\todo}[2][]{% +\newcommand{\@todo}[2][]{% \if@todonotes@prependcaptionglobal% \@todonotes@prependcaptiontrue% \else% @@ -349,6 +355,14 @@ \end{tikzpicture} }% Ending \missingfigure command \fi % Ending \@todonotes@ifdisabled +\newcommand{\todototoc} +{ + \if@todonotes@disabled + \else +\addcontentsline{toc}{\@ifundefined{chapter}{section}{chapter}}{\@todonotes@todolistname} + \fi +} +\newcommand{\todo}[2][]{\@todo[#1]{#2}} \endinput %% %% End of file `todonotes.sty'. -- cgit v1.2.3