Hoping that this is not off-topic: the MWE
\documentclass{article}
\usepackage{sansmathfonts}
\begin{document}
$E=\sqrt{p^2+m^2}$
\end{document}
produces a correct pdf output when processed with pdflatex, as well as a correct dvi file when latex is used. (TeXLive2016 on a opensuse machine.) However, after I run dvips and open the ps file with gv this is the result
Converting the ps file to a pdf with ps2pdf still shows the picture above. My first idea was that the fonts were not properly installed, but dvips does not complain tough. Here is its output:
This is dvips(k) 5.996 Copyright 2016 Radical Eye Software (www.radicaleye.com)
' TeX output 2017.02.13:1139' -> mwe.ps
</usr/share/texmf/dvips/base/tex.pro></usr/share/texmf/dvips/base/texps.pro>
. </usr/share/texmf/fonts/type1/public/amsfonts/cm/cmr10.pfb>
</usr/share/texmf/fonts/type1/public/amsfonts/cm/cmss8.pfb>
</usr/share/texmf/fonts/type1/public/sansmathfonts/cmssex10.pfb>
</usr/share/texmf/fonts/type1/public/amsfonts/cm/cmss10.pfb>
</usr/share/texmf/fonts/type1/public/sansmathfonts/cmssmi10.pfb>[1]
Any suggestion is welcome :-)
EDIT: Just checked that using dvipdfmx works fine, so this might be a pointless question

.psto.pdfusingps2pdfalso give the bad result on my system – daleif Feb 13 '17 at 10:56dvipdfmxis OK. – Bernard Feb 13 '17 at 10:57