From de6b58766758ad4d7b314d43f50da072ad7e1286 Mon Sep 17 00:00:00 2001 From: Henrik Skov Midtiby Date: Mon, 24 Oct 2011 18:07:28 +0200 Subject: [PATCH 1/8] Disable the checksum check in the master (development) branch. It should only be set in the release branch. --- todonotes.dtx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todonotes.dtx b/todonotes.dtx index e38d93a..959acf7 100644 --- a/todonotes.dtx +++ b/todonotes.dtx @@ -46,7 +46,7 @@ % % \fi % -% \CheckSum{541} +% \CheckSum{0} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z From 3605496ae7507166f0db44a5e09e068c77809a56 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 30 Dec 2011 12:29:04 +0100 Subject: [PATCH 2/8] Change code for detecting whether \chapter is defined. The earlier code lead to problems on miktex in some documentclasses. --- todonotes.dtx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todonotes.dtx b/todonotes.dtx index 959acf7..fec99b2 100644 --- a/todonotes.dtx +++ b/todonotes.dtx @@ -1385,7 +1385,7 @@ % appearance of the list of todos. % \begin{macrocode} \newcommand{\listoftodos}[1][\@todonotes@todolistname] - {\ifdefined\chapter\chapter*{#1}\else\section*{#1}\fi \@starttoc{tdo}} + {\@ifundefined{chapter}{\section*{#1}}{\chapter*{#1}} \@starttoc{tdo}} \newcommand{\l@todo} {\@dottedtocline{1}{0em}{2.3em}} % \end{macrocode} From 878120bb0369a658aa42875c94e9e1e515b53f00 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 30 Dec 2011 12:33:47 +0100 Subject: [PATCH 3/8] Another workaround for using the amsart documentclass. Suggested by Dominique (mail 2011-11-26). --- todonotes.dtx | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/todonotes.dtx b/todonotes.dtx index fec99b2..e1f1118 100644 --- a/todonotes.dtx +++ b/todonotes.dtx @@ -579,7 +579,21 @@ % \makeatother % \listoftodos\relax % \end{verbatim} -% +% +% NOT TESTED +% NOT TESTED +% NOT TESTED +% +% Dominique suggests the following workaround. +% \begin{verbatim} +% \makeatletter +% \providecommand\@dotsep{5} +% \def\listtodoname{List of Todos} +% \def\listoftodos{\@starttoc{tdo}\listtodoname} +% \makeatother +% \end{verbatim} +% +% % % \subsubsection{Unknown option ''remember picture''} % If latex throws the error From 73025cd24f95e2b4f588cfe4a759884ac6162213 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 30 Dec 2011 12:38:23 +0100 Subject: [PATCH 4/8] Reduce number of warnings by altering \marginparwidth --- todonotes.dtx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/todonotes.dtx b/todonotes.dtx index e1f1118..b5d7f0e 100644 --- a/todonotes.dtx +++ b/todonotes.dtx @@ -622,6 +622,15 @@ % When this command is issued the following marginpars (which todonotes % relies on) is inserted in the other margin. % +% \subsubsection{Reduce number of warnings} +% If the width of the inserted todonotes is forced to be larger than the +% available space in the margin, a lot of warnings are issued. +% This can be reduced with the following code. +% \begin{verbatim} +% \usepackage[textwidth=3.7cm]{todonotes} +% \setlength{\marginparwidth}{3.7cm} +% \end{verbatim} +% % % \subsubsection{Todonotes in footnotes} % Placing todonotes in footnotes throws a lot of errors. From 32e12d2aaf588de15c247c86e6d6cb9cf7d6242f Mon Sep 17 00:00:00 2001 From: Henrik Skov Midtiby Date: Thu, 22 Nov 2012 11:45:12 +0100 Subject: [PATCH 5/8] Added comment on how to avoid option clash when loading the menukeys and xcolor packages. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem was described by Denis Bitouzé. --- todonotes.dtx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/todonotes.dtx b/todonotes.dtx index b5d7f0e..8dae98d 100644 --- a/todonotes.dtx +++ b/todonotes.dtx @@ -559,7 +559,14 @@ % packages, you have to load them \emph{before} the todonotes % package, otherwise you will get an ''Option clash'' error when % latex works on the document. -% +% +% If both the menukeys and the xcolor (with the option \verb!table!) +% package should be loaded, the following order must be used. +% \begin{verbatim} +%\usepackage[table]{xcolor} +%\usepackage{todonotes} +%\usepackage{menukeys} +% \end{verbatim} % % \subsubsection{Wrapping of long lines in list of todos} % When a document is compiled with latex (and not pdflatex) long From e89f9edac52b8c0ffd9a8dd76056f3955e2df43c Mon Sep 17 00:00:00 2001 From: Henrik Skov Midtiby Date: Thu, 22 Nov 2012 11:40:51 +0100 Subject: [PATCH 6/8] Removing strange characters. --- todonotes.dtx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/todonotes.dtx b/todonotes.dtx index 8dae98d..bad7c0c 100644 --- a/todonotes.dtx +++ b/todonotes.dtx @@ -905,10 +905,10 @@ % % To streamline use the following command was suggested by Stefan Pinnow. % \newcommand\todoin[2][]{\todo[inline, caption={2do}, #1]{ -% \begin{minipage}{\textwidth-4pt}
#2
\end{minipage}}} +% \begin{minipage}{\textwidth-4pt}#2\end{minipage}}} % \begin{verbatim} % \newcommand\todoin[2][]{\todo[inline, caption={2do}, #1]{ -% \begin{minipage}{\textwidth-4pt}
#2
\end{minipage}}} +% \begin{minipage}{\textwidth-4pt}#2\end{minipage}}} % \end{verbatim} % This example renders like % \begin{verbatim} From f018b98076fc71146c3600021223f686ce694d54 Mon Sep 17 00:00:00 2001 From: Henrik Skov Midtiby Date: Wed, 25 Jul 2012 09:16:45 +0200 Subject: [PATCH 7/8] Updated code example. --- todonotes.dtx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todonotes.dtx b/todonotes.dtx index bad7c0c..a224e74 100644 --- a/todonotes.dtx +++ b/todonotes.dtx @@ -1725,7 +1725,7 @@ % \usepackage{lipsum} % \makeatletter % \def\myaddcontentsline#1#2#3{% -% \addtocontents{#1}{\protect\contentsline{#2}{#3}{see \thesection\ at p. \thepage}}} +% \addtocontents{#1}{\protect\contentsline{#2}{#3}{see \thesection\ at p. \thepage}{}}} % \renewcommand{\@todonotes@addElementToListOfTodos}{% % \if@todonotes@colorinlistoftodos% % \myaddcontentsline{tdo}{todo}{{% From 02870728fd10d42d1e0ab0ccaeb21ca7f2114913 Mon Sep 17 00:00:00 2001 From: Henrik Skov Midtiby Date: Wed, 25 Jul 2012 09:27:07 +0200 Subject: [PATCH 8/8] Prepared release. --- todonotes.dtx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/todonotes.dtx b/todonotes.dtx index a224e74..13870be 100644 --- a/todonotes.dtx +++ b/todonotes.dtx @@ -22,14 +22,14 @@ %\NeedsTeXFormat{LaTeX2e}[1999/12/01] %\ProvidesPackage{todonotes} %<*package> - [2011/10/22 .dtx Todonotes source and documentation.] + [2012/07/25 .dtx Todonotes source and documentation.] % % %<*driver> \documentclass{ltxdoc} \usepackage{wrapfig} \usepackage[colorlinks, linkcolor=black]{hyperref} -\usepackage[colorinlistoftodos, shadow]{todonotes}[2011/10/22] +\usepackage[colorinlistoftodos, shadow]{todonotes}[2012/07/25] \usepackage{amsmath} \usepackage{setspace} \setcounter{tocdepth}{2} @@ -164,6 +164,11 @@ % \changes{0.9.9}{2011/10/22}{Added author option, implementation provided by % Xavier Alameda-Pineda. Example of modifying the % listoftodos removing some protect commands with no effect.} +% \changes{1.0.0}{2012/07/25}{Mention trouble with the classicthesis style. +% Refer to some alternatives to the package. +% Added todoin command as suggested by Stefan Pinnow. +% Described how to use tikz externalize with todonotes. +% Added obeyDraft and obeyFinal options.} % \GetFileInfo{todonotes.dtx} % % \DoNotIndex{\newcommand,\newenvironment} @@ -1062,7 +1067,7 @@ % % Identifies the package and loads the packages dependences. % \begin{macrocode} -\ProvidesPackage{todonotes}[2011/10/22] +\ProvidesPackage{todonotes}[2012/07/25] \RequirePackage{ifthen} \RequirePackage{xkeyval} \RequirePackage{xcolor}