diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-13 00:09:32 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-13 00:09:32 +0000 |
commit | a34e4b7a8c3a18f107e088ab45f497176ae69d24 (patch) | |
tree | 3059b77188db6e72d21db92551a2b6819f0be4b2 | |
parent | 1c15320ad7ed0abae3251a6a8fb7c5a03a23f083 (diff) |
todo
git-svn-id: svn://tug.org/texlive/trunk@1399 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/tex/latex/todo/todo.sty | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/todo/todo.sty b/Master/texmf-dist/tex/latex/todo/todo.sty new file mode 100644 index 00000000000..67769f6fb4b --- /dev/null +++ b/Master/texmf-dist/tex/latex/todo/todo.sty @@ -0,0 +1,62 @@ +%% +%% This is file `todo.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% todo.dtx (with options: `package') +%% +%% Copyright 2002 Federico Garcia +%% +\NeedsTeXFormat{LaTeX2e}[1995/12/01] +\ProvidesPackage{todo}[2002/07/25 v1.1 To-do list (Federico Garcia)] +\newcommand\@todomark{} +\newcommand\@todohide{} +\DeclareOption{hide}{\renewcommand\@todohide[1]{% + \PackageWarning{todo}{`hide' option used, % + ignoring \noexpand\todo's}}} +\DeclareOption{show}{\renewcommand\@todohide[1]{#1}} +\DeclareOption{superscript}{\renewcommand\@todomark{% + \@todosupermark}} +\DeclareOption{marginpar}{\renewcommand\@todomark{% + \@todomarginpar}} +\DeclareOption{nothing}{\let\@todomark\@gobble} +\DeclareOption*{\typeout{Unknown option (`\CurrentOption')}} +\ExecuteOptions{superscript,show} +\ProcessOptions +\newtoks\@todotoks\@todotoks{} +\newcounter{todo}\setcounter{todo}{0} +\newcommand{\todomark}{To~do} +\newcommand{\todoname}{To do\dots} +\newcommand{\todo}[2][\todomark]{\@bsphack\@todohide{% + \refstepcounter{todo}\label{todopage:\thetodo}% + \@todomark{#1}% + \@todotoks\expandafter{\the\@todotoks\relax% + \todoitem{#1}{#2}}% + }\@esphack} +\newcommand{\@todosupermark}[1]{% + \leavevmode + \ifhmode\edef\@x@sf{\the\spacefactor}\nobreak\fi + \textsuperscript{\textbf{#1} (\ref{todolbl:\thetodo})} + \ifhmode\spacefactor\@x@sf\fi + \relax} +\newcommand{\@todomarginpar}[1]{\marginpar{#1 (\ref{todolbl:\thetodo})}} +\newcommand{\todoitem}[2]{% + \item \label{todolbl:\thetodo} % + \ifx#1\todomark% + \else\textbf{#1 }% + \fi% + (p.~\pageref{todopage:\thetodo})\ #2} +\newcommand{\todos}{\@todohide{% + \clearpage\section*{\todoname}\large% + \begin{list}{\fbox{\vphantom{Ap}\hphantom{A}}% + \quad\arabic{todo}.}{}% + \usecounter{todo} + \the\@todotoks + \end{list}} + \renewcommand{\todo}[1]{% + \PackageWarning{todo}{\noexpand\todos already issued, % + ignoring \noexpand\todo}}} +\endinput +%% +%% End of file `todo.sty'. |