Article View: comp.sys.sun
Article #12193Re: Postscript within TeX/LaTeX (dvi2ps help)
From: mcvax!gec-epl.co.uk!Dunstan_Vava...
Date: Tue, 25 Apr 1989 06:48
Date: Tue, 25 Apr 1989 06:48
49 lines
2640 bytes
2640 bytes
I looked into this in some detail a while back when trying to include f2ps
output in a LaTeX document. The fundamental point is that the TeX \special
function doesn't leave any room at all. It just reads in the Postscript
file and splats it exactly where the \special command is.
Now, I don't have any knowledge of Postscript at all, but as far as I
understand it, TeX treats the point where the \special command is written
as the origin of the Postscript file (the term use is "the user's (0,0)
point"). This means the point where a paragraph of text would start is
(typically) the bottom left corner of the Postscript image.
The sort of construct you want is
--- begin LaTeX code--------
\begin{figure}[tb]
\vspace*{5.7in}
\special{psfile=fig1.ps}
\caption{Schematic of the static model}
\end{figure}
Start of next paragraph....
--- end LaTeX code--------
The blank lines are important - if you don't put them in things come out
in funny places (a TeXpert will be able to explain why).
I've never tried the hscale, vscale options to \special, but I have never
got the offset options to work, so the scaling ones should be treated with
some scepticism.
If you wish to preview the results of this jiggery pokery before printing
it, I suggest you use the RalPage Postscript previewer, which is freely
available (though not in the Public Domain).
Dunstan Vavasour
Systems Design Division
GEC Electrical Projects
Boughton Road
Rugby, Warwickshire, CV21 1BU
Tel: (+44) 788 542144 Ext: 3535
Fax: (+44) 788 60767
Email: dv@gec-epl.co.uk
dv%uk.co.gec-epl@uk.ac.ukc (JANET)
...mcvax!ukc!uk.co.gec-epl!dv
[[ This really belongs in "TeXHax" and "comp.text". --wnl ]]
Technical Details
Message-ID:
<8904030932.AA16077@mcvax.cwi.nl>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-requestShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request From: mcvax!gec-epl.co.uk!Dunstan_Vavasour@uunet.uu.net Newsgroups: comp.sys.sun Subject: Re: Postscript within TeX/LaTeX (dvi2ps help) Keywords: Software Message-ID: <8904030932.AA16077@mcvax.cwi.nl> Date: 25 Apr 89 06:48:41 GMT Sender: usenet@rice.edu Organization: Sun-Spots Lines: 49 Approved: Sun-Spots@rice.edu Original-Date: Mon, 3 Apr 89 10:22:15 BST X-Sun-Spots-Digest: Volume 7, Issue 245, message 5 of 15