1 Answer
1

The reason is because tex4ht can't find the htf font files, i.e. unisong51.htf etc. However, tex4htdoes come with utf8song*.htf files in %TEX4HT%/ht-fonts/unicode/cjk/utf8/, so you could just create copies of those. (%TEX4HT% is likely to be %TEXMF%/tex4ht on your system.)

Here's what I did.

Create a copy of each utf8song*.htf to unisong*.htf, and modify the first and last lines of the file contents to unisong* accordingly.

In my case, I had to also edit %TEX4HT%/tex4ht/base/unix/tex4ht.env. (Or in win32 if you're on Windows). Change all the ~/tex4ht.dir/texmf in that file to the actual path where my TEXMF tree really is, especially the ones under the heading <unihtf>.

@LeoLiu +1 for pandoc, I use it for writing my "first drafts". But IMHO tex4ht wins hands-down on most "real-life" LaTeX documents. pandoc can't handle beyond a few common LaTeX packages, while tex4ht can almost handle any packages you throw at it. So it really depends on how complicated your LaTeX document is, especially w.r.t. the kinds of macros and packages you're using.
–
LianTze LimMar 15 '12 at 13:20

@Lim: Well, I would just use markdown for pandoc to produce both HTML and PDF (via LaTeX).
–
Leo LiuMar 15 '12 at 14:40