Graphics, Figures & Tablesgnuplot infinity symbol with eps figures in latex

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
santino
Posts: 7
Joined: Sun Dec 26, 2010 8:17 am

gnuplot infinity symbol with eps figures in latex

Post by santino »

Hi... I am running Ubuntu 10.04.1, Gnuplot Version 4.2 and texlive 2009

I have produced an eps image in gnuplot with:
set terminal postscript eps enhanced colour lw 4 "Times New Roman" 20

including the infinity symbol with:
{/Symbol \245}

and the initial output looks great. My problem is when I include this image in my latex file within the figure environment using the includegraphics command, the infinity symbol turns into a degree symbol. This appears to be a function of pdfTeX, in that the dvi and ps files retain the infinity symbol. I am using a build of dvips+ps2pdf.

I will need the pdf version for uploading the publication, so any help is appreciated. I have attached the log file, if it helps.
log.log
log file
(13.29 KiB) Downloaded 532 times
Thank you in advance.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

shadgrind
Posts: 140
Joined: Thu Jul 16, 2009 12:39 am

gnuplot infinity symbol with eps figures in latex

Post by shadgrind »

It works fine for me, using TeX Live 2009 on Fedora 13 (I also used "Times-New-Roman" instead of "Times New Roman" in the Gnuplot set terminal command). Are you embedding the fonts when you convert from ps to pdf? If not then you could be getting font substitution in the pdf file, which may be your problem. I always run ps2pdf like this to get proper font embedding:

Code: Select all

ps2pdf14 -dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true -dPDFSETTINGS=/printer
If you open the pdf file in a viewer like Acrobat Reader and go to File->Properties->Fonts, you should see font names with "(Embedded Subset)" next to them if the fonts were properly embedded.
System: TeX Live 2012, Fedora 18 x86_64, GNU Emacs 24.2
santino
Posts: 7
Joined: Sun Dec 26, 2010 8:17 am

gnuplot infinity symbol with eps figures in latex

Post by santino »

Thanks shadgrind,

It was just that an embedding problem... I also used

Code: Select all

pdftops -eps
and

Code: Select all

ps2eps

as well just to get back to eps format, which I prefer to use in the tex file.

Cheers
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

gnuplot infinity symbol with eps figures in latex

Post by localghost »

Now that the problem is solved, please be so kind and mark the topic (not the last post) accordingly as clearly written in the Board Rules (to be read before posting). Please keep that in mind for the future so that further reminders will not be necessary.


Best regards and welcome to the board
Thorsten
Post Reply