Re: IDL produced postscript files in latex [message #22025] |
Tue, 17 October 2000 17:10 |
Mark Hadfield
Messages: 783 Registered: May 1995
|
Senior Member |
|
|
"David Fanning" <davidf@dfanning.com> wrote in message
news:MPG.14568fadc0371f56989c57@news.frii.com...
> Simon Webster (simon@nonsense.co.uk) writes:
>
>> I'm producing postscript files with idl to go in a latex article.
>> Everything is fine when i just have one plot on the page, but when i
>> used !p.multi=[0,2,0] latex acted as though the second graph didn't
>> exist, overwriting the plot with text. Is this a known problem and is
>> there any way around it?
>
> Gosh, it has been a LONG time since I worked with Latex.
Me too. Probably even longer than you, David. (Except that I've been playing
around with it recently, but so far it doesn't count as "working with" it.)
I just produced an EPS file with a pair of plots using !P.MULTI (it's been a
while since I worked with that!) and included it in a LaTeX document. No
problems.
> Anyway, I don't *ever* remember difficulty getting
> LaTeX to accept encapsulated PostScript output, even
> with multi-plots (and we had several of them in the
> IDL documentation). You are certain you have set it
> up correctly:
> ...
> I don't recall at all the latex commands, but presumably
> the bounding box in the encapsulated PostScript file
> will set the correct amount of space aside in the latex
> file.
Yes. The only thing other I can suggest is that you may be overriding the
EPS file's bounding box declaration in the LaTeX code. There are various
optional keywords to \includegraphics that allow this. But more likely is
that what you've produced is not a true EPS file.
---
Mark Hadfield
m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield/
National Institute for Water and Atmospheric Research
PO Box 14-901, Wellington, New Zealand
Hi! I'm a .signature virus! copy me into your .signature file to help me
spread!
|
|
|
Re: IDL produced postscript files in latex [message #22027 is a reply to message #22025] |
Tue, 17 October 2000 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Simon Webster (simon@nonsense.co.uk) writes:
> I'm producing postscript files with idl to go in a latex article.
> Everything is fine when i just have one plot on the page, but when i
> used !p.multi=[0,2,0] latex acted as though the second graph didn't
> exist, overwriting the plot with text. Is this a known problem and is
> there any way around it?
Gosh, it has been a LONG time since I worked with Latex.
The original IDL documentation was written in Latex,
which looked like gibberish to the folks who were
turning IDL into PV-Wave. They hired me, I think,
because I had a Ph.D. and they (mistakenly, probably)
thought that meant I would be smart enough to figure
it out. As I recall, they wanted me to scratch out
"IDL" everywhere it occurred and write in "PV-Wave".
I spent two days with the LaTex manuals, then figured
out how to do a global search and replace. I let a week
or 10 days go by while I sort of got used to the new
place, etc. Finally, I told them I was finished with
the job. They were so impressed with how short a time
it took me that they gave me a $700 bonus, as I recall. :-)
Anyway, I don't *ever* remember difficulty getting
LaTex to accept encapsulated PostScript output, even
with multi-plots (and we had several of them in the
IDL documentation). You are certain you have set it
up correctly:
thisDevice = !D.Name
!P.Multi=[0, 2, 1]
Set_Plot, 'PS'
Device, XSize=5, YSize=5, /Inches, /Encapsulated, $
Filename='myplot.eps'
Plot, data
Plot, moredata
Device, /Close_File
Set_Plot, thisDevice
!P.Multi = 0
I don't recall at all the LaTex commands, but presumably
the bounding box in the encapsulated PostScript file
will set the correct amount of space aside in the LaTex
file.
I would look elsewhere for your problem. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: IDL produced postscript files in latex [message #22028 is a reply to message #22027] |
Tue, 17 October 2000 00:00  |
noymer
Messages: 65 Registered: June 1999
|
Member |
|
|
Assuming you are using ENCAPSULATED PostScript,
LaTeX should have nothing to do with the included
graphic except to put it in place.
Your IDL code looks something like:
SET_PLOT, 'PS' ; PS device
!P.FONT=0 ; use PostScript font
DEVICE, /ENCAPSULATED, Filename='foo.eps'
PLOT blah blah blah
DEVICE, /CLOSE_file
blah blah blah blah
right? And you're not doing anything fancy in
LaTeX like using psfrag, I assume.
-Andrew
Sent via Deja.com http://www.deja.com/
Before you buy.
|
|
|