From 853d1fa8602cf51ddba283500510c36057cdd18d Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Thu, 27 Mar 2025 23:23:50 -0400 Subject: [PATCH] Added the setuptodonotes command. --- todonotes.dtx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/todonotes.dtx b/todonotes.dtx index 9447ea8..6b93406 100644 --- a/todonotes.dtx +++ b/todonotes.dtx @@ -411,10 +411,10 @@ % There are several options that can be given to the |\todo| % command. All the options are described here and often I have % included examples of the change in visual appearance. -% Default values for these options can be set using the presetkeys +% Default values for these options can be set using the setuptodonotes % command. % \begin{verbatim} -% \presetkeys{todonotes}{fancyline, color=blue!30}{} +% \setuptodonotes{fancyline, color=blue!30} % \end{verbatim} % % \DescribeMacro{disable} @@ -1207,6 +1207,10 @@ \usetikzlibrary{positioning} \RequirePackage{calc} % \end{macrocode} +% Implement a function for setting up the todonotes package. +% \begin{macrocode} +\newcommand\setuptodonotes[1]{\presetkeys{todonotes}{#1}{}} +% \end{macrocode} % Some default values are set % \begin{macrocode} \newcommand{\@todonotes@text}{}%