Problem with .eps figure losing annotation in a LaTeX document [message #92111] |
Wed, 14 October 2015 11:50  |
BLesht
Messages: 89 Registered: March 2007
|
Member |
|
|
I use LaTeX (via TeXShop (v3.56) on a Mac (OSX10.8.5) for documents. I generate most of my graphics using IDL (v8.2). This always has worked well in the past. Today, I generated a new plot using the same code (based on Coyote graphics) that I've used before and saved it (as before) as an .eps file. Now, however, when I import it into my LaTeX document, all the alphabetic annotation (including decimal points) disappears from the axis annotations and from any text that I have included in the plot. When I view the .eps file using either Preview on the Mac or gv, it looks fine - nothing is missing.
I'm not entirely sure that this is an IDL issue or if it something do with with TexShop (I posted a question to that group as well), or maybe something with ghostscript (version 9.16). I was wondering if anyone else had had a similar problem or maybe has some insight into what might be going on.
Thanks.
|
|
|
Re: Problem with .eps figure losing annotation in a LaTeX document [message #92112 is a reply to message #92111] |
Wed, 14 October 2015 14:05   |
chris_torrence@NOSPAM
Messages: 528 Registered: March 2007
|
Senior Member |
|
|
On Wednesday, October 14, 2015 at 12:50:41 PM UTC-6, Barry Lesht wrote:
> I use LaTeX (via TeXShop (v3.56) on a Mac (OSX10.8.5) for documents. I generate most of my graphics using IDL (v8.2). This always has worked well in the past. Today, I generated a new plot using the same code (based on Coyote graphics) that I've used before and saved it (as before) as an .eps file. Now, however, when I import it into my LaTeX document, all the alphabetic annotation (including decimal points) disappears from the axis annotations and from any text that I have included in the plot. When I view the .eps file using either Preview on the Mac or gv, it looks fine - nothing is missing.
>
> I'm not entirely sure that this is an IDL issue or if it something do with with TexShop (I posted a question to that group as well), or maybe something with ghostscript (version 9.16). I was wondering if anyone else had had a similar problem or maybe has some insight into what might be going on.
>
> Thanks.
Hi Barry,
Do you happen to have any old IDL EPS files that worked in the past? You could import those into LaTeX and see what happens. If they also fail then that eliminates IDL from the problem, and suggests that something else changed like TeXShop, your Mac install, or ghostscript.
Cheers,
Chris
|
|
|
|
|
|
|
Re: Problem with .eps figure losing annotation in a LaTeX document [message #92117 is a reply to message #92116] |
Wed, 14 October 2015 20:51  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Barry Lesht writes:
> Hi David - thanks. I added PS_FONT=1 to the cgCONTROL command I used to generate the plot and it now works. Why I had to do this when the code without the explicit PS_FONT keyword worked before is a mystery.
That probably makes sense. Those old PostScript hardware fonts were
introduced in 1984. The Mac has probably outgrown them and now uses
polygon fonts (i.e., True-Type fonts) exclusively, rather than those old
outline fonts.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|