add todo package for quick aliases of some todonotes

This commit is contained in:
Maximilian Keßler 2022-01-10 01:07:39 +01:00
parent 07ccba4d23
commit ba8092f2f6
4 changed files with 52 additions and 0 deletions

26
src/utils/todo.pysty Normal file
View file

@ -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.}
}

1
tests/utils/todo/Makefile Symbolic link
View file

@ -0,0 +1 @@
../../COMPILE_MAKEFILE

View file

@ -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}{}%

20
tests/utils/todo/test.tex Normal file
View file

@ -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}