running htlatex minwrk.tex wrongly puts a non-breaking space ( ) between LaTeX and rules when you examine minwrk.html minwrk.tex: \documentclass{article} \begin{document} 20~km \LaTeX\ rules! \end{document}