1

I am using JHEP class for my physics thesis, but everything written in math environment becomes automatically in bold font. I have tried with different compilers like: TeXworks and TeXmaker. I even send the tex file to my mentor who compiled it on an apple computer and then it works just fine, no bold font.

So the problem has to be on my end, but I am running out of ideas on why it doesn't work. I have tried searching for a solution but it doesn't seem to be a common issue.

Here is the LateX code:

\documentclass[a4paper,11pt]{article}    
\usepackage{jheppub}    
\usepackage[T1]{fontenc} 
\begin{document}     
Testing $X=56\in \mathcal{H}$    
\begin{equation}    
\label{eq:x}    
\begin{split}    
x &= 1 \,,    
\qquad    
y = 2 \,,    
\\    
z &= 3 \,.    
\end{split}    
\end{equation}    
\end{document}

linkhttp://jhep.sissa.it/jhep/help/JHEP_TeXclass.jsp

and I added a link to the package with the full example provided by JHEP.

Everything inside the math environment is written in a bold font. And I stress that if someone else compiles the document it does not happen.

I added the package as was recommended and it fixed the rendering issue. But it created an additional problem; it either completely removed the parenthesis/symbols or just shifted them.

\documentclass[a4paper,11pt]{article}
\pdfoutput=1 
\usepackage{jheppub} 
\usepackage[swedish,english]{babel}
\usepackage[T1]{fontenc}
\usepackage{MnSymbol}
\usepackage{lmodern}
\begin{document}
\begin{subequations}
\begin{align}
\omega (\alpha X + \beta Y,Z) &= \alpha\omega(X,Z)+\beta\omega(Y,Z)\\
\omega (X,Y)&=-\omega (Y,X) \\
X\minushookup \omega &=0\quad \text{iff} X=0\quad
\end{align}
\end{subequations}
\begin{equation}
N^{\perp} = \{X\in V \,|\,\omega (X,Y)=0\, \forall \, Y\in N \}.
\end{equation}
\end{document}

1 Answers1

4

Your diagnosis is wrong: it's not the math that appears bold, but the text that appears thin. And jheppub.sty has nothing to do with it; it's caused by \usepackage[T1]{fontenc} and an issue in your MiKTeX installation.

The problem is that you don't have the Type1 version of the European Modern font, also known as CM-Super; this is stated in your log file by the code

<C:\Users\Fredrik\AppData\Local\MiKTeX\2.9\fonts\pk\ljfour\jknappen\ec\dpi600\ecrm1095.pk>

which means that pdftex is creating a bitmap version of the text font (and indeed it will appear thinner in many PDF viewers).

You can solve your problem by adding

\usepackage{lmodern}

to your preamble or properly installing CM-Super. On MiKTeX this issue is very common. See

How to improve rendering

How to run updmap-sys after installing cm-super?

This is the image I get when disabling the Type1 version of ecrm1095:

enter image description here

which should be similar to what you get. In contrast, this is what I get normally

enter image description here

egreg
  • 1,121,712