Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F109882530
description.tex
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Apr 23, 20:02
Size
1 KB
Mime Type
text/x-tex
Expires
Fri, Apr 25, 20:02 (2 d)
Engine
blob
Format
Raw Data
Handle
25754554
Attached To
R232 fabrepos2
description.tex
View Options
% shade/description.tex
% see README for licensing and contact information.
\magnification=\magstep1
\parindent0pt \parskip 3pt
\input shade.tex
{\tt SHADE} is a \TeX\ tool that can be used to produce shaded boxes
using neither PostScript nor Pic\TeX.
% The syntax is:
\shade{This text will appear on a shaded background!}
The shading macro first packs its argument into an hbox.
\shade{\vbox{\hsize 5cm
\leftskip=0pt plus 1fil\rightskip=0pt plus 1fil
\parfillskip=0pt
Then it measures the dimensions of this box and produces a
shaded box slightly larger then this box, using the font
shade produced by {\tt shade.mf}. Finally it
puts the box back and overlays it with the shaded box.
\par
}}
Since the best shading is achieved at the lowest possible resolution,
the font \shade{SHADE} is {\bf not device independent} --- it uses
the printer resolution. Therefore the .dvi file is
{\bf not device independent}, either.
The macro code, however, {\bf is device independent}.
This method was used because otherwise shading, and in particular
the boundaries between two shading characters, could turn out to be not
completely uniform.
For the same reason, the font should only be used at its true size.
The {\tt shade} package consists of three main files:
{\tt shade.mf, % MetaFont file for shading font
shade.tex, % macro file be used with LaTeX, too
description.tex. % this file,
% which can be processed by TeX as a demo file
}
It was tested with a HP LaserJet II plus.
\bye
Event Timeline
Log In to Comment