Conversion Toolsps2pdf: $\Delta$ not displaying correctly in pdf

Information and discussion about output converters related to LaTeX (e.g. dvips, ps2pdf, ...)
Post Reply
warpino
Posts: 5
Joined: Sat Dec 11, 2010 10:19 pm

ps2pdf: $\Delta$ not displaying correctly in pdf

Post by warpino »

Hi all,

I've tried all the tricks I could find in the web to solve this but nothing worked.
I've produced a postscript document and everything is fine. Now, if I convert it in pdf with ps2pdf, capital delta (code: $\Delta$) displays as a different (wrong) symbol in the pdf file. Only this symbol is wrong! The same happens, in the same file, to capital delta written in eps image produced with gnuplot (postscript terminal with enhanced text) and included in the same document.

If I do pdflatex on the tex code, instead, the final pdf document is produced correctly.

Is there a way to fix the ps2pdf issue? What is it due to?

Thanks in advance,

w.

PS: if it can be useful, I'm using texmaker version 3.0.2 and I've used, among the others:
\usepackage[utf8]{inputenc}
\usepackage{mathptmx}

Recommended reading 2024:

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

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

5gon12eder
Posts: 126
Joined: Sun Feb 13, 2011 8:36 pm

Re: ps2pdf: $\Delta$ not displaying correctly in pdf

Post by 5gon12eder »

Please make a minimal working example and give detailed information about the package and program versions you're using. This is no normal behavior.

Best
I'm using pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian).
warpino
Posts: 5
Joined: Sat Dec 11, 2010 10:19 pm

ps2pdf: $\Delta$ not displaying correctly in pdf

Post by warpino »

Ok, I've found that. The problem is due to package mathptmx which is required for the paper I'm writing.

Code: Select all

\documentclass[a4paper]{book}
\usepackage{mathptmx}

\begin{document}
$\Delta$
\end{document}
about its version, this lines appears in mathptmx.sty file:

Code: Select all

\ProvidesPackage{mathptmx}%
[2005/04/12 PSNFSS-v9.2a
Times w/ Math, improved (SPQR, WaS)
]
I'm using:
pdfTeX 3.1415926-1.40.11-2.2 (TeX Live 2010)
ps2pdf (or ghostscript) version should be 8.71

As I said pdflatex works smoothly on that code and latex -> dvips make a good .ps file as well. How can I make the ps2pdf conversion work as well?

Regards,

w.

Thanks for your reply!!
5gon12eder
Posts: 126
Joined: Sun Feb 13, 2011 8:36 pm

ps2pdf: $\Delta$ not displaying correctly in pdf

Post by 5gon12eder »

This is indeed strange. I have exactly the same package and program versions and your code yields a nice Delta if compiled in either way. It shouldn't matter but have you been trying to change the font encoding to T1 with the fontenc package? Sorry, that's all I can think of at the moment.
I'm using pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian).
warpino
Posts: 5
Joined: Sat Dec 11, 2010 10:19 pm

ps2pdf: $\Delta$ not displaying correctly in pdf

Post by warpino »

Hi

I tried with

Code: Select all

\usepackage[T1]{fontenc}
but it doesn't work either.
It's a pity because I prefer the latex-->dvips-->ps2pdf method.
User avatar
shadgrind
Posts: 140
Joined: Thu Jul 16, 2009 12:39 am

ps2pdf: $\Delta$ not displaying correctly in pdf

Post by shadgrind »

If the T1 font encoding didn't help, then the only other thing I can think of is that ps2pdf is not embedding the fonts, which means the PDF viewer has to do font substitution when opening the PDF. You can fix that like this:

Code: Select all

ps2pdf -dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true -dPDFSETTINGS=/printer your_file.ps
That will force ps2pdf to embed the fonts in the resulting PDF, which is what pdflatex does by default.
System: TeX Live 2012, Fedora 18 x86_64, GNU Emacs 24.2
Post Reply