summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/easy-todo
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-11-16 23:51:51 +0000
committerKarl Berry <karl@freefriends.org>2013-11-16 23:51:51 +0000
commit9e7d9e01534a2c0515c3d5ce32d9c485fd6b559e (patch)
tree42c36f5e0fa141673fd4282b3dcbfdf5a6904f45 /Master/texmf-dist/tex/latex/easy-todo
parent3dc099326cd991a2db80fc2b8e17b626a10d8f91 (diff)
easy-todo (16nov13)
git-svn-id: svn://tug.org/texlive/trunk@32164 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/easy-todo')
-rw-r--r--Master/texmf-dist/tex/latex/easy-todo/easy-todo.sty53
1 files changed, 36 insertions, 17 deletions
diff --git a/Master/texmf-dist/tex/latex/easy-todo/easy-todo.sty b/Master/texmf-dist/tex/latex/easy-todo/easy-todo.sty
index ea07fbd0fe6..a4bbeec7d4f 100644
--- a/Master/texmf-dist/tex/latex/easy-todo/easy-todo.sty
+++ b/Master/texmf-dist/tex/latex/easy-todo/easy-todo.sty
@@ -1,7 +1,7 @@
% Created by Juan Rada-Vilela
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{easy-todo}[2011/01/01]
+\ProvidesPackage{easy-todo}[2013/11/15]
\def\@todoindexas{chapter}
\newcommand{\todoindexas}[1]{\def\@todoindexas{#1}}
@@ -14,29 +14,30 @@
\DeclareOption{section}{\todoindexas{section}}
\DeclareOption{final}{\todoenable{false}}
\DeclareOption{enabled}{\todoenable{true}}
+\DeclareOption{enable}{\todoenable{true}}
\DeclareOption{disabled}{\todoenable{false}}
+\DeclareOption{disable}{\todoenable{false}}
+
\DeclareOption*{%
- \PackageError{easy-todo}{What is \CurrentOption ?}{Options available: final, enabled, disabled, chapter, section}%
+ \PackageError{easy-todo}{What is \CurrentOption ?}{Options available: final, enable(d), disable(d), chapter, section}%
\todoindexas{chapter}
}
\ProcessOptions
-% \RequirePackage[colorlinks]{hyperref} %Para hipervínculos en el documento (ver \iniciar)
-\RequirePackage{color} %Para poner color en notas y pendientes
-\RequirePackage{tocloft} %Para configurar índice general, de figuras y cuadros
+\RequirePackage{color} %to add colour
+\RequirePackage{tocloft} %to create index
\RequirePackage{ifthen}
\newcommand{\todoindextitle}{ToDo}
\newcommand{\todoindexpagetitle}{P.}
\newcommand{\todocolor}{\color{red}}
-%Índice de Pendientes
\newcommand{\listoftodosname}{\todoindextitle}
\newlistof[part]{todos}{lod}{\listoftodosname}
-%Comando: listoftodos
-%Descripción: Crea el índice de pendientes.
+%Command: listoftodos
+%Description: Creates the todo list (Section or Chapter)
\renewcommand{\listoftodos}{
{
\ifthenelse{\equal{\@todoenable}{true}}
@@ -57,13 +58,31 @@
}
\renewcommand{\thetodos}{\@arabic\c@todos}
-%Comando: pendiente
-%Descripción: Agrega una anotación al índice de pendientes y la muestra en el lugar donde fue agregada. Para mostrar los pendientes, ejecutar antes de \configurar \habilitarpendientes
-%Parámetros: [1] Texto del pendiente (e.g. Mejorar redacción)
-\newcommand{\todo}[1]{
- \ifthenelse{\equal{\@todoenable}{true}}{
- \refstepcounter{todos}
- \noindent{\todocolor\normalfont\scriptsize{\bfseries{\thetodos. }#1}}
- \addcontentsline{lod}{todos}{\protect{\thetodos. }#1}
- }{}
+%Command: todo
+%Description: Creates a todo note with the number and information
+%Parameter: TODO note
+\newcommand{\todo}[1]{%
+\todoii{#1}{#1}%
+}
+
+%Command: todoi
+%Description: Creates a todo note with just a number
+%Parameters: [1] the information to show at the list
+\newcommand{\todoi}[1]{
+\todoii{}{#1}
+}
+
+%Command: todoii
+%Description: Creates a todo note
+%Parameters: [1] the note to show, [2] the information to show at the list
+\newcommand{\todoii}[2]{
+\ifthenelse{\equal{\@todoenable}{true}}{%
+\refstepcounter{todos}%
+\noindent{\todocolor\normalfont\scriptsize{\bfseries{\thetodos.#1}}}%
+\addcontentsline{lod}{todos}{\protect{\thetodos. }#2}%
+}{}
}
+
+
+
+