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.


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}
| improve this answer | |
  • If I understand the short code ifdraft.sty correctly, what was missing in my attempt was the command \ProcessOptions*\relax. – Joachim W Apr 23 '15 at 9:12

the draft option just does


so you can use the test

    not draft
| improve this answer | |

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.