summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/todonotes
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-09-14 22:51:45 +0000
committerKarl Berry <karl@freefriends.org>2010-09-14 22:51:45 +0000
commit5e7679b3fae60cad87c935a8753cbc929b337f22 (patch)
tree5a78745e456e6925c1a8655862a3472970f3c196 /Master/texmf-dist/tex/latex/todonotes
parentca2936971d98ba223ed79ff34e97515aced1ec13 (diff)
todonotes 0.9.3 (13sep10)
git-svn-id: svn://tug.org/texlive/trunk@19729 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/todonotes')
-rw-r--r--Master/texmf-dist/tex/latex/todonotes/todonotes.sty24
1 files changed, 19 insertions, 5 deletions
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'.