The todonotes package typically underlines the whole line. I would like to have more control over this. Is there an easy way?
For instance, how do I write a todo that underlines just the word 'first' in the second paragraph?
\documentclass[11pt,a4paper]{scrartcl}
\usepackage{todonotes}
\begin{document}
\todo{note 1. full line}
First paragraph. This is the first sentence of the first paragraph.
Second paragraph. This is the \todo{note 2. single word} first sentence of the second paragraph.
\end{document}
At the moment, the second note underlines from 'first' to the end of the line.
Using \todo[noline]{note 2. single word}
results in:
and the word in not underlined at all.
\documentclass{...}
and ending with\end{document}
, not including anything in between that isn't necessary to reproduce the undesired behavior; that’ll clarify what you mean. I think you’re mistaking the line that points to the place within the line of text where the todo note was placed as underlining. Try\todo[noline]{bla}
as a contrast. And have a look at thetodonotes
documentation, which is pretty user-friendly.\todo[noline]{Note Text}
, and then do the underline of the word yourself.