| 1 |
% shade/description.tex |
| 2 |
% see README for licensing and contact information. |
| 3 |
|
| 4 |
\magnification=\magstep1 |
| 5 |
\parindent0pt \parskip 3pt |
| 6 |
\input shade.tex |
| 7 |
|
| 8 |
{\tt SHADE} is a \TeX\ tool that can be used to produce shaded boxes |
| 9 |
using neither PostScript nor Pic\TeX. |
| 10 |
|
| 11 |
% The syntax is: |
| 12 |
|
| 13 |
\shade{This text will appear on a shaded background!} |
| 14 |
|
| 15 |
The shading macro first packs its argument into an hbox. |
| 16 |
|
| 17 |
\shade{\vbox{\hsize 5cm |
| 18 |
\leftskip=0pt plus 1fil\rightskip=0pt plus 1fil |
| 19 |
\parfillskip=0pt |
| 20 |
Then it measures the dimensions of this box and produces a |
| 21 |
shaded box slightly larger then this box, using the font |
| 22 |
shade produced by {\tt shade.mf}. Finally it |
| 23 |
puts the box back and overlays it with the shaded box. |
| 24 |
\par |
| 25 |
}} |
| 26 |
|
| 27 |
Since the best shading is achieved at the lowest possible resolution, |
| 28 |
the font \shade{SHADE} is {\bf not device independent} --- it uses |
| 29 |
the printer resolution. Therefore the .dvi file is |
| 30 |
{\bf not device independent}, either. |
| 31 |
The macro code, however, {\bf is device independent}. |
| 32 |
This method was used because otherwise shading, and in particular |
| 33 |
the boundaries between two shading characters, could turn out to be not |
| 34 |
completely uniform. |
| 35 |
For the same reason, the font should only be used at its true size. |
| 36 |
|
| 37 |
The {\tt shade} package consists of three main files: |
| 38 |
{\tt shade.mf, % MetaFont file for shading font |
| 39 |
shade.tex, % macro file be used with LaTeX, too |
| 40 |
description.tex. % this file, |
| 41 |
% which can be processed by TeX as a demo file |
| 42 |
} |
| 43 |
It was tested with a HP LaserJet II plus. |
| 44 |
|
| 45 |
\bye |