无心人
发表于 2009-1-20 16:19:45
:)
liangbch
发表于 2009-1-20 16:24:20
是有工具 可将 Latex 转化为 html格式,那个 http://numbers.computation.free.fr/Constants/Log2/log2.html 就是html格式,但是并不妨碍该网页出现大量数学公式。
该网页最后显示 File translated from TEX by TTH, version 3.01.File translated from TEX by TTH, version 3.01.,说明这个网页就是用转化程序生成的。
无心人
发表于 2009-1-20 16:36:16
那样子
恐怕论坛某些帖子需要重新编辑了
gxqcn
发表于 2009-1-20 16:50:01
还是倾向于用TeX直接编译成pdf的好。
转一篇文章:http://enc.com.au/docs/latexhtml.html
LaTeX to HTML Converters
I've been using LaTeX for many years, I should say quickly for the freaks out there that it doesn't mean I'm into vinyl or other strangeness. LaTeX is a document processing system that creates good quality documents from text source, no hamsters or chains involved at all.
The standard processors you get with LaTeX are good at converting the source into Postscript or PDF (Acrobat) documents and for most of the time this will do. However there are occasions when you want to have your document output in HTML. In this case you need to have a different processor.
This page is about the various types of LaTeX to HTML converters out there. It is not an exhaustive list but should help other people looking around for converters. The main problem with them all is they are not maintained that well.
Hyperlatex
Hyperlatex is the converter I have used the most. It does most jobs quite well and you get reasonable results from it. My major gripes with it is that it is written in Lisp so I cannot extend it (I don't know Lisp) and that it doesn't do CSS that well.
Despite those shortcomings, Hyperlatex is a good start for document conversion. Unlike most program on this page, it is actively maintained and keeps up with HTML standards. For example there is work for Hyperlatex output to be in XHTML.
TTH
TTH has put a lot of effort into the formula conversion. Most converters make an image for the formulas while TTH generates HTML for it, giving the formulas a more consistent look in the document rather than looking like they were "pasted in" later.
TTH has a funny license in that (roughly) it is free for non-commercial use only. Depending on where you are going to use it, this may be a problem. You can buy a commercial license of TTF too.
Heava
HeVeA is one converter I haven't used, but will try out soon. It looks like it would get confused by some of my documents, especially anything with nested environments.
The program is written in a language called Objective Caml which I know even less about than Lisp. That means no way of extending it for me.
LaTeX2HTML
At first I thought this would be the converter for me. It looks like it converts it pages rather well and it is written in a programming language I understand (Perl).
The main problem with this program is that it has not been maintained for years. A consequence of that is the HTML rendering is a bit old and doesn't keep up with the latest standards.
>text4ht
Another one I've not tried yet. This one does look recently maintained and I will be trying it out.
无心人
发表于 2009-1-20 17:09:18
呵呵
①☞→<。)#)))≦⑩缶Go麥E夲矜Yu LaTexの姝
⑨⑩巼劢楽逋°
傞弋╮(╯_╰)╭MaiLe