Fonts & Character Setsmathptmx | Compilation with PDFLaTeX prevented

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
royss
Posts: 1
Joined: Mon May 21, 2012 1:24 pm

mathptmx | Compilation with PDFLaTeX prevented

Post by royss »

I am using mathptmx for Times New Roman fonts. I can not compile "LaTeX => PDF" , its showing fatal error. However "LaTeX => PS" is working fine.

System information: TeXnicCenter, MiKTeX 2.9, Windows 7, Adobe Reader X.

Tex file & Error log file attached

Code: Select all

\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}
For the error please see the attached log file.

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: mathptmx | Compilation with PDFLaTeX prevented

Post by Stefan Kottwitz »

Hi Royss,

welcome to the board!

That code works without problem, I tested it with pdfLaTeX.

You forgot to attach your .log file. Perhaps upload it as attachment to a new post possibly with some further details.

Stefan
LaTeX.org admin
Post Reply