使用 htlatex 将 LaTeX 转换为 HTML 时出现的问题

使用 htlatex 将 LaTeX 转换为 HTML 时出现的问题

我现在需要使用 MiKTeX 将 LaTeX 转换为 HTML,然后最终转换为 Word。根本没有输出 html 文件,我按照 JBloggs 的步骤操作MiKTeX 2.9 上的 TeX4ht (htlatex) 将 LaTeX 转换为 MathML,然后使用 Word 2010 转换为 Office MathML。但我仍然没有 html 输出文件。

tex 文件

\documentclass[11pt,a4paper]{report}

\begin{document}
Hello there. This is a test of $x_i^2=3$, where
$$\int_0^\infty f(x) = 1.$$
\end{document}

我尝试过的转换命令

"C:\Program Files\MiKTeX 2.9\scripts\tex4ht\htlatex.bat" test.tex 

"C:\Program Files\MiKTeX 2.9\scripts\tex4ht\htxelatex.bat" test.tex 

"C:\Program Files\MiKTeX 2.9\scripts\tex4ht\htlatex" test.tex "html,xml"

C:\Documents htlatex test.tex "html,word"

"C:\Program Files\MiKTeX 2.9\scripts\tex4ht\htxelatex" test

htlatex test.tex  "xhtml,mathml" " -cunihft" "-cvalidate -p"

最后一个是 MadyYuvi 建议的

编译结果

ar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode html.a.b.c.\input  test.
tex
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (MiKTeX 2.9.6100 64-bit)
entering extended mode
LaTeX2e <2016/03/31> patch level 3
Babel <3.9r> and hyphenation patterns for 75 language(s) loaded.
("C:\Program Files\MiKTeX 2.9\tex\latex\mff\test.tex"
("C:\Program Files\MiKTeX 2.9\tex\latex\base\latex209.def"

          Entering LaTeX 2.09 COMPATIBILITY MODE
 *************************************************************
    !!WARNING!!    !!WARNING!!    !!WARNING!!    !!WARNING!!

 This mode attempts to provide an emulation of the LaTeX 2.09
 author environment so that OLD documents can be successfully
 processed. It should NOT be used for NEW documents!

 New documents should use Standard LaTeX conventions and start
 with the \documentclass command.

 Compatibility mode is UNLIKELY TO WORK with LaTeX 2.09 style
 files that change any internal macros, especially not with
 those that change the FONT SELECTION or OUTPUT ROUTINES.

 Therefore such style files MUST BE UPDATED to use
          Current Standard LaTeX: LaTeX2e.
 If you suspect that you may be using such a style file, which
 is probably very, very old by now, then you should attempt to
 get it updated by sending a copy of this error message to the
 author of that file.
 *************************************************************

("C:\Program Files\MiKTeX 2.9\tex\latex\base\tracefnt.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\base\latexsym.sty"))
("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"))
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\tex4ht.sty")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\usepackage.4ht")
("C:\Program Files\MiKTeX 2.9\tex\latex\mff\mff.sty"
LaTeX Style file MFF.STY, ver. 1.21 [June 1996]
("C:\Program Files\MiKTeX 2.9\tex\latex\mff\mfdcdata.tex")
("C:\Program Files\MiKTeX 2.9\tex\latex\mff\mfsauter.tex")
("C:\Program Files\MiKTeX 2.9\tex\latex\mff\mfcorfnt.tex")
("C:\Program Files\MiKTeX 2.9\tex\latex\mff\mftricks.tex")
("C:\Program Files\MiKTeX 2.9\tex\latex\mff\mfarithm.tex"))
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\tex4ht.4ht"
::::::::::::::::::::::::::::::::::::::::::
 TeX4ht info is available in the log file
::::::::::::::::::::::::::::::::::::::::::
) ("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\tex4ht.sty"
--- needs --- tex4ht test ---
(test.tmp) (test.xref)
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\latex.4ht"
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht"))
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\fontmath.4ht"
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht"))
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\latex209.4ht"
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht"))
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\article.4ht"
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht"))
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht")) (test.aux)
<MFF/line=11>: No file xxz15.tfm -- dummy font will be used
<MFF/line=11>: Do not forget to process xxz15.mf and reprocess this file
("C:\Program Files\MiKTeX 2.9\tex\latex\mff\table.tex")
("C:\Program Files\MiKTeX 2.9\tex\latex\base\ulasy.fd") [1] (test.aux) )
(see the transcript file for additional information)
Output written on test.dvi (1 page, 69412 bytes).
Transcript written on test.log.

