%----------------------- shadebox.sty -----------------------------------
% This is a bit cumbersome, but it produces a dot-shaded box over some text
% using a hard-coded dot size (1/300 in) which you may want to change for
% your printer.
\newbox\shadebox\newdimen\swidth\newdimen\sheight\newdimen\sdepth
\newbox\dotbox \newdimen\dotsize \dotsize=1in \divide\dotsize by300
\def\hlinefill{\leaders\hrule height\dotsize\hfill}
\setbox\dotbox=\hbox to4\dotsize{\hss\hbox to\dotsize{\hlinefill}\vrule 
depth3\dotsize width0pt height0pt\hss}
\newdimen\overlap \overlap=2pt
\def\shade#1{%
\setbox\shadebox=\hbox{#1}
\swidth=\wd\shadebox\sheight=\ht\shadebox\sdepth=\dp\shadebox
\advance\sheight by\sdepth
\advance\swidth by2\overlap
\advance\sheight by2\overlap
\setbox\shadebox=\hbox to\swidth{\cleaders\vbox to\sheight{\cleaders
\copy\dotbox\vfil}\hfil}#1\kern-\swidth\kern\overlap
\lower2\overlap\box\shadebox}
\endinput
%
Newsgroups: comp.text.tex
From: pflynn@curia.curia.ucc.ie (Peter Flynn)
Subject: Re: HELP: rectangle with gray pattern inside ?
Organization: University College Cork
Date: Thu, 24 Mar 1994 09:31:55 GMT

In article <2mqgtd$491@mozz.unh.edu> pcharman@kepler.unh.edu (Philippe Charman) writes:

   I'd like to draw a rectangle with a some gray pattern inside.
   Is there any extended command which can generate that stuff ?

I posted this here a while back, but here it is again.

///Peter

