Pic advice (almost a bug)

Kaare Christian kc at rna.UUCP
Tue Mar 18 14:10:51 AEST 1986


Here is my latest pic discovery.  Although this is not a bug
report per se, the following advice may prove very helpful if you
want your pic-tures to come out right.

My version of the pic distribution is setup for the Linotron 202.
One subtle consequence of this is the following. (Note none of this
is #ifdef'd for the lino202.) In an apparent attempt to make pic
usable with the old troff, pic draws short lines using the new
line drawing commands, and draws longer lines using repeated base line
rule characters.  In the file pltroff.c there is a printf
statement that elicits a troff vertical motion before outputing a
string of base line rules. Presumably this vertical motion makes
the base line rule get drawn in just the right place. You might want
to adjust this vertical motion to match the actual placement of the
base line rule for your font/printer. The suplied value is .25m, but
for my QMS laser printer the value zero works better.

Alternatively you can suppress output of horizontal lines using
the baseline rule character, and go with horizontal lines drawn
with the line drawing primitives as built into the newer (di)
troff. You can do this by setting the variable 'useDline' to a one
near the top of the pltroff.c file.

Either way, if you get boxes and lines that don't quite match up,
look to the pltroff.c file for the answer. Tho this isn't a bug,
these printer dependencies could be handled more gracefully.

Kaare Christian
cmcl2!rna!kc



More information about the Net.bugs mailing list