Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm using the package todonotes. How can I disable the todo notes for printing my final document? (I know it's possible, but I can't find it and I don't want to (manually) delete all my notes in the document...)

I've read the documentation, but I still have NO clue on what to type to disable todonotes. This is all I have in my preamble:

\usepackage{todonotes}
\newcommand{\td}[1]{\todo[inline]{#1}}

but commenting any of those will keep my note's text on the spot and just remove the formatting. I couldn't figure out what to type to fully remove that unless I go one by one and do it.

share|improve this question
1  
When you don't want your notes to be visible just change \usepackage{todonotes} to \usepackage[disable]{todonotes} –  Splashy Nov 2 '10 at 14:17
1  
Using the official methods is better, but you could just redefine the macro: \renewcommand{todo}[2][]{}. –  Peter Grill Oct 9 '12 at 1:13

2 Answers 2

up vote 27 down vote accepted

I just got it: for notes not to be visible just change:

\usepackage{todonotes}

to

\usepackage[disable]{todonotes}
share|improve this answer

You can also give it the obeyDraft option (\usepackage[obeyDraft]{todonotes}), so that it will display todonotes if your document is in draft mode and hide them if it isn't in draft mode. However, be aware that the draft mode also only shows bounding boxes for images, so that might be an issue.

share|improve this answer
3  
My preferred option for todonotes is obeyFinal. With this option, todonotes will be disabled only in final mode. –  Dario Nov 5 '13 at 15:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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