E:\>latex  \makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode
\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1
.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\
HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\c
sname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextch
ar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode html.a.b.c.\input  test.
tex
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (MiKTeX 2.9.6100 64-bit)
entering extended mode
LaTeX2e <2016/03/31> patch level 3
Babel <3.9r> and hyphenation patterns for 75 language(s) loaded.
("C:\Program Files\MiKTeX 2.9\tex\latex\mff\test.tex"
("C:\Program Files\MiKTeX 2.9\tex\latex\base\latex209.def"

          Entering LaTeX 2.09 COMPATIBILITY MODE
 *************************************************************
    !!WARNING!!    !!WARNING!!    !!WARNING!!    !!WARNING!!

 This mode attempts to provide an emulation of the LaTeX 2.09
 author environment so that OLD documents can be successfully
 processed. It should NOT be used for NEW documents!

 New documents should use Standard LaTeX conventions and start
 with the \documentclass command.

 Compatibility mode is UNLIKELY TO WORK with LaTeX 2.09 style
 files that change any internal macros, especially not with
 those that change the FONT SELECTION or OUTPUT ROUTINES.

 Therefore such style files MUST BE UPDATED to use
          Current Standard LaTeX: LaTeX2e.
 If you suspect that you may be using such a style file, which
 is probably very, very old by now, then you should attempt to
 get it updated by sending a copy of this error message to the
 author of that file.
 *************************************************************

("C:\Program Files\MiKTeX 2.9\tex\latex\base\tracefnt.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\base\latexsym.sty"))
("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"))
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\tex4ht.sty")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\usepackage.4ht")
("C:\Program Files\MiKTeX 2.9\tex\latex\mff\mff.sty"
LaTeX Style file MFF.STY, ver. 1.21 [June 1996]
("C:\Program Files\MiKTeX 2.9\tex\latex\mff\mfdcdata.tex")
("C:\Program Files\MiKTeX 2.9\tex\latex\mff\mfsauter.tex")
("C:\Program Files\MiKTeX 2.9\tex\latex\mff\mfcorfnt.tex")
("C:\Program Files\MiKTeX 2.9\tex\latex\mff\mftricks.tex")
("C:\Program Files\MiKTeX 2.9\tex\latex\mff\mfarithm.tex"))
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\tex4ht.4ht"
::::::::::::::::::::::::::::::::::::::::::
 TeX4ht info is available in the log file
::::::::::::::::::::::::::::::::::::::::::
) ("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\tex4ht.sty"
--- needs --- tex4ht test ---
(test.tmp) (test.xref)
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\latex.4ht"
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht"))
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\fontmath.4ht"
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht"))
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\latex209.4ht"
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht"))
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\article.4ht"
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht"))
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht")) (test.aux)
<MFF/line=11>: No file xxz15.tfm -- dummy font will be used
<MFF/line=11>: Do not forget to process xxz15.mf and reprocess this file
("C:\Program Files\MiKTeX 2.9\tex\latex\mff\table.tex")
("C:\Program Files\MiKTeX 2.9\tex\latex\base\ulasy.fd") [1] (test.aux) )
(see the transcript file for additional information)
Output written on test.dvi (1 page, 69412 bytes).
Transcript written on test.log.

