groff
[Top][All Lists]
Advanced

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

Re: pic diagram on arbitrarily large page


From: Deri
Subject: Re: pic diagram on arbitrarily large page
Date: Sat, 25 Jun 2022 00:18:12 +0100

On Friday, 24 June 2022 16:35:55 BST Robert Goulding wrote:
> I am trying to draw a huge diagram with pic - a chart with lots of boxes
> and arrows, and pic is a good tool for it. How do I get beyond the
> constraints of the paper size? I want to be able to keep extending the
> chart vertically and horizontally to an arbitrary extent. As it is, I have
> already run out of space, and new boxes do not appear on the chart (or
> appear in the wrong place).
> 
> R.

This seems to work:-

.sp 2i
.PS 18i 5i
for j=1 to 18 do
!
ellipse "Deri";
arrow;
!
.PE

And run it with this:-

groff -Tpdf -p -P-p5i,20i pic.trf > pic.pdf

The two numbers after .PS are wildth and height, and after -P-p are length and 
width of the papersize.

If I run pic on its own against the pic.trf file, the .PS line is changed to:-

.PS 0.400i 18.000i 18i 5i

I think the first two numbers are now the actual dimensions of the picture 
created. I hope this helps.

Cheers 

Deri






reply via email to

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