CTAN Comprehensive TeX Archive Network

CTAN package submission: ifdraft v1.0

Date: October 5, 2005 11:37:04 AM CEST
On Wed, 5 Oct 2005, Heiko Oberdiek submitted a new package called ifdraft to CTAN. > License: LPPL 1.3. > > Excerpt from the doc part inside the file: > > % Function: Switch for option draft. > % > % Use: \usepackage{ifdraft} > % \ifdraft{<draft case>}{<final case>} > % \ifoptiondraft{<option draft is given}% > % {<option draft is not given} > % \ifoptionfinal{<option final is given}% > % {<option final is not given} > % > % If none of the options "draft" or "final" is used, > % then this package assumes "final" as default setting > % for \ifdraft. [...] > % > % If either "draft" or "final" is used, \ifdraft is > % enough to distinguish between these cases. > % [...] Thanks for the upload. For the CTAN Team Rainer Schöpf

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

The package defines commands that switch according to the prevailing ‘draft’ or ‘final’ options; each command takes two arguments, the first for the ‘true’, the second for the ‘false’ case. Commands are:

  • \ifdraft determines whether we're operating in draft (‘true’) or final mode;
  • \ifoptiondraft determines whether a ‘draft’ option has been given; and
  • \ifoptionfinal determines whether a ‘final’ option has been given.

Packageifdraft
Version1.4 2016-05-16
Copyright1999, 2005, 2006, 2008 Heiko Oberdiek
MaintainerHeiko Oberdiek

Announcements

more

Guest Book Sitemap Contact Contact Author