5

Is it possible to compile a file with the extract package that just includes the \listoftodos (todonotes package) of another file?

egreg
  • 1,121,712
Philip
  • 3,415

1 Answers1

7

You do not need to use the extract package for this. Provided you have compiled your main file main.tex with the todo notes in it, there will be an auxilliary file main.tdo containing the list of todo's. Now all you need in a second document is to include that file main.tdo. Here is a working set-up:

First: main.tex

Main file

\documentclass{article}

\usepackage{todonotes}

\begin{document}

Text.\todo{Something needs doing here.}

\listoftodos
\end{document}

Second: todolist.tex

Todo file

\documentclass{article}

\usepackage{todonotes}

\begin{document}

\input{main.tdo}

\end{document}
Andrew Swann
  • 95,762