Fix compiling HTML or LaTeX failed on emlistnum directive.