4

I frequently use inline \todos (from the famous todonotes package) to embed meta comments in my documents, e.g.:

\todo[inline,caption={}]{
Some notes:
\begin{itemize}
\item \lipsum[1-2]
\item \lipsum[1-2]
\item \lipsum[1-2]
\end{itemize}
}

Which gives the following result:

Example

My main question is: Is it possible to force full justification within a todo note?

And a side question that just came up preparing the above example: Is it possible to have page breaks in a todo note?

bluenote10
  • 1,479

1 Answers1

6

todonotes uses tikz to build the notes as nodes. This means that they can not split over pages, but you can use tikz styling commands. With the latest version of todonotes one changes the notestyleraw by appending align=justify:

Sample output

\documentclass{article}

\usepackage{todonotes}

\tikzset{notestyleraw/.append style={align=justify}}

\usepackage{lipsum} %for dummy text

\begin{document}

\todo[inline,caption={}]{
Some notes:
\begin{itemize}
\item \lipsum[1]
\item \lipsum[2]
\end{itemize}
}
\end{document}
Andrew Swann
  • 95,762
  • Thx also for this answer! How would you do a forced page break in with the todonotes package? – Carol.Kar Apr 04 '15 at 08:11
  • @Kare You should ask a separate question, and clarify in what structure the page break is meant to apply. – Andrew Swann Apr 08 '15 at 12:22
  • Thx for your reply! See here for my question: http://tex.stackexchange.com/questions/236745/package-todo-cut-off-at-page-end – Carol.Kar Apr 09 '15 at 14:34
  • @AndrewSwann I would be grateful if you could help me produce literally inline notes without additional space or line breaks as I asked here. – Diaa Sep 15 '16 at 09:53
  • FYI: This does not seem to work with newer versions of TeXlive anymore – and I have no idea why. However, I don't need this at the moment, as I would use tcolorbox for boxes of this size. – JBantje Mar 30 '19 at 12:40
  • 1
    @JBantje Thanks. The structure of todonotes has changed, so it a different style key that needs to be adjusted. See my updated answer. – Andrew Swann Mar 31 '19 at 14:35