When I compile the following file:



with the command

htlatex test.tex "xhtml,docbook-mml" " -cunihtf" "-cdocbk"

then the result is

<?xml version="1.0"?> 
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook V5.0//EN" 
"http://www.oasis-open.org/docbook/xml/5.0/docbook.dtd" > 

<!--translated from test.tex, on 2015-06-21 22:48:00,  
by TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/) xhtml,docbook-mml,html,refcaption --> 
 <?xtpipes file="docbook.4xt" ?> 

 xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0"><title

<!--l. 4
--><para><inlineequation role="inline"><!--l. 4
--><math xmlns="http://www.w3.org/1998/Math/MathML"><mn>2</mn> <mo class="MathClass-bin"/> <mn>1</mn></math> </inlineequation></para></article>

Obviously, the minus sign vanishes into an empty tag. How can I solve that problem?

  • the solution is same as in your other question: replace -cunihtf with -cmozhtf
    – michal.h21
    Commented Jun 21, 2015 at 21:57

1 Answer 1


The problem can be solved by copying


to the working directory.

The solution was given here:

Defining XML output for operator

and here:


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .