[Tex/LaTex] Latex todonotes package set default to inline

inline()todonotes

Is it possible to set the default style of todo notes by the latex todonotes package to inline to avoid mentioning inline everytime?

I imported the package into my latex document like this:

\usepackage[colorinlistoftodos,prependcaption,textsize=tiny]{todonotes}

and used it in the document like this:

\todo[inline]{New TODO comment}

Best Answer

Patching it into the original code:

\documentclass{article}
\usepackage{blindtext}
\usepackage[colorinlistoftodos,prependcaption,textsize=tiny]{todonotes}
\usepackage{regexpatch}
%\tracingxpatches%for debugging
\makeatletter
\xpatchcmd{\@todo}{\setkeys{todonotes}{#1}}{\setkeys{todonotes}{inline,#1}}{}{}
\makeatother
\begin{document}
\blindtext\todo{This should be inline}
\blindtext\todo[color=blue!20!white]{Is this blue?}
\end{document}

michaTodoDefault

Advantage: You can still use any optional argument.

Related Question