groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] Position Images with PSPIC.


From: Tadziu Hoffmann
Subject: Re: [Groff] Position Images with PSPIC.
Date: Wed, 15 May 2002 12:45:14 +0200

[snip]

> I expect a line across the middle of the page, plus four diagonal lines,
> each (1cm, 1cm) in from the corner of the page and stoping just short of
> the corner.  Then I'd like the first image to appear at in the top half
> of the page, and the second in the bottom half.
> 
>     \   /
>      img
>      ---
>      img
>     /   \
> 
> There seems to be two problems.  All the lines are about 8.3mm further
> down the page than I'd expect, probably everything else is as well.

Do the spacing with the baseline distance set to zero.
.sp aways skips the requested amount plus the baseline spacing.

Also, motions with \v and \h are apparently only local, i.e.,
groff restores your position after printing "1" resp. "2".
Try spacing with .sp before including the images, like so:

  .pl 29.7c
  .ll 19c
  .po 1c
  .vs 0
  .sp |14.85c
  \v'|14.85c'\D'l 19c 0'
  \v'|1c'\Z'\D'l -0.9c -0.9c''\h'|19c'\Z'\D'l 0.9c -0.9c''
  \v'|28.7c'\Z'\D'l -0.9c 0.9c''\h'|19c'\Z'\D'l 0.9c 0.9c''
  \v'|1c'\h'|1c'1
  .PSPIC 127.ps 3c
  .sp |1c
  \v'|15.85c'\h'|1c'2
  .sp |15.85c
  .PSPIC 127.ps 4c




reply via email to

[Prev in Thread] Current Thread [Next in Thread]