Article View: comp.text
Article #2410DWB pic problem with dotted lines
From: Bruno Pillard
Date: Wed, 23 Jan 1991 13:42
Date: Wed, 23 Jan 1991 13:42
55 lines
1955 bytes
1955 bytes
I wanted to draw (with pic) a box with a dotted line to divide the box
in two parts, so I tried:
box
line from last box.w to last box.e dotted
The problem with this, is that the last dot of the line is out of the
box, more or less like this:
----------------
| |
|..............|.
| |
| |
----------------
I've also tried this with the same result:
box
line from last box.w right boxwid dotted
I think that the problem is that the first point is not exactly ON the
left border of the box, so the last one is of course off the box.
I've tried this to supress the last dot and the result is more acceptable
but far from perfect:
box
line from last box.w right boxwid-boxwid/20 dotted boxwid/20
My best result is to make a shorter and centered line with:
box
line from last box.w + boxwid/40,0 right boxwid-(boxwid/20) dotted boxwid/20
But I have to change my macros (too much in my opinion).
Does anyone out there have another (better) solution:
- A standard way to do this I've not been able to found in the manual
- A patch to DWB2.0's pic.d/print.c (I have the source)
PS: I don't want (for now) to upgrade to DWB3.1 or use gpic/groff
although I would like to know if they can handle that case correctly
__
/ ) Bruno Pillard
/--< __ . . __ __ Chorus Systemes
/___/_/ (_(_/_/) )_(_) 6 Avenue Gustave Eiffel
78182 St-Quentin-en-Yvelines-Cedex France
bp@chorus.fr (Internet) Tel: +33 (1) 30 64 82 13
Technical Details
Message-ID:
<7619@chorus.fr>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!i2unix!inria!chorus!bpShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!i2unix!inria!chorus!bp From: bp@chorus.fr (Bruno Pillard) Newsgroups: comp.text Subject: DWB pic problem with dotted lines Keywords: pic, dotted line Message-ID: <7619@chorus.fr> Date: 23 Jan 91 13:42:35 GMT Sender: news@chorus.fr Lines: 55