From f72dd4a227f24ea0f17ee451389c17d62557cb8c Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 9 Nov 2008 00:21:35 +0000 Subject: todonotes update (8nov08) git-svn-id: svn://tug.org/texlive/trunk@11227 c570f23f-e606-0410-a88d-b1316a301751 --- .../source/latex/todonotes/todonotes.dtx | 55 ++++++++++++++++++++-- 1 file changed, 52 insertions(+), 3 deletions(-) (limited to 'Master/texmf-dist/source/latex/todonotes') 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 @@ %\NeedsTeXFormat{LaTeX2e}[1999/12/01] %\ProvidesPackage{todonotes} %<*package> - [2008/10/24 .dtx Todonotes source and documentation.] + [2008/11/07 .dtx Todonotes source and documentation.] % % %<*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} -- cgit v1.2.3