summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/todonotes/todonotes.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-11-09 00:21:35 +0000
committerKarl Berry <karl@freefriends.org>2008-11-09 00:21:35 +0000
commitf72dd4a227f24ea0f17ee451389c17d62557cb8c (patch)
treefe752e3b67f4e087b2521f21f6808c7e31caf22e /Master/texmf-dist/source/latex/todonotes/todonotes.dtx
parent95e8bfbba6ecd3d4a62c5745b2aea1c13b730850 (diff)
todonotes update (8nov08)
git-svn-id: svn://tug.org/texlive/trunk@11227 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/todonotes/todonotes.dtx')
-rw-r--r--Master/texmf-dist/source/latex/todonotes/todonotes.dtx55
1 files changed, 52 insertions, 3 deletions
diff --git a/Master/texmf-dist/source/latex/todonotes/todonotes.dtx b/Master/texmf-dist/source/latex/todonotes/todonotes.dtx
index 91ef64b5513..f08adc9c118 100644
--- a/Master/texmf-dist/source/latex/todonotes/todonotes.dtx
+++ b/Master/texmf-dist/source/latex/todonotes/todonotes.dtx
@@ -22,14 +22,15 @@
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{todonotes}
%<*package>
- [2008/10/24 .dtx Todonotes source and documentation.]
+ [2008/11/07 .dtx Todonotes source and documentation.]
%</package>
%
%<*driver>
\documentclass{ltxdoc}
\usepackage{wrapfig}
\usepackage[colorlinks, linkcolor=black]{hyperref}
-\usepackage[colorinlistoftodos]{todonotes}[2008/10/24]
+\usepackage[colorinlistoftodos]{todonotes}[2008/11/07]
+\usepackage{setspace}
\EnableCrossrefs
\CodelineIndex
\RecordChanges
@@ -92,6 +93,8 @@
% Braun.}
% \changes{0.6}{2008/10/24}{Added the caption option to the todo
% command.}
+% \changes{0.6.1}{2008/11/07}{Added a new usecas with decreased line
+% spacing.}
%
% \GetFileInfo{todonotes.dtx}
%
@@ -370,6 +373,52 @@
% \newcommand{\FXUser}[2]{\todo[inline,size=\small]{{\bfseries #1:} #2}}
% \end{verbatim}
%
+%
+%
+% \subsubsection{Altering the linespacing of todonotes}
+%
+% The |setspace| package lets you alter the line spacing of smaller
+% sections of your document. The primary construct is the
+% |spacing| environment, which is demonstrated below.
+% \begin{verbatim}
+% \begin{spacing}{0.5}
+% Some lines with a decreased line spacing. This is accomplished
+% using the setspace package that is included in standard latex
+% distributions.
+% \end{spacing}
+% \end{verbatim}
+% \begin{spacing}{0.5}
+% Some lines with a decreased line spacing. This is accomplished
+% using the setspace package that is included in standard latex
+% distributions.
+% \end{spacing}
+%
+% \vspace{0.25cm}
+% Using the |spacing| environment we can define a new todonote
+% command using the code below:
+% \begin{verbatim}
+% \newcommand{\smalltodo}[2][]
+% {\todo[caption={#2}, #1]
+% {\begin{spacing}{0.5}#2\end{spacing}}}
+% \end{verbatim}
+% \newcommand{\smalltodo}[2][]
+% {\todo[caption={#2}, #1]
+% {\begin{spacing}{0.5}#2\end{spacing}}}
+% Todonotes with decreased line spacing can now be inserted as
+% follows
+% \smalltodo[size=\footnotesize]{
+% Some lines with a decreased line spacing. This is accomplished
+% using the setspace package that is included in standard latex
+% distributions.}
+% \begin{verbatim}
+% \smalltodo[size=\footnotesize]{
+% Some lines with a decreased line spacing. This is accomplished
+% using the setspace package that is included in standard latex
+% distributions.}
+% \end{verbatim}
+%
+%
+%
% \iffalse
% \StopEventually{\PrintChanges\PrintIndex}
% \fi
@@ -379,7 +428,7 @@
%
% Identifies the package and loads the packages dependences.
% \begin{macrocode}
-\ProvidesPackage{todonotes}[2008/10/24]
+\ProvidesPackage{todonotes}[2008/11/07]
\RequirePackage{ifthen}
\RequirePackage{xkeyval}
\RequirePackage{hyperref}