🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #915

drawing lines with PostScript

#915
From: Ed Robertson
Date: Thu, 09 Apr 1992 20:57
25 lines
1431 bytes
I am looking for TeX macros which would generate PostScript,
using \special, to draw lines.  I know that this makes it machine
specific, but since all of the printers in our department are
PostScript printers, I feel pretty safe.

From the TeX side, I would expect a macro something like
  \linene(x,y)
that would create a box with dimension x X y with a line drawn
from the SW to the NE corner.  A similar macro \linenw would
draw lines with negative slope.  Of course they could be
fancier, but this is about the simplest thing I could think of.

There are alternatives: LaTeX's picture environment provides something
like this, but because it uses fonts for the line segments, the
number of possible slopes is limited.  It's also possible to
actually draw the lines dot-by-dot.  But since PostScript already
has lines and a lot more, it seems foolish not to use that capability
directly.



-- 
	Edward Robertson		robertson@cs.indiana.edu
	Computer Science Dept
	Indiana University		812-855-4954
Technical Details
Message-ID: <1992Apr9.155715.10826@news.cs.indiana.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!news.cs.indiana.edu!edrbtsn@iuvax.cs.indiana.edu

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!news.cs.indiana.edu!edrbtsn@iuvax.cs.indiana.edu
From: edrbtsn@iuvax.cs.indiana.edu (Ed Robertson)
Newsgroups: comp.text.tex
Subject: drawing lines with PostScript
Message-ID: <1992Apr9.155715.10826@news.cs.indiana.edu>
Date: 9 Apr 92 20:57:00 GMT
Article-I.D.: news.1992Apr9.155715.10826
Organization: Computer Science, Indiana University, Bloomington.
Lines: 25