Math & Sciencemathptmx | '\bar' in Math Equations

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
liannelli
Posts: 2
Joined: Tue Sep 06, 2011 5:07 pm

mathptmx | '\bar' in Math Equations

Post by liannelli »

Hi to all, here is my problem:

I compile the following document on a Mac OS X Lion platform with TeXLive 2011.

Code: Select all

%!TEX TS-program = latex
\documentclass{article}

\usepackage{mathptmx}
% \usepackage{txfonts}
% \usepackage{lmodern}

\begin{document}
  \begin{equation}
    \dot{\bar{x}}\in F_{\delta}(\bar{x},w), \qquad (\bar{x},w)\in C_{\delta},
  \end{equation}
	
\end{document}
I use the commands:
latex main.tex
dvips -Ppdf -G0 main.dvi -o main.ps
ps2pdf main.ps

The pdf file I got does not show the \bar{x} if viewed through Preview.app or Skim.app.
Preview.png
Preview.png (3.41 KiB) Viewed 3021 times
Instead the pdf file is correctly displayed by Adobe Reader for Mac.
Adobe.png
Adobe.png (6.71 KiB) Viewed 3021 times
If I use txfonts or lmodern instead of mathptmx, evrything works.
Do you have some ideas?

Many thanks,

Luigi
Last edited by liannelli on Thu Sep 29, 2011 2:16 pm, edited 1 time in total.

Recommended reading 2024:

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

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

justdeath
Posts: 69
Joined: Mon Sep 05, 2011 10:27 am

Re: mathptmx | '\bar' in Math Equations

Post by justdeath »

This is PDF viewer specific. Everything looks fine with Adobe Reader, Foxit Reader, Sumatra PDF, Evince Document Viewer (on Windows XP).

You can also try compiling the pdf directly: pdflatex main.tex

Nikolay
liannelli
Posts: 2
Joined: Tue Sep 06, 2011 5:07 pm

mathptmx | '\bar' in Math Equations

Post by liannelli »

justdeath wrote:This is PDF viewer specific. Everything looks fine with Adobe Reader, Foxit Reader, Sumatra PDF, Evince Document Viewer (on Windows XP).

You can also try compiling the pdf directly: pdflatex main.tex

Nikolay
yes, the problem is that in my document I need to compile through latex+dvips+ps2pdf (required by the publisher). I also discovered that the command

Code: Select all

dvips -Pdownload35 main.dvi -o main.ps
gives me the correct accent bar in Preview.app and Skim.app but in my full document some other bad things happen with some EPS figures.

Anyway I think I solved the problem. If I use the switch -dPDFX, ps2pdf generates a PDF that works both with adobe reader and preview (or skim).


Thanks
Luigi
Post Reply