2

Quite simply, I would like to render a todo-list at the beginning of an article I am working on. I am using the siamltex document class, however, which seems to get in the way somehow.

Here is a MWE:

    \documentclass[draft]{siamltex}
    \usepackage{todonotes}

    \begin{document}
    \listoftodos

    I love cats.  Cats are great.  I wish I could write my thesis on cats. \todo{Mention again how amazing cats are.}

    I wish I could be a cat.  They just eat, sleep, poop, and sometimes vomit.  And then there's the petting.  It's like a 24/7 massage.  \todo[inline]{Schedule a massage for yourself pronto.}
    \end{document}

enter image description here

I have to use the siamltex document class, so simply changing the class is not an option.

For reference, here is the .tdo file:

    \contentsline {todo}{Mention again how amazing cats are.}{1}{section*.2}
    \contentsline {todo}{Schedule a massage for yourself pronto.}{1}{section*.3}
2

The siamltex class sets tocdepth to 0, but you need it at 1. There's another small problem, because the section titles are set inline. I wouldn't bother about the indentation of the title, since this is just for drafts.

\documentclass{siamltex}
\usepackage{todonotes}
\usepackage{xpatch}
\usepackage{hyperref}

\makeatletter
\xpatchcmd{\listoftodos}{\@starttoc}{\mbox{}\par\@starttoc}{}{}
\makeatother
\setcounter{tocdepth}{1}

\begin{document}

\listoftodos

\bigskip

I love cats.  Cats are great.  I wish I could write my
thesis on cats. \todo{Mention again how amazing cats are.}

I wish I could be a cat.  They just eat, sleep, poop, and
sometimes vomit.  And then there's the petting.  It's like
a 24/7 massage.  \todo[inline]{Schedule a massage for yourself pronto.}

\end{document}

enter image description here

  • You have no idea how much this helps. Now I can finally get organized and finish my cat thesis. – artificial_moonlet Apr 13 '16 at 2:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.