From: Mark Wooding Date: Mon, 7 Sep 2020 15:39:56 +0000 (+0100) Subject: slowbox.dtx: Add a demonstration. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mdwtools/commitdiff_plain/620dfe244d081e26ffbbdd5ce1fcc3b77e523f0b slowbox.dtx: Add a demonstration. Also a test. --- diff --git a/slowbox.dtx b/slowbox.dtx index a2c3909..5129a61 100644 --- a/slowbox.dtx +++ b/slowbox.dtx @@ -56,6 +56,7 @@ % %<*driver> \input{mdwtools} +\PassOptionsToPackage{hide}{slowbox} \describespackage{slowbox} \newcommand\opt[1]{\textsf{#1}} \def\*{\hspace{0pt plus 0.1pt}\ignorespaces} @@ -115,6 +116,22 @@ % 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