*: Eliminate the old CVS `$Id: ...' markers.
[mdwtools] / slowbox.dtx
index a2c3909..baa04ba 100644 (file)
@@ -1,6 +1,6 @@
 % \begin{meta-comment}
 %
-% $Id: slowbox.dtx,v 1.2 2003/09/06 13:08:16 mdw Exp $
+% slowbox.dtx
 %
 % Cop-out for slow things
 %
@@ -56,6 +56,7 @@
 %
 %<*driver>
 \input{mdwtools}
+\PassOptionsToPackage{hide}{slowbox}
 \describespackage{slowbox}
 \newcommand\opt[1]{\textsf{#1}}
 \def\*{\hspace{0pt plus 0.1pt}\ignorespaces}
 % before, it always typesets the box contents, and saves the measurements for
 % later.
 %
+% \begin{demo}{Slow boxes}
+%\newcommand{\pic}
+%  {\parbox[t]{20mm}
+%     {Just pretend that there's a picture
+%      here that would take aaaages to draw.}}
+%--
+%\begin{slowbox*}{show}
+%  \pic
+%\end{slowbox*}
+%--
+%\begin{slowbox}{hide}
+%  \pic
+%\end{slowbox}
+%--
+% \end{demo}
+%
 % \DescribeMacro\slowboxbegin
 % \DescribeMacro\slowboxend
 % It's useful to define your own commands environments which create slow