Comprehensive TeX Archive Network

ifdraft – Detect “draft” and “final” class options

The pack­age de­fines com­mands that switch ac­cord­ing to the pre­vail­ing ‘draft’ or ‘fi­nal’ op­tions; each com­mand takes two ar­gu­ments, the first for the ‘true’, the sec­ond for the ‘false’ case. Com­mands are:

  • \if­draft de­ter­mines whether we're op­er­at­ing in draft (‘true’) or fi­nal mode;
  • \ifop­tion­draft de­ter­mines whether a ‘draft’ op­tion has been given; and
  • \ifop­tion­fi­nal de­ter­mines whether a ‘fi­nal’ op­tion has been given.

Ver­sion1.4 2016-05-16
Li­censeThe LaTeX Project Public Li­cense 1.3
Main­tainerHeiko Oberdiek
TDS archiveoberdiek.tds.zip
Con­tained inTeX Live as oberdiek
MiKTeX as oberdiek
Topics ex­am­ine the TeX pro­gram­ming en­vi­ron­ment
Guest Book Sitemap Contact Contact Author