Re: EPS fragment output for latex font interpretation? [message #55036 is a reply to message #54938] |
Wed, 25 July 2007 08:39   |
Gernot Hassenpflug
Messages: 18 Registered: April 2001
|
Junior Member |
|
|
Paolo_Grigis <pgrigis@astro.phys.ethz.ch> writes:
> Gernot Hassenpflug wrote:
>> Paolo_Grigis <pgrigis@astro.phys.ethz.ch> writes:
>> /../
>>> set_plot,'PS'
>>> device,filename='fig1.eps',/encapsulated,xsize=12.,ysize=8.
>>> !p.font=0
>>
>> I'll try this at work in the morning, for use. Is the setting of font
>> to 0 one of the critical tricks?
>
> Yes, I think it is. The point is that latex need to search and replace
> your text labels, but it cannot find them if they are encoded as anything
> different than plain text. Using device fonts should ensure that. I am
> not sure exactly how to do the same using true type font...
No worries, I'm very very happy to get the help I did! Worked
beautifully (I temporarily installed a Windows version of IDL under
linux at home using wine, and tested, happy to go to bed knowing it
will work at the office).
>>> /../
>>> ps2epsi fignew.ps fignew.epsi
>>> perl -ne 'print unless /^%%BeginPreview/../^%%EndPreview/' < fignew.epsi > fignew.eps
>>> rm fignew.epsi
>>
>> Ah, this part is new to me. Any idea what this is repairing, since
>> you've already specified emcapsulated PS in your IDL program. (I
>> understand the perl part after that to remove the preview TIFF image.)
>
> Well, this is not really necessary, don't bother. Since dvips produces a
> ps file, if you really want an eps you'll have to convert the ps to eps
> in whatever manner you like (on my machine I just happen to have
> ps2epsi available, so that's what I used). The reason for that is to
> have a separate, final eps file with the figure *and* the latex
> embellishments, which could afterwards be directly included into another
> (either latex or non-latex) document without need for additional processing.
Ah, yes, understood. In that case of course the fonts are now fixed,
no longer modifiable by the document, as I understand it. But I think
you are incorrect in one aspect: IDL produced an EPS file when you
gave it the /encapsulated modifier for the device. Here the top lines
from my file:
%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: 0 0 340 226
%%Title: Graphics produced by IDL
%%For: gernot@hase, C:\RSI\IDL60
%%Creator: IDL Version 6.0, Microsoft Windows (Win32 x86 m32)
...
Many thanks once again,
Gernot
--
Gernot Hassenpflug, NICT, Tokyo
|
|
|