make todo commands accept optional arguments

This commit is contained in:
Maximilian Keßler 2022-06-27 17:33:08 +02:00
parent 8c5b9ad7a4
commit 2d16a2d72a

View File

@ -9,18 +9,18 @@ __HEADER__(Easy standards for the todonotes package)
\setuptodonotes{tickmarkheight=0.1cm, size=\small} \setuptodonotes{tickmarkheight=0.1cm, size=\small}
\newcommand\todoref{ \NewDocumentCommand\todoref{O{}}{
\todo[color=red!40]{Add reference.} \todo[color=red!40, #1]{Add reference.}
} }
\newcommand\todoquestion{ \NewDocumentCommand\todoquestion{O{}}{
\todo[color=black!10, size=\tiny] \todo[color=black!10, size=\tiny, #1]
} }
\newcommand\todotex{ \NewDocumentCommand\todotex{O{}}{
\todo[color=green!75!black] \todo[color=green!75!black, #1]
} }
\newcommand\todotypo{ \NewDocumentCommand\todotypo{O{}}{
\todo[color=blue!40, size=\tiny]{Typo corrected, double check this.} \todo[color=blue!40, size=\tiny, #1]{Typo corrected, double check this.}
} }