Conversion ToolsTeX to HTML Conversion

Information and discussion about output converters related to LaTeX (e.g. dvips, ps2pdf, ...)
Post Reply
spartanguy07
Posts: 10
Joined: Wed Feb 08, 2012 7:29 pm

TeX to HTML Conversion

Post by spartanguy07 »

I have created a tex file (using MiKTeX/Texmaker) of documentation, that is correctly converted to PDF, that I now want to convert to HTML. I have read several places about LaTeX2HTML, TTH, and other tools that could be used to to his, but it seems all the references I find are out of date.

I also noticed that there is a LaTeX2HTML package in the MiKTeX Package Manager, but I can't find how to utilize it.

If someone could get me started on how this is conversion is most easily done I would greatly appreciate it.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

TeX to HTML Conversion

Post by localghost »

spartanguy07 wrote:[…] I also noticed that there is a LaTeX2HTML package in the MiKTeX Package Manager, but I can't find how to utilize it. […]
Install the package by the MPM and open a command line to access its documentation.

Code: Select all

texdoc latex2html
Alternatively see the latex2html entry on CTAN.


Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
spartanguy07
Posts: 10
Joined: Wed Feb 08, 2012 7:29 pm

TeX to HTML Conversion

Post by spartanguy07 »

localghost wrote:

Code: Select all

texdoc latex2html
When I tried this I received a "Winows API Error 5: Access Denied" message.

I already downloaded the package, installed Perl and checked all the installation requirements for things like GhostScript. I just don't understand how to run it on a tex file that I already have generated.
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

TeX to HTML Conversion

Post by localghost »

spartanguy07 wrote:When I tried this I received a "Winows API Error 5: Access Denied" message. […]
As a Linux user I can't tell you anything about Wind0ws error messages.

As I already suggested, go to CTAN and get the latex2html manual from there. Just follow the links.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
spartanguy07
Posts: 10
Joined: Wed Feb 08, 2012 7:29 pm

TeX to HTML Conversion

Post by spartanguy07 »

Since I wasted a lot of time trying to figure this out and never found a person who would give me a straight, simple answer, I will answer my own question in hopes that it will help someone else in the future.
  1. Install the MiKTeX package for HTML conversion.
  2. Open command prompt and type:

    Code: Select all

    htlatex document.tex
This converts the source to a series of HTML files. It's as simple as that.
coolwanglu
Posts: 2
Joined: Sun Aug 26, 2012 6:04 am

TeX to HTML Conversion

Post by coolwanglu »

I think you might be interested in my new project pdf2htmlEX,
which can be found at https://github.com/coolwanglu/pdf2htmlEX

A demo can be found at http://coolwanglu.github.com/pdf2htmlEX/demo/demo.html

You may convert your file as tex -> pdf -> html
argan
Posts: 18
Joined: Thu May 05, 2011 10:46 am

Re: TeX to HTML Conversion

Post by argan »

Sorry for bumping, but this doesn't work for me (writing in the command prompt). I just get

"htlatex: Invalid argument
htlatex: Data: 4294967295"

Is there anything specific I should do? I just want an extremely simple way to convert into HTML. All the packages I've found seems to be out of date.
Post Reply