Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

\hbar is printing perfectly in both PS and PDF formats while using standard fonts. However if I am using Times New Roman fonts, the PS file is showing a correct \hbar but the PDF file is not showing it properly. It is giving a bar over h (should be h cross).

Including these two packages (shown below) creates all the problems.

System information: TeXnicCenter, MiKTeX2.9, Windows 7

\usepackage[T1]{fontenc}
\usepackage{mathptmx}

Example TeX file

\documentclass[12pt,a4paper]{report}  
\usepackage{amsmath}  
\usepackage[T1]{fontenc}  
\usepackage{mathptmx}  

\begin{document}  
The Zeeman Hamiltonian can be written as  
\begin{eqnarray}   
\mathcal{H}_z &=& -{\mu . B}\\  
            &=& -\mu_z . B_z = -\hbar {I_z} \gamma B_0 = -\hbar \omega_0 {I_z},  
\end{eqnarray}  

\end{document}

Note: No error message is shown. The PS file is showing a perfect 'hbar' symbol, but not the PDF. I guess my PDF is not supporting the 'hbar' symbol

share|improve this question

closed as too localized by Joseph Wright Aug 5 '12 at 11:58

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. In my test the problem doesn't show, so this might depend on other settings you're doing. –  egreg May 21 '12 at 10:11
    
MWE included, see the main post above. –  royce May 21 '12 at 10:38
1  
Compiling the example with pdflatex, but also with latex+dvips+ps2pdf gives the expected result. –  egreg May 21 '12 at 10:42
1  
Thanks. But the same example is not working for direct LaTeX => PDF . So I am first creating the PS output by LaTeX => PS and then converting PS into PDF. However the same example is working for LaTeX=>PDF if you remove the {mathptmx} package. Do you know any other way to creat Times New Roman fonts other than using {mathptmx} ? –  royce May 21 '12 at 10:51
    
What's the error in the pdflatex compilation? –  egreg May 21 '12 at 10:55

Browse other questions tagged or ask your own question.