# Package todo - cut off at page end

I am using the todonotes package. However, when the \todos get too long the text goes over the page and cannot be seen. Here is an example of what I tried:

\documentclass{article}

\usepackage{todonotes}

\usepackage{lipsum} %for dummy text

\begin{document}

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


Therefore, how can you do a page break in the todonotes package, so that the notes go on on the next page?

• Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. – user11232 Apr 4 '15 at 8:11
• For such large content with colored background, don't use todo (They are not notes BTW but content ;-)). You are safe with say, tcolorbox. – user11232 Apr 4 '15 at 8:18
• With todonotes, it is difficult though may be possible. I can add an example with tcolorbox if you want. – user11232 Apr 4 '15 at 9:46
• Sorry about that but you can always search and replace using your editor. – user11232 Apr 4 '15 at 10:37
• Are you using url packages? Check its manual for breaking a long url. – user11232 Apr 5 '15 at 12:02

todonotes uses tikz nodes for its contents, and node contents can not be broken across pages.

Hence to put large amount of text with a frame and coloured background, todonotes is not a good choice. Better use tcolorbox. Here is an example as requested.

\documentclass{article}

\usepackage[most]{tcolorbox}

\usepackage{lipsum} %for dummy text

\begin{document}

\begin{tcolorbox}[colback=orange,colframe=black,enhanced jigsaw,
arc=3mm,boxsep=4pt,boxrule=0.5pt,breakable]
Some notes:
\begin{itemize}
\item \lipsum[1]
\item \lipsum[2]
\item \lipsum[1]
\item \lipsum[2]
\item \lipsum[1]
\item \lipsum[2]
\item \lipsum[1]
\item \lipsum[2]
\end{itemize}
\end{tcolorbox}
\end{document}