ECN No Name Newsletter: September, 1991

The ECN No Name Newsletter is no longer being published. This is an archived issue.

[previous article] [next article]

Getting The Spacing Correct On A Tall Equation Inside PIC

Kent De La Croix

Sometime after you have carefully (and correctly) built an equation when you print it inside a PIC drawing it comes out looking like the "pieces parts" of the equation and the pic drawing have been oddly scattered.

The problem is that when you do a "tall" in-line equation eqn leaves extra vertical space so that that the lines of text before and after the equation won't run into it. However, pic knows nothing about eqn and assumes that the vertical position is unchanged after printing a text "string". So what happens is that everything drawn after a "tall" equation is shifted down too low. The solution is to use eqn's "space 0" command to tell eqn not to leave the extra vertical space.

A line of code within a pic drawing might look like this:

   line invis from A.e to B.w  .sp
    "$space 0 {{delta {s sub 2}} over {A sub 2}}$"


webmaster@ecn.purdue.edu
Last modified: Saturday, 02-Oct-99 10:09:10 EST

[HTML Check] HTML