diff options
author | Karl Berry <karl@freefriends.org> | 2011-01-14 00:19:45 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-01-14 00:19:45 +0000 |
commit | 7756c5526f4c3c970871a3623583bfbdd9ee2c36 (patch) | |
tree | 7ed6421f769bb3b219a67d029a52bb4a49b7ba4f /Master | |
parent | f6c18804886386f03c05151e997c1b3bcd95dee0 (diff) |
new latex package easy-todo 1.0 (14jan11)
git-svn-id: svn://tug.org/texlive/trunk@21056 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/easy-todo/README | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/easy-todo/easy-todo.pdf | bin | 0 -> 38538 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/easy-todo/easy-todo.tex | 44 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/easy-todo/easy-todo.sty | 69 | ||||
-rwxr-xr-x | Master/tlpkg/bin/tlpkg-ctan-check | 2 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc | 1 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/easy-todo.tlpsrc | 0 |
7 files changed, 117 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/easy-todo/README b/Master/texmf-dist/doc/latex/easy-todo/README new file mode 100644 index 00000000000..e59dfa40364 --- /dev/null +++ b/Master/texmf-dist/doc/latex/easy-todo/README @@ -0,0 +1,2 @@ +This package allows to add TODO notes all along the document and +show the list of TODOs as an index.
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/easy-todo/easy-todo.pdf b/Master/texmf-dist/doc/latex/easy-todo/easy-todo.pdf Binary files differnew file mode 100644 index 00000000000..9076ab73290 --- /dev/null +++ b/Master/texmf-dist/doc/latex/easy-todo/easy-todo.pdf diff --git a/Master/texmf-dist/doc/latex/easy-todo/easy-todo.tex b/Master/texmf-dist/doc/latex/easy-todo/easy-todo.tex new file mode 100644 index 00000000000..440efb05d9b --- /dev/null +++ b/Master/texmf-dist/doc/latex/easy-todo/easy-todo.tex @@ -0,0 +1,44 @@ +\documentclass[a4paper]{article} +\usepackage{listings} +\usepackage[enabled,section]{easy-todo} + +\begin{document} + \title{The \texttt{easy-todo} package} + \author{Juan Rada-Vilela} + \date{January, 2011} + + \maketitle + + \begin{abstract} + The \texttt{easy-todo} package allows to add TODO notes all along the document and show the list of TODOs as an index with references. + \end{abstract} + + \section{Options} + When including the package, the following options are available: + + \begin{description} + \item [enabled] Shows the TODO notes as well as the index. + \item [disabled] Hides the TODO notes as well as the index. Useful for printing drafts without the TODO notes but keeping them in the document. + \item [final] Same as disabled. + \item [chapter] Prints the list of TODOs as a chapter. + \item [section] Prints the list of TODOs as a section. + \end{description} + + For example: +\lstset{language=TeX} +\begin{lstlisting} +\usepackage[enabled,section]{easy-todo} +\end{lstlisting} + + \section{Commands} + \begin{description} + \item [\textbackslash todo\{note\}] Adds in the same location a TODO note with text \texttt{note}. + \item [\textbackslash listoftodos] Creates the list of TODOs in the same location as used. + \end{description} + + \todo{This is a TODO note} + + \todo{I wish there was more to mention about this package, but it is so simple that it is straight-forward to understand the beginner's code} + + \listoftodos +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/easy-todo/easy-todo.sty b/Master/texmf-dist/tex/latex/easy-todo/easy-todo.sty new file mode 100644 index 00000000000..ea07fbd0fe6 --- /dev/null +++ b/Master/texmf-dist/tex/latex/easy-todo/easy-todo.sty @@ -0,0 +1,69 @@ +% Created by Juan Rada-Vilela + +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{easy-todo}[2011/01/01] + +\def\@todoindexas{chapter} +\newcommand{\todoindexas}[1]{\def\@todoindexas{#1}} + +\def\@todoenable{true} +\newcommand{\todoenable}[1]{\def\@todoenable{#1}} + + +\DeclareOption{chapter}{\todoindexas{chapter}} +\DeclareOption{section}{\todoindexas{section}} +\DeclareOption{final}{\todoenable{false}} +\DeclareOption{enabled}{\todoenable{true}} +\DeclareOption{disabled}{\todoenable{false}} +\DeclareOption*{% + \PackageError{easy-todo}{What is \CurrentOption ?}{Options available: final, enabled, disabled, 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{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. +\renewcommand{\listoftodos}{ + { + \ifthenelse{\equal{\@todoenable}{true}} + { + \todocolor + \ifthenelse{\equal{\@todoindexas}{chapter}} + {\chapter*{\todoindextitle}} + { + \ifthenelse{\equal{\@todoindexas}{section}} + {\centering\section*{\todoindextitle}} + {\PackageError{easy-todo}{Index as \@todoindexas NOT valid}{Choose between chapter or section}} + } + \flushright{\textbf{\todoindexpagetitle}} + \@starttoc{lod}} + \newpage + } + {} +} + +\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} + }{} +} diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index 9126ba0507c..56fabac3518 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -114,7 +114,7 @@ my @TLP_working = qw( draftwatermark dramatist dratex drawstack droid drs drv dtk dtxgallery dtxtut duerer duerer-latex duotenzor dvdcoll dviasm dviincl dvipdfmx-def dvipsconfig dyntree - ean ean13isbn easy easylist + ean ean13isbn easy easy-todo easylist ebong ebsthesis ecc ecclesiastic ecltree economic ecv ed edmac edmargin ednotes eemeir eepic egameps egplot eiad eiad-ltx eijkhout diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc index de6a009c9af..4f40acb0456 100644 --- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc @@ -166,6 +166,7 @@ depend dtk depend dtxgallery depend dvdcoll depend easy +depend easy-todo depend easylist depend ean13isbn depend ebezier diff --git a/Master/tlpkg/tlpsrc/easy-todo.tlpsrc b/Master/tlpkg/tlpsrc/easy-todo.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/easy-todo.tlpsrc |