E:\>latex  \makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode
\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1
.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\
HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\c
sname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextch
ar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode html.a.b.c.\input  test.
tex
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (MiKTeX 2.9.6100 64-bit)
entering extended mode
LaTeX2e <2016/03/31> patch level 3
Babel <3.9r> and hyphenation patterns for 75 language(s) loaded.
("C:\Program Files\MiKTeX 2.9\tex\latex\mff\test.tex"
("C:\Program Files\MiKTeX 2.9\tex\latex\base\latex209.def"

          Entering LaTeX 2.09 COMPATIBILITY MODE
 *************************************************************
    !!WARNING!!    !!WARNING!!    !!WARNING!!    !!WARNING!!

 This mode attempts to provide an emulation of the LaTeX 2.09
 author environment so that OLD documents can be successfully
 processed. It should NOT be used for NEW documents!

 New documents should use Standard LaTeX conventions and start
 with the \documentclass command.

 Compatibility mode is UNLIKELY TO WORK with LaTeX 2.09 style
 files that change any internal macros, especially not with
 those that change the FONT SELECTION or OUTPUT ROUTINES.

 Therefore such style files MUST BE UPDATED to use
          Current Standard LaTeX: LaTeX2e.
 If you suspect that you may be using such a style file, which
 is probably very, very old by now, then you should attempt to
 get it updated by sending a copy of this error message to the
 author of that file.
 *************************************************************

("C:\Program Files\MiKTeX 2.9\tex\latex\base\tracefnt.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\base\latexsym.sty"))
("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"))
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\tex4ht.sty")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\usepackage.4ht")
("C:\Program Files\MiKTeX 2.9\tex\latex\mff\mff.sty"
LaTeX Style file MFF.STY, ver. 1.21 [June 1996]
("C:\Program Files\MiKTeX 2.9\tex\latex\mff\mfdcdata.tex")
("C:\Program Files\MiKTeX 2.9\tex\latex\mff\mfsauter.tex")
("C:\Program Files\MiKTeX 2.9\tex\latex\mff\mfcorfnt.tex")
("C:\Program Files\MiKTeX 2.9\tex\latex\mff\mftricks.tex")
("C:\Program Files\MiKTeX 2.9\tex\latex\mff\mfarithm.tex"))
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\tex4ht.4ht"
::::::::::::::::::::::::::::::::::::::::::
 TeX4ht info is available in the log file
::::::::::::::::::::::::::::::::::::::::::
) ("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\tex4ht.sty"
--- needs --- tex4ht test ---
(test.tmp) (test.xref)
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\latex.4ht"
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht"))
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\fontmath.4ht"
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht"))
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\latex209.4ht"
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht"))
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\article.4ht"
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht"))
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4.4ht")
("C:\Program Files\MiKTeX 2.9\tex\generic\tex4ht\html4-math.4ht")) (test.aux)
<MFF/line=11>: No file xxz15.tfm -- dummy font will be used
<MFF/line=11>: Do not forget to process xxz15.mf and reprocess this file
("C:\Program Files\MiKTeX 2.9\tex\latex\mff\table.tex")
("C:\Program Files\MiKTeX 2.9\tex\latex\base\ulasy.fd") [1] (test.aux) )
(see the transcript file for additional information)
Output written on test.dvi (1 page, 69412 bytes).
Transcript written on test.log.

E:\>tex4ht test.tex  -i/tex4ht/ht-fonts/ -ewin32/tex4ht.env
----------------------------
tex4ht.c (2012-07-25-19:36 Windows MiKTeX)
tex4ht test.tex
  -i/tex4ht/ht-fonts/
  -ewin32/tex4ht.env
