From 2d16a2d72a81696210140564037ce71ac4d8d91b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Mon, 27 Jun 2022 17:33:08 +0200 Subject: [PATCH] make todo commands accept optional arguments --- src/wrappers/todo/todo.pysty | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/wrappers/todo/todo.pysty b/src/wrappers/todo/todo.pysty index e7663f7..4cfa6e3 100644 --- a/src/wrappers/todo/todo.pysty +++ b/src/wrappers/todo/todo.pysty @@ -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.} }