CTAN Comprehensive TeX Archive Network

CTAN pack­age sub­mis­sion: if­draft v1.0

Date: Oc­to­ber 5, 2005 11:37:04 AM CEST
On Wed, 5 Oct 2005, Heiko Oberdiek sub­mit­ted a new pack­age called if­draft to CTAN. > Li­cense: LPPL 1.3. > > Ex­cerpt from the doc part in­side the file: > > % Func­tion: Switch for op­tion draft. > % > % Use: \usep­a­ck­age{if­draft} > % \if­draft{<draft case>}{<fi­nal case>} > % \ifop­tion­draft{<op­tion draft is given}% > % {<op­tion draft is not given} > % \ifop­tion­fi­nal{<op­tion fi­nal is given}% > % {<op­tion fi­nal is not given} > % > % If none of the op­tions "draft" or "fi­nal" is used, > % then this pack­age as­sumes "fi­nal" as de­fault set­ting > % for \if­draft. [...] > % > % If ei­ther "draft" or "fi­nal" is used, \if­draft is > % enough to dis­tin­guish be­tween these cases. > % [...] Thanks for the up­load. For the CTAN Team Rainer Schöpf

if­draft – De­tect “draft” and “fi­nal” class op­tions

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.

Pack­ageif­draft
Ver­sion1.4 2016-05-16
Copy­right1999, 2005, 2006, 2008 Heiko Oberdiek
Main­tainerHeiko Oberdiek

An­nounce­ments

more

Guest Book Sitemap Contact Contact Author