使用htlatex将.tex转换为html时.pdf格式图形或图像的问题

使用htlatex将.tex转换为html时.pdf格式图形或图像的问题

最近在做.tex转.html的工作,在@michal.h21的帮助下解决了很多问题,最后一个问题是关于图片的问题。

我使用 MiKTeX 系统,它是 basic-miktex-2.9.6361-x64miktex2.9,并安装在Windows 7系统上。

我使用的代码如下:

\documentclass[12pt]{article}


\usepackage{subfigure}
\usepackage{graphicx}

\begin{document}

The main problem here is as listed: 1, the figure can not be changed well engough, 2 the tabe is also not so good 3, espeially is the refrence list that can not be listed one by one. 
speccial character test.

\begin{figure}[h]
\centering
\subfigure[]{
\includegraphics[width=0.45 \textwidth]{pdffigure//AAA.pdf}
\label{AAA}
}
\subfigure[]{
\includegraphics[width=0.45 \textwidth]{pdffigure//BBB.pdf}
\label{BBB}
}
\caption{(a) is the picuture to be tested (b) is the picture to be tested.}
\label{Emission}
\end{figure}


The figure is in figure \ref{AAA}. And also the picuture b is also tested in figure \ref{BBB}. 

\end{document}

pdffigure是我放所有图的文件夹。

我使用以下命令

htlatex Test.tex

但是图形无法正确显示。但如果我将 .pdf 图形更改为 .eps 图形,则不会出现错误。

在此处输入图片描述

所以结果就像上图一样。我试了很多来自 stackexchange 的配置,但效果都很好。好像如果系统是 TeX Live 发行版,就不会出现这样的错误。但是现在我用了不同的系统。

PS,这个问题可以通过一篇文章解决解决上下显示。但这仍然不能解决.pdf后缀的问题。

有人有什么建议吗?

答案1

PDF支持已于tex4ht上周添加,因此如果您更新 TeX 发行版,它应该可以工作。如果您无法更新它,您可以使用以下配置文件,它是添加到核心的代码的修改版本tex4ht

\Preamble{xhtml}

\NewConfigure{PdfConvert}{2}
\makeatletter
\catcode`\:=11

\edef\svg@ext{.svg}
\ifx\PictExt\svg@ext
\Configure{PdfConvert}{svg}{"pdf2svg '\[email protected]' '\Gin@base-\Gin@page.\a:PdfConvert' \Gin@page"}
\else
\Configure{PdfConvert}{png}{"rungs -q -dNOPAUSE -dBATCH -sDEVICE=pngalpha -r300 \ifx\Gin@page\@empty\else -dFirstPage='\Gin@page'  -dLastPage='\Gin@page'\fi\space -sOutputFile='\Gin@base-\Gin@page.\a:PdfConvert' \[email protected]"}
\fi
\Configure{graphics*}
   {pdf}
   {\ifdefined\Gin@page\else\def\Gin@page{1}\fi%
   \Needs{\b:PdfConvert}%
   \edef\svg:filename{\Gin@base-\Gin@page.\a:PdfConvert}
   {\Configure{Needs}{File: \svg:filename}\Needs{}}%
   \Picture[\a:GraphicsAlt]{{\svg:filename} \csname a:Gin-dim\endcsname
}}
\catcode`\:=12
\makeatother
\begin{document}

\EndPreamble

默认情况下,它会转换pdf为。它还支持转换,可以使用选项请求转换,但您需要在系统上安装命令才能获得此支持。pngsvgsvgpdf2svg

为了获得正确的图像尺寸,为所有图片创建具有图像尺寸的特殊文件也很重要。可以使用命令

ebb -x pdffigure/*.pdf

这是一些虚拟图像的结果:

在此处输入图片描述

答案2

我曾致力于“梯级' 未被识别”问题,发现Ghost脚本命令在不同操作系统下有所差异,Linux和Windows下的命令为:

  • Linux:格斯
  • 视窗:毫克

此外,我意识到使用双引号来定义-sOutputFIle(即"\Gin@base-.\a:PdfConvert"而不是)更为合适'\Gin@base-\Gin@page.\a:PdfConvert'。然后,以下配置文件脚本在 Linux 操作系统上对我来说运行良好:

\Preamble{xhtml}

\NewConfigure{PdfConvert}{2}
\makeatletter
\catcode`\:=11

\edef\svg@ext{.svg}
\ifx\PictExt\svg@ext
\Configure{PdfConvert}{svg}{"pdf2svg '\[email protected]' '\Gin@base-\Gin@page.\a:PdfConvert' \Gin@page"}
\else
\Configure{PdfConvert}{png}{"gs -q -dNOPAUSE -dBATCH -sDEVICE=pngalpha -r300 \ifx\Gin@page\@empty\else -dFirstPage='\Gin@page'  -dLastPage='\Gin@page'\fi\space -sOutputFile="\Gin@base-.\a:PdfConvert" \[email protected]"}
\fi
\Configure{graphics*}
{pdf}
{\ifdefined\Gin@page\else\def\Gin@page{1}\fi%
\Needs{\b:PdfConvert}%
\edef\svg:filename{\Gin@base-\Gin@page.\a:PdfConvert}
{\Configure{Needs}{File: \svg:filename}\Needs{}}%
\Picture[\a:GraphicsAlt]{{\svg:filename} \csname a:Gin-dim\endcsname
}}
\catcode`\:=12
\makeatother
\begin{document}

\EndPreamble

将此代码放在my.cfgTeX 文件夹中名为的文件中,您可以运行:

htlatex theTexFile my

希望它能有所帮助 ;)

答案3

我尝试了 michal.h21 代码,从之前的帖子来看,它对其他人来说很好用。但它在我的电脑上不起作用。添加上面提到的配置,我在下面列出了编译日志文件

C:\Z Publications\2017\textowordtest>htlatex Fancypattern myhtml.cfg

C:\Z Publications\2017\textowordtest>latex  \makeatletter\def\HCode{\futurelet\H
Code\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\els
e\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\Requ
irePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\docu
mentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{
\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatoth
er\HCode myhtml.cfg.a.b.c.\input  Fancypattern
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (MiKTeX 2.9.6350 64-bit)
entering extended mode
LaTeX2e <2017-04-15>
Babel <3.10> and hyphenation patterns for 75 language(s) loaded.
(Fancypattern.tex ("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\size12.clo"))
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\tex4ht.sty)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\usepackage.4ht)
("C:\Program Files\MiKTeX 2.9\tex\latex\subfigure\subfigure.sty"
****************************************
* Local config file subfigure.cfg used *
****************************************
("C:\Program Files\MiKTeX 2.9\tex\latex\subfigure\subfigure.cfg"))
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\keyval.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\trig.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics-cfg\graphics.cfg")
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics-def\dvips.def"))) (myhtml.cfg
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\tex4ht.4ht
::::::::::::::::::::::::::::::::::::::::::
 TeX4ht info is available in the log file
::::::::::::::::::::::::::::::::::::::::::
) (C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\tex4ht.sty
--- needs --- tex4ht Fancypattern ---
(Fancypattern.tmp) (Fancypattern.xref)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\latex.4ht
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht))
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\fontmath.4ht
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht))
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\article.4ht
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht))
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\subfigure.4ht
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht))
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\graphicx.4ht
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht))
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\graphics.4ht
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht))
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\dvips.4ht
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht))
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht))
(Fancypattern.aux)) [1] [2]
l.17 --- TeX4ht warning --- Cannot determine size of graphic in pdffigure//Plas
maimage1.pdf (no BoundingBox) ---
l.21 --- TeX4ht warning --- Cannot determine size of graphic in pdffigure//Spat
ialEmissionPPicxorignial.pdf (no BoundingBox) ---
[3] [4] (Fancypattern.aux) )
Output written on Fancypattern.dvi (4 pages, 12364 bytes).
Transcript written on Fancypattern.log.

C:\Z Publications\2017\textowordtest>latex  \makeatletter\def\HCode{\futurelet\H
Code\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\els
e\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\Requ
irePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\docu
mentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{
\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatoth
er\HCode myhtml.cfg.a.b.c.\input  Fancypattern
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (MiKTeX 2.9.6350 64-bit)
entering extended mode
LaTeX2e <2017-04-15>
Babel <3.10> and hyphenation patterns for 75 language(s) loaded.
(Fancypattern.tex ("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\size12.clo"))
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\tex4ht.sty)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\usepackage.4ht)
("C:\Program Files\MiKTeX 2.9\tex\latex\subfigure\subfigure.sty"
****************************************
* Local config file subfigure.cfg used *
****************************************
("C:\Program Files\MiKTeX 2.9\tex\latex\subfigure\subfigure.cfg"))
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\keyval.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\trig.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics-cfg\graphics.cfg")
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics-def\dvips.def"))) (myhtml.cfg
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\tex4ht.4ht
::::::::::::::::::::::::::::::::::::::::::
 TeX4ht info is available in the log file
::::::::::::::::::::::::::::::::::::::::::
) (C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\tex4ht.sty
--- needs --- tex4ht Fancypattern ---
(Fancypattern.tmp) (Fancypattern.xref)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\latex.4ht
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht))
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\fontmath.4ht
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht))
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\article.4ht
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht))
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\subfigure.4ht
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht))
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\graphicx.4ht
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht))
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\graphics.4ht
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht))
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\dvips.4ht
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht))
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht))
(Fancypattern.aux)) [1] [2]
l.17 --- TeX4ht warning --- Cannot determine size of graphic in pdffigure//Plas
maimage1.pdf (no BoundingBox) ---
l.21 --- TeX4ht warning --- Cannot determine size of graphic in pdffigure//Spat
ialEmissionPPicxorignial.pdf (no BoundingBox) ---
[3] [4] (Fancypattern.aux) )
Output written on Fancypattern.dvi (4 pages, 12364 bytes).
Transcript written on Fancypattern.log.

C:\Z Publications\2017\textowordtest>latex  \makeatletter\def\HCode{\futurelet\H
Code\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\els
e\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\Requ
irePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\docu
mentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{
\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatoth
er\HCode myhtml.cfg.a.b.c.\input  Fancypattern
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (MiKTeX 2.9.6350 64-bit)
entering extended mode
LaTeX2e <2017-04-15>
Babel <3.10> and hyphenation patterns for 75 language(s) loaded.
(Fancypattern.tex ("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\size12.clo"))
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\tex4ht.sty)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\usepackage.4ht)
("C:\Program Files\MiKTeX 2.9\tex\latex\subfigure\subfigure.sty"
****************************************
* Local config file subfigure.cfg used *
****************************************
("C:\Program Files\MiKTeX 2.9\tex\latex\subfigure\subfigure.cfg"))
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\keyval.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\trig.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics-cfg\graphics.cfg")
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics-def\dvips.def"))) (myhtml.cfg
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\tex4ht.4ht
::::::::::::::::::::::::::::::::::::::::::
 TeX4ht info is available in the log file
::::::::::::::::::::::::::::::::::::::::::
) (C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\tex4ht.sty
--- needs --- tex4ht Fancypattern ---
(Fancypattern.tmp) (Fancypattern.xref)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\latex.4ht
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht))
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\fontmath.4ht
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht))
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\article.4ht
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht))
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\subfigure.4ht
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht))
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\graphicx.4ht
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht))
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\graphics.4ht
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht))
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\dvips.4ht
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht))
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4.4ht)
(C:\Users\zhang\AppData\Roaming\MiKTeX\2.9\tex\generic\tex4ht\html4-math.4ht))
(Fancypattern.aux)) [1] [2]
l.17 --- TeX4ht warning --- Cannot determine size of graphic in pdffigure//Plas
maimage1.pdf (no BoundingBox) ---
l.21 --- TeX4ht warning --- Cannot determine size of graphic in pdffigure//Spat
ialEmissionPPicxorignial.pdf (no BoundingBox) ---
[3] [4] (Fancypattern.aux) )
Output written on Fancypattern.dvi (4 pages, 12364 bytes).
Transcript written on Fancypattern.log.

C:\Z Publications\2017\textowordtest>tex4ht Fancypattern  -i/tex4ht/ht-fonts/ -e
win32/tex4ht.env
----------------------------
tex4ht.c (2012-07-25-19:36 Windows MiKTeX)
tex4ht Fancypattern
  -i/tex4ht/ht-fonts/
  -ewin32/tex4ht.env
(C:/Program Files/MiKTeX 2.9/tex4ht/base/win32/tex4ht.env)
(C:/Users/zhang/AppData/Roaming/MiKTeX/2.9/tex4ht/ht-fonts/iso8859/1/charset/uni
code.4hf)
(C:/Program Files/MiKTeX 2.9/fonts/tfm/public/cm/cmr12.tfm)
(C:/Users/zhang/AppData/Roaming/MiKTeX/2.9/tex4ht/ht-fonts/alias/lm/lm-rep-cmrm/
cmr.htf)
Searching `lm-rep-cmrm.htf' for `cmr12.htf'
(C:/Users/zhang/AppData/Roaming/MiKTeX/2.9/tex4ht/ht-fonts/unicode/lm/lm-rep-cmr
m.htf)
(C:/Program Files/MiKTeX 2.9/fonts/tfm/public/cm/cmr10.tfm)
(C:/Users/zhang/AppData/Roaming/MiKTeX/2.9/tex4ht/ht-fonts/alias/lm/lm-rep-cmrm/
cmr.htf)
Searching `lm-rep-cmrm.htf' for `cmr10.htf'
(C:/Users/zhang/AppData/Roaming/MiKTeX/2.9/tex4ht/ht-fonts/unicode/lm/lm-rep-cmr
m.htf)
[1 file Fancypattern.html
 file Fancypattern.css
 file Fancypattern.tmp
] [2] [3] [4]
Execute script `Fancypattern.lg'

C:\Z Publications\2017\textowordtest>t4ht Fancypattern  -ewin32/tex4ht.env
----------------------------
t4ht.c (2012-07-25-19:28 MiKTeX)
t4ht Fancypattern
  -ewin32/tex4ht.env
(C:/Program Files/MiKTeX 2.9/tex4ht/base/win32/tex4ht.env)
Entering Fancypattern.lg
Entering Fancypattern.css
Entering Fancypattern.tmp
System call: rungs -q -dNOPAUSE -dBATCH -sDEVICE=pngalpha -r300 -dFirstPage='1'
-dLastPage='1' -sOutputFile='pdffigure//Plasmaimage1-1.png' pdffigure//Plasmaima
ge1.pdf
'rungs' is not recognized as an internal or external command,
operable program or batch file.
--- Warning --- System return: 1
System call: rungs -q -dNOPAUSE -dBATCH -sDEVICE=pngalpha -r300 -dFirstPage='1'
-dLastPage='1' -sOutputFile='pdffigure//SpatialEmissionPPicxorignial-1.png' pdff
igure//SpatialEmissionPPicxorignial.pdf
'rungs' is not recognized as an internal or external command,
operable program or batch file.
--- Warning --- System return: 1

C:\Z Publications\2017\textowordtest>

包含上述代码的 mythml.cfg 文件

相关内容