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}
\newcommand\todoref{
\todo[color=red!40]{Add reference.}
\NewDocumentCommand\todoref{O{}}{
\todo[color=red!40, #1]{Add reference.}
}
\newcommand\todoquestion{
\todo[color=black!10, size=\tiny]
\NewDocumentCommand\todoquestion{O{}}{
\todo[color=black!10, size=\tiny, #1]
}
\newcommand\todotex{
\todo[color=green!75!black]
\NewDocumentCommand\todotex{O{}}{
\todo[color=green!75!black, #1]
}
\newcommand\todotypo{
\todo[color=blue!40, size=\tiny]{Typo corrected, double check this.}
\NewDocumentCommand\todotypo{O{}}{
\todo[color=blue!40, size=\tiny, #1]{Typo corrected, double check this.}
}