summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/oberdiek/ifdraft.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/ifdraft.dtx')
-rw-r--r--Master/texmf-dist/source/latex/oberdiek/ifdraft.dtx81
1 files changed, 65 insertions, 16 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/ifdraft.dtx b/Master/texmf-dist/source/latex/oberdiek/ifdraft.dtx
index 75fa973e831..7579674faa4 100644
--- a/Master/texmf-dist/source/latex/oberdiek/ifdraft.dtx
+++ b/Master/texmf-dist/source/latex/oberdiek/ifdraft.dtx
@@ -1,11 +1,12 @@
% \iffalse meta-comment
-%
+%
% File: ifdraft.dtx
% Version: 2008/08/11 v1.3
-%
+% Info: Detect class options draft and final
+%
% Copyright (C) 1999, 2005, 2006, 2008 by
% Heiko Oberdiek <heiko.oberdiek at googlemail.com>
-%
+%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
% version 1.3c of this license or (at your option) any later
@@ -15,19 +16,19 @@
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of
% LaTeX version 2005/12/01 or later.
-%
+%
% This work has the LPPL maintenance status "maintained".
-%
+%
% This Current Maintainer of this work is Heiko Oberdiek.
-%
+%
% This work consists of the main source file ifdraft.dtx
% and the derived files
% ifdraft.sty, ifdraft.pdf, ifdraft.ins, ifdraft.drv.
-%
+%
% Distribution:
% CTAN:macros/latex/contrib/oberdiek/ifdraft.dtx
% CTAN:macros/latex/contrib/oberdiek/ifdraft.pdf
-%
+%
% Unpacking:
% (a) If ifdraft.ins is present:
% tex ifdraft.ins
@@ -36,7 +37,7 @@
% (c) If you insist on using LaTeX
% latex \let\install=y\input{ifdraft.dtx}
% (quote the arguments according to the demands of your shell)
-%
+%
% Documentation:
% (a) If ifdraft.drv is present:
% latex ifdraft.drv
@@ -46,14 +47,14 @@
% if available. Here you can specify further options, e.g.
% use A4 as paper format:
% \PassOptionsToClass{a4paper}{article}
-%
+%
% Programm calls to get the documentation (example):
% pdflatex ifdraft.dtx
% makeindex -s gind.ist ifdraft.idx
% pdflatex ifdraft.dtx
% makeindex -s gind.ist ifdraft.idx
% pdflatex ifdraft.dtx
-%
+%
% Installation:
% TDS:tex/latex/oberdiek/ifdraft.sty
% TDS:doc/latex/oberdiek/ifdraft.pdf
@@ -74,7 +75,7 @@
\input docstrip.tex
\Msg{************************************************************************}
\Msg{* Installation}
-\Msg{* Package: ifdraft 2008/08/11 v1.3 Switch for option draft (HO)}
+\Msg{* Package: ifdraft 2008/08/11 v1.3 Detect class options draft and final (HO)}
\Msg{************************************************************************}
\keepsilent
@@ -117,6 +118,10 @@ and the derived files
\file{ifdraft.drv}{\from{ifdraft.dtx}{driver}}%
\usedir{tex/latex/oberdiek}%
\file{ifdraft.sty}{\from{ifdraft.dtx}{package}}%
+ \nopreamble
+ \nopostamble
+ \usedir{source/latex/oberdiek/catalogue}%
+ \file{ifdraft.xml}{\from{ifdraft.dtx}{catalogue}}%
}
\catcode32=13\relax% active space
@@ -143,16 +148,16 @@ and the derived files
%<*driver>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{ifdraft.drv}%
- [2008/08/11 v1.3 Switch for option draft (HO)]%
+ [2008/08/11 v1.3 Detect class options draft and final (HO)]%
\documentclass{ltxdoc}
-\usepackage{holtxdoc}[2011/02/04]
+\usepackage{holtxdoc}[2011/11/22]
\begin{document}
\DocInput{ifdraft.dtx}%
\end{document}
%</driver>
% \fi
%
-% \CheckSum{43}
+% \CheckSum{46}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -270,7 +275,7 @@ and the derived files
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{ifdraft}%
- [2008/08/11 v1.3 Switch for option draft (HO)]
+ [2008/08/11 v1.3 Detect class options draft and final (HO)]
% \end{macrocode}
%
% \begin{macrocode}
@@ -505,6 +510,50 @@ and the derived files
%\end{verbatim}
% \end{quote}
%
+% \section{Catalogue}
+%
+% The following XML file can be used as source for the
+% \href{http://mirror.ctan.org/help/Catalogue/catalogue.html}{\TeX\ Catalogue}.
+% The elements \texttt{caption} and \texttt{description} are imported
+% from the original XML file from the Catalogue.
+% The name of the XML file in the Catalogue is \xfile{ifdraft.xml}.
+% \begin{macrocode}
+%<*catalogue>
+<?xml version='1.0' encoding='us-ascii'?>
+<!DOCTYPE entry SYSTEM 'catalogue.dtd'>
+<entry datestamp='$Date$' modifier='$Author$' id='ifdraft'>
+ <name>ifdraft</name>
+ <caption>Detect "draft" and "final" class options.</caption>
+ <authorref id='auth:oberdiek'/>
+ <copyright owner='Heiko Oberdiek' year='1999,2005,2006,2008'/>
+ <license type='lppl1.3'/>
+ <version number='1.3'/>
+ <description>
+ The package defines commands that switch according to the
+ prevailing &#x2018;draft&#x2019; or &#x2018;final&#x2019;
+ options; each command takes two arguments, the first for the
+ &#x2018;true&#x2019;, the second for the &#x2018;false&#x2019;
+ case. Commands are:<br/>
+ &#x2014; <tt>\ifdraft</tt> determines whether we're operating in
+ draft (&#x2018;true&#x2019;) or final mode;<br/>
+
+ &#x2014; <tt>\ifoptiondraft</tt> determines whether a
+ &#x2018;draft&#x2019; option has been given; and<br/>
+ &#x2014; <tt>\ifoptionfinal</tt> determines whether a
+ &#x2018;final&#x2019; option has been given.
+ <p/>
+ The package is part of the <xref refid='oberdiek'>oberdiek</xref> bundle.
+ </description>
+ <documentation details='Package documentation'
+ href='ctan:/macros/latex/contrib/oberdiek/ifdraft.pdf'/>
+ <ctan file='true' path='/macros/latex/contrib/oberdiek/ifdraft.dtx'/>
+ <miktex location='oberdiek'/>
+ <texlive location='oberdiek'/>
+ <install path='/macros/latex/contrib/oberdiek/oberdiek.tds.zip'/>
+</entry>
+%</catalogue>
+% \end{macrocode}
+%
% \begin{History}
% \begin{Version}{1999/12/28 v1.0}
% \item