Dear all,
I noticed a strange feature. Sometimes, the math spacing does not
work well. A typical case
=====
\newcommand{\mev}{\ifmmode \mathrm{MeV}\else MeV\fi}
Svislými čarami jsou označeny dopplerovské meze $E_1 = (53{,}6\pm
2{,}8)~\mev$.
=====
Of course in pdflatex everything works well, but in some cases the
tex4ht results in no space between the number and the unit. I very often
use the form $X = 88~\mev$. In most cases the expression is translated
correctly to HTML, but sometimes it fails.
I picked some cases from my large document and entered affected
sentences in the attached document. If I compile it now with make4ht,
everything displays correctly.
Does anyone have an idea what could be wrong and how to systematically
avoid this kind of problem, please? Of course it may help to
systematically write $X = 88\ \mev$ or $X = 8$~{\mev}, but this would
requite quite a lot of manual work....
Thanks a lot for any hint.
Cheers,
Tomas
\documentclass[11pt]{article}
\usepackage{a4wide}
\usepackage[czech]{babel}
\usepackage[utf8]{inputenc}
\newcommand{\mev}{\ifmmode \mathrm{MeV}\else MeV\fi}
\newcommand{\pionplus}{\ensuremath{\mathrm{\pi}^{+}}}
\newcommand{\muon}{\ensuremath{\mathrm{\mu}}}
\newcommand{\numuon}{\ensuremath{\mathrm{\nu}_{\mathrm{\mu}}}}
\begin{document}
Svislými čarami jsou označeny dopplerovské meze $E_1 = (53{,}6\pm 2{,}8)~\mev$,
$E_2 = (85{,}0\pm 2{,}8)$~\mev.
Nyní odhadněme hodnoty energií v~obou rozděleních na
obr.~\ref{fig:exp_energie_gamma_2} -- $E_1 \approx 55~\mev$, $E_2
\approx 125~\mev$.
K~vytvoření částice musíme urychlit pion na energii přibližně
$T_{\pionplus} = 190~\mev$, proto se tyto objevy uskutečnily až v~éře
urychlovačů.
Numerickým řešením této rovnice ($t = 6$~mm, $p_1 = 63~\mev$, $p_2
= 22{,}5~\mev$) dostáváme $m \approx 65~\mev$.
Po dosazení do vztahu~(\ref{eq:kplus_pruzny_rozptyl_reseni})
dostáváme $m \simeq 506~\mev = 990m_{\mathrm{e}}$.
Po dosazení číselných hodnot ($p_{\muon}(m_{\numuon}=0) =
30~\mev$, a~tedy $\sigma(p_{\muon})/p_{\muon} = 3\cdot 10^{-6}$) tak
dostaneme odhad na horní hranici hmoty mionového neutrina
$m_{\numuon} \approx 83$~keV na úrovni $1\sigma$ (věrohodnost 68\,\%).
\end{document}