diff --git a/src/utils/todo.pysty b/src/utils/todo.pysty new file mode 100644 index 0000000..e7663f7 --- /dev/null +++ b/src/utils/todo.pysty @@ -0,0 +1,26 @@ +__HEADER__(Easy standards for the todonotes package) + +\RequirePackage[colorinlistoftodos]{todonotes} +\RequirePackage{xparse} + +% Make \todo{} available inside minipages +\usepackage{marginnote} +\let\marginpar\marginnote + +\setuptodonotes{tickmarkheight=0.1cm, size=\small} + +\newcommand\todoref{ + \todo[color=red!40]{Add reference.} +} + +\newcommand\todoquestion{ + \todo[color=black!10, size=\tiny] +} + +\newcommand\todotex{ + \todo[color=green!75!black] +} + +\newcommand\todotypo{ + \todo[color=blue!40, size=\tiny]{Typo corrected, double check this.} +} diff --git a/tests/utils/todo/Makefile b/tests/utils/todo/Makefile new file mode 120000 index 0000000..0fde22c --- /dev/null +++ b/tests/utils/todo/Makefile @@ -0,0 +1 @@ +../../COMPILE_MAKEFILE \ No newline at end of file diff --git a/tests/utils/todo/test.tdo b/tests/utils/todo/test.tdo new file mode 100644 index 0000000..4b99315 --- /dev/null +++ b/tests/utils/todo/test.tdo @@ -0,0 +1,5 @@ +\contentsline {todo}{\color@fb@x {}{black}{}{orange}{\leavevmode {\color {orange}o}}\ test}{1}{}% +\contentsline {todo}{\color@fb@x {}{black}{}{red!40}{\leavevmode {\color {red!40}o}}\ Add reference.}{1}{}% +\contentsline {todo}{\color@fb@x {}{black}{}{black!10}{\leavevmode {\color {black!10}o}}\ what is this?}{1}{}% +\contentsline {todo}{\color@fb@x {}{black}{}{green!75!black}{\leavevmode {\color {green!75!black}o}}\ test}{1}{}% +\contentsline {todo}{\color@fb@x {}{black}{}{blue!40}{\leavevmode {\color {blue!40}o}}\ Typo corrected, double check this.}{1}{}% diff --git a/tests/utils/todo/test.tex b/tests/utils/todo/test.tex new file mode 100644 index 0000000..23aa5cf --- /dev/null +++ b/tests/utils/todo/test.tex @@ -0,0 +1,20 @@ +\documentclass{article} + +\usepackage{mkessler-todo} + +\begin{document} + \listoftodos + Just a small test. + \todo{test} + + hi + \todoref + + test + \todoquestion{what is this?} + + bla + \todotex{test} + + \todotypo +\end{document}