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?

1 Answer 1

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}
6
  • Thx also for this answer! How would you do a forced page break in with the todonotes package?
    – Carol.Kar
    Apr 4, 2015 at 8:11
  • @Kare You should ask a separate question, and clarify in what structure the page break is meant to apply. Apr 8, 2015 at 12:22
  • Thx for your reply! See here for my question: tex.stackexchange.com/questions/236745/…
    – Carol.Kar
    Apr 9, 2015 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, 2016 at 9:53
  • 1
    @JBantje Thanks. The structure of todonotes has changed, so it a different style key that needs to be adjusted. See my updated answer. Mar 31, 2019 at 14:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .