How can I test within a document, whether or not the initial


includes the "draft" option? My naive attempt


does not work, and breaks a later \usepackage command.

  • See package ifdraft. Commented Apr 23, 2015 at 8:58

2 Answers 2


Perhaps you can use the "ifdraft" package and use one of these:

\ifoptiondraft{option draft is given}{option draft is not given} 
\ifoptionfinal{option final is given}{option final is not given}
  • If I understand the short code ifdraft.sty correctly, what was missing in my attempt was the command \ProcessOptions*\relax.
    – Joachim W
    Commented Apr 23, 2015 at 9:12

the draft option just does


so you can use the test

    not draft

You must log in to answer this question.

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