make todo commands accept optional arguments

Build branch bachelor-thesis (2d16a2d) from kesslermaximilian/LatexPackages
This commit is contained in:
Maximilian Keßler 2022-06-27 15:33:06 +00:00
parent b9aed4ddd7
commit 2df496465e
2 changed files with 16 additions and 16 deletions

View file

@ -1,8 +1,8 @@
{
"build_time": "",
"source files": {
"version": "v2.9-26-g8c5b9ad",
"commit": "8c5b9ad7a43452dd729b066ea7818e2a7436a149",
"version": "v2.9-27-g2d16a2d",
"commit": "2d16a2d72a81696210140564037ce71ac4d8d91b",
"dirty": false
},
"pytex": {
@ -91,12 +91,12 @@
{
"name": "wrappers/todo/mkessler-todo.sty",
"source file": "wrappers/todo/todo.pysty",
"build time": "2022/06/12 15:21",
"source version": "v2.9-14-g6545412",
"source commit hash": "6545412baf11aa044aabf606c7d44b3941c9fb20",
"build time": "2022/06/27 15:33",
"source version": "v2.9-27-g2d16a2d",
"source commit hash": "2d16a2d72a81696210140564037ce71ac4d8d91b",
"pytex version": "v1.2.0-31-gc9bb0e8",
"pytex commit hash": "c9bb0e87c91beae3e17a829603e4459cf804ec51",
"md5sum": "39e1d5629001a8953942fda0cbed1eb6",
"md5sum": "2c09ed62ddf08a701e9b51995ca17296",
"dirty": false
},
{

View file

@ -31,7 +31,7 @@
%
% Build details:
% PyTeX version: v1.2.0-31-gc9bb0e8 (commit c9bb0e8)
% Source code version: v2.9-14-g6545412 (commit 6545412)
% Source code version: v2.9-27-g2d16a2d (commit 2d16a2d)
%
% This LaTeX package is free software and is dual-licensed
% under the LPPLv1.3c and the GPLv3 licenses.
@ -47,7 +47,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mkessler-todo}[2022/06/12 - Easy standards for the todonotes package]
\ProvidesPackage{mkessler-todo}[2022/06/27 - Easy standards for the todonotes package]
@ -60,18 +60,18 @@
\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.}
}