(C:/Program Files/MiKTeX 2.9/tex4ht/base/win32/tex4ht.env)
(C:/Program Files/MiKTeX 2.9/tex4ht/ht-fonts/iso8859/1/charset/unicode.4hf)
(C:/Program Files/MiKTeX 2.9/fonts/tfm/public/cm/cmtt8.tfm)
(C:/Program Files/MiKTeX 2.9/tex4ht/ht-fonts/alias/cm/cmtt.htf)
Searching `lm-rep-cmtt.htf' for `cmtt8.htf'
(C:/Program Files/MiKTeX 2.9/tex4ht/ht-fonts/unicode/lm/lm-rep-cmtt.htf)
(C:/Program Files/MiKTeX 2.9/fonts/tfm/public/cm/cmtt10.tfm)
(C:/Program Files/MiKTeX 2.9/tex4ht/ht-fonts/alias/cm/cmtt.htf)
Searching `lm-rep-cmtt.htf' for `cmtt10.htf'
(C:/Program Files/MiKTeX 2.9/tex4ht/ht-fonts/unicode/lm/lm-rep-cmtt.htf)
(C:/Program Files/MiKTeX 2.9/fonts/tfm/public/cm/cmr12.tfm)
(C:/Program Files/MiKTeX 2.9/tex4ht/ht-fonts/alias/lm/lm-rep-cmrm/cmr.htf)
Searching `lm-rep-cmrm.htf' for `cmr12.htf'
(C:/Program Files/MiKTeX 2.9/tex4ht/ht-fonts/unicode/lm/lm-rep-cmrm.htf)
(C:/Program Files/MiKTeX 2.9/fonts/tfm/public/cm/cmr10.tfm)
(C:/Program Files/MiKTeX 2.9/tex4ht/ht-fonts/alias/lm/lm-rep-cmrm/cmr.htf)
Searching `lm-rep-cmrm.htf' for `cmr10.htf'
(C:/Program Files/MiKTeX 2.9/tex4ht/ht-fonts/unicode/lm/lm-rep-cmrm.htf)
[1 file test.html
 file test.css
 file test.tmp
]
Execute script `test.lg'

E:\>t4ht test.tex  -ewin32/tex4ht.env
----------------------------
t4ht.c (2012-07-25-19:28 MiKTeX)
t4ht test.tex
  -ewin32/tex4ht.env
(C:/Program Files/MiKTeX 2.9/tex4ht/base/win32/tex4ht.env)
Entering test.lg
Entering test.css
Entering test.tmp

E:\>

有人知道我该怎么办吗?不管怎样,我应该先获取 html 文件,无论它看起来有多糟糕。

答案1

您的代码运行良好,请传递您尝试过的转换命令,我已经尝试过:

htlatex texfilename "xhtml,mathml" " -cunihft" "-cvalidate -p

输出为:

<?xml version="1.0" encoding="iso-8859-1" ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" 
"http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd" > 
<html xmlns="http://www.w3.org/1999/xhtml"  
> 
<head><title></title> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
<meta name="generator" content="TeX4ht (http://www.tug.org/tex4ht/)" /> 
<meta name="originator" content="TeX4ht (http://www.tug.org/tex4ht/)" /> 
<!-- xhtml,mathml,html --> 
<meta name="src" content="sample.tex" /> 
<meta name="date" content="2017-07-27 16:26:00" /> 
<link rel="stylesheet" type="text/css" href="sample.css" /> 
</head><body 
>
<!--l. 4--><p class="noindent" >Hello there. This is a test of <!--l. 4--><math 
 xmlns="http://www.w3.org/1998/Math/MathML"  
display="inline" ><msubsup><mrow 
><mi 
>x</mi></mrow><mrow 
><mi 
>i</mi></mrow><mrow 
><mn>2</mn></mrow></msubsup 
> <mo 
class="MathClass-rel">=</mo> <mn>3</mn></math>,
where
<!--tex4ht:inline--></p><!--l. 5--><math 
 xmlns="http://www.w3.org/1998/Math/MathML"  
display="block" >
                            <msubsup><mrow 
><mo 
class="MathClass-op">&#x222B;
 <!--nolimits--></mo><!--nolimits--></mrow><mrow 
><mn>0</mn></mrow><mrow 
><mi 
>&#x221E;</mi></mrow></msubsup 
><mi 
>f</mi><mrow ><mo 
class="MathClass-open">&#x0028;</mo><mrow><mi 
>x</mi></mrow><mo 
class="MathClass-close">&#x0029;</mo></mrow> <mo 
class="MathClass-rel">=</mo> <mn>1</mn><mo 
class="MathClass-punc">.</mo>
</math>
<!--l. 5--><p class="nopar" > </p> 
</body></html> 

对于 Word 转换,请尝试使用-oolatex,但我不确定它是否可以用 MathML 标签进行转换

我的 .log 文件:

This is pdfTeX, Version 3.14159265-2.6-1.40.17 (MiKTeX 2.9.6210) (preloaded format=latex 2017.4.11)  27 JUL 2017 16:26
entering extended mode
**\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx\HCode\def\HCod
e##1{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g
@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\doc
umentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname te
x4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HC
ode}{\documentstyle[tex4ht]}}}\makeatother\HCode xhtml,mathml.a.b.c.\input  sam
ple
(sample.tex ("C:\Program Files\MiKTeX 2.9\tex\latex\base\report.cls"
Document Class: report 2014/09/29 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\size11.clo"
File: size11.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)

相关内容