LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 879|回复: 5

latex2html的问题

[复制链接]
发表于 2007-2-1 13:41:33 | 显示全部楼层 |阅读模式
google了好久也没找到解决方法,大家可有遇到的,是怎么解决的?

问题如下:
Writing image file ...

This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
(./images.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman, b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis
h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur
kish, ukrainian, nohyphenation, pinyin, loaded.


*** processing 2 images ***

Generating postscript images using dvips ...
This is dvips(k) 5.95a Copyright 2005 Radical Eye Software (www.radicaleye.com)
' TeX output 2007.01.31:2331' -> /tmp/l2h3458/image
(-> /tmp/l2h3458/image001) <tex.pro><alt-rule.pro><texps.pro><special.pro>
<color.pro><cmr10.pfb><cmsy10.pfb><cmmi10.pfb>[1]
(-> /tmp/l2h3458/image002) <tex.pro><alt-rule.pro><texps.pro><special.pro>
<color.pro><cmmi8.pfb><cmr8.pfb><cmbx10.pfb><cmex10.pfb><cmr10.pfb>
<cmsy10.pfb><cmmi10.pfb>[2]
Converting image #2
pstoimg: Error: "/usr/bin/pnmcrop -verbose  < /tmp/l2h3458/p3471.pnm | /usr/bin/pnmcrop -verbose  -bot -sides  -sides  | /usr/bin/pnmcrop -verbose  -l -sides  -sides  | /usr/bin/pnmcrop -verbose  -r -sides  -sides  | /usr/bin/pnmcrop -verbose  -l -sides  -sides  | /usr/bin/ppmquant -floyd 256 | /usr/bin/pnmtopng -interlace -trans 'gray85'  > img2.png" failed: 错误的文件描述符

Error while converting image
Converting image #1
pstoimg: Error: "/usr/bin/ppmquant -floyd 256 < /tmp/l2h3458/p3483.pnm | /usr/bin/pnmtopng -interlace -trans 'gray85'  > img1.png" failed: 错误的文件描述符

Error while converting image

Doing section links ......
Done.
发表于 2007-2-1 15:34:03 | 显示全部楼层
你没测试文档,别人没法说啥
作个pnm手动运行下它的转换命令试试,不行的话把pnm格式转换的包装上,apt-file 找一下pnmtopng,还可试试hevea和tth来转,效果可能要好一些
[PHP]
"/usr/bin/ppmquant -floyd 256 < /tmp/l2h3458/p3483.pnm | /usr/bin/pnmtopng -interlace -trans 'gray85' > img1.png"
[/PHP]
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-2-1 16:48:42 | 显示全部楼层
Post by completist
你没测试文档,别人没法说啥
作个pnm手动运行下它的转换命令试试,不行的话把pnm格式转换的包装上,apt-file 找一下pnmtopng,还可试试hevea和tth来转,效果可能要好一些
[PHP]
"/usr/bin/ppmquant -floyd 256 < /tmp/l2h3458/p3483.pnm | /usr/bin/pnmtopng -interlace -trans 'gray85' > img1.png"
[/PHP]

latex2html test.tex运行结束后,找不到/tmp/l2h3458/p3483.pnm文件,难道是我的/tmp目录有问题?


不好意思,说的不是很明白,test.tex源文件如下:

\documentclass[11pt]{article}
\usepackage{CJK}

\begin{document}
\begin{CJK*}{GBK}{song}

\CJKtilde
\textbf{Fermat~定理:}对~$n\ge3$,
$$
\left\{(x,y,z)\in\mathbf{Q}^3\mid x^n + y^n = z^n,
xyz\ne0\right\} = \emptyset
$$

\end{CJK*}
\end{document}
回复 支持 反对

使用道具 举报

发表于 2007-2-1 17:17:43 | 显示全部楼层
运行完了就会清掉的
在我是正常的

  1. This is LaTeX2HTML Version 2002-2-1 (1.71)
  2. by Nikos Drakos, Computer Based Learning Unit, University of Leeds.

  3. Revised and extended by:
  4. Marcus Hennecke, Ross Moore, Herb Swan and others
  5. ...producing markup for HTML version 4.0  



  6. Extension: loading /usr/share/latex2html/versions/latin1.pl
  7. HTML version: loading /usr/share/latex2html/versions/html4_0.pl

  8. *** processing declarations ***

  9. OPENING /dev/shm/tt.tex

  10. Note: Working directory is /dev/shm/tt
  11. Note: Images will be generated in /tmp/l2h30159




  12. Loading /usr/share/latex2html/styles/texdefs.perl...
  13. Package: loading /usr/share/latex2html/styles/article.perl
  14. Package: loading /usr/share/latex2html/styles/CJK.perl
  15. Reading ...
  16. ++
  17. @@@

  18. Translating ...
  19. 0/1:top of tt: for tt.html

  20. *** translating preamble ***
  21. ...
  22. *** preamble done ***
  23. ;,.,,.;..

  24. 1/1:sectionstar:.."About this document ..." for node1.html
  25. ;;.

  26. Writing image file ...

  27. This is pdfTeX, Version 3.141592-1.40.1 (Web2C 7.5.6)
  28. entering extended mode
  29. (./images.tex
  30. LaTeX2e <2003/12/01>
  31. Babel <v3.8g> and hyphenation patterns for english, usenglishmax, dumylang, noh
  32. yphenation, pinyin, ukrainian, russian, bulgarian, greek, monogreek, ancientgre
  33. ek, ibycus, latin, loaded.


  34. *** processing 2 images ***

  35. Generating postscript images using dvips ...
  36. Converting image #1
  37. Converting image #2

  38. Doing section links ......
  39. *** Adding document-specific styles ***
  40. Done.
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-2-2 17:18:32 | 显示全部楼层
Post by completist
运行完了就会清掉的
在我是正常的

  1. This is LaTeX2HTML Version 2002-2-1 (1.71)
  2. by Nikos Drakos, Computer Based Learning Unit, University of Leeds.

  3. Revised and extended by:
  4. Marcus Hennecke, Ross Moore, Herb Swan and others
  5. ...producing markup for HTML version 4.0  



  6. Extension: loading /usr/share/latex2html/versions/latin1.pl
  7. HTML version: loading /usr/share/latex2html/versions/html4_0.pl

  8. *** processing declarations ***

  9. OPENING /dev/shm/tt.tex

  10. Note: Working directory is /dev/shm/tt
  11. Note: Images will be generated in /tmp/l2h30159




  12. Loading /usr/share/latex2html/styles/texdefs.perl...
  13. Package: loading /usr/share/latex2html/styles/article.perl
  14. Package: loading /usr/share/latex2html/styles/CJK.perl
  15. Reading ...
  16. ++
  17. @@@

  18. Translating ...
  19. 0/1:top of tt: for tt.html

  20. *** translating preamble ***
  21. ...
  22. *** preamble done ***
  23. ;,.,,.;..

  24. 1/1:sectionstar:.."About this document ..." for node1.html
  25. ;;.

  26. Writing image file ...

  27. This is pdfTeX, Version 3.141592-1.40.1 (Web2C 7.5.6)
  28. entering extended mode
  29. (./images.tex
  30. LaTeX2e <2003/12/01>
  31. Babel <v3.8g> and hyphenation patterns for english, usenglishmax, dumylang, noh
  32. yphenation, pinyin, ukrainian, russian, bulgarian, greek, monogreek, ancientgre
  33. ek, ibycus, latin, loaded.


  34. *** processing 2 images ***

  35. Generating postscript images using dvips ...
  36. Converting image #1
  37. Converting image #2

  38. Doing section links ......
  39. *** Adding document-specific styles ***
  40. Done.
复制代码


那应该是我的tex系统没装好的问题了,我是apt-get install 装的tetex,cjk-latex那套系统,cjk字体我是自己通过windowx下的那些字体转化的,这一部分应该没问题,因为我latex中文是没问题的。
从给出的错误信息来看,应该图形转换除了问题,可就是找不出来问题在那儿?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-2-2 17:19:32 | 显示全部楼层
Post by completist
运行完了就会清掉的
在我是正常的

  1. This is LaTeX2HTML Version 2002-2-1 (1.71)
  2. by Nikos Drakos, Computer Based Learning Unit, University of Leeds.

  3. Revised and extended by:
  4. Marcus Hennecke, Ross Moore, Herb Swan and others
  5. ...producing markup for HTML version 4.0  



  6. Extension: loading /usr/share/latex2html/versions/latin1.pl
  7. HTML version: loading /usr/share/latex2html/versions/html4_0.pl

  8. *** processing declarations ***

  9. OPENING /dev/shm/tt.tex

  10. Note: Working directory is /dev/shm/tt
  11. Note: Images will be generated in /tmp/l2h30159




  12. Loading /usr/share/latex2html/styles/texdefs.perl...
  13. Package: loading /usr/share/latex2html/styles/article.perl
  14. Package: loading /usr/share/latex2html/styles/CJK.perl
  15. Reading ...
  16. ++
  17. @@@

  18. Translating ...
  19. 0/1:top of tt: for tt.html

  20. *** translating preamble ***
  21. ...
  22. *** preamble done ***
  23. ;,.,,.;..

  24. 1/1:sectionstar:.."About this document ..." for node1.html
  25. ;;.

  26. Writing image file ...

  27. This is pdfTeX, Version 3.141592-1.40.1 (Web2C 7.5.6)
  28. entering extended mode
  29. (./images.tex
  30. LaTeX2e <2003/12/01>
  31. Babel <v3.8g> and hyphenation patterns for english, usenglishmax, dumylang, noh
  32. yphenation, pinyin, ukrainian, russian, bulgarian, greek, monogreek, ancientgre
  33. ek, ibycus, latin, loaded.


  34. *** processing 2 images ***

  35. Generating postscript images using dvips ...
  36. Converting image #1
  37. Converting image #2

  38. Doing section links ......
  39. *** Adding document-specific styles ***
  40. Done.
复制代码


那应该是我的tex系统没装好的问题了,我是apt-get install 装的tetex,cjk-latex那套系统,cjk字体我是自己通过windowx下的那些字体转化的,这一部分应该没问题,因为我latex中文是没问题的。
从给出的错误信息来看,应该图形转换除了问题,可就是找不出来问题在那儿?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表