Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a LaTeX beamer-based presentation that I would like to convert to HTML. How do I go about it? I've tried the typical LaTeX to HTML translators (eg. tth). But they do not handle beamer presentations.

share|improve this question
    
What sort of output do you want? A beamer presentation consists of lots of pages, each with an incremental transition. Surely you don't want all of those! Beamer presentations also tend to be very visual, how accurate do you want the visual stuff to be? –  Loop Space Aug 9 '11 at 13:49
    
I am not interested in transitions. I have a bot generated beamer presentation with images that I'd like to convert to html. –  nav Aug 9 '11 at 14:21
add comment

2 Answers 2

up vote 2 down vote accepted

You can use text4ht, as @Raphink says. However, I'm not familiar with the mk4ht command. On Windows I use htlatex alone and it works most of the time. Before I address the solution, here are some assumptions:

  1. You have htlatex in your environment path. That means, that in a command prompt you can use it just by typing htlatex, and it will execute the command. If you don't have it in your environment variables, you should use the full path to the command.
  2. You should be in the directory in which you have your .tex files. You need to move using cd /d F:\path\to\your\files (The /d option changes the drive in case is different from the one you are in now).

So, the solution is quite simple, you have to type in the command prompt: htlatex file.tex html "" -dhtml "--interaction=nonstopmode". So what it does? you may ask. The file.tex is your file, html is the output format, -dhtml is the directory in which the output should be written, in this case the directory is named html, you can change it to anything, for example, -dmydir, and finally the "--interaction=nonstopmode" is a parameter passed to the compilation so it doesn't stop for answers.

If you want, you can use an script I made, it is in here. You can place it in your directory and just execute it, or place it somewhere in your environment path and use it anywhere.

share|improve this answer
1  
Works like a charm. Thank you. –  nav Jan 2 '12 at 15:55
add comment

Instead of latex2html, I'd recommend using tex4ht, like the following:

mk4ht htlatex yourproject.tex 'xhtml,charset=utf-8' ' -cunihtf -utf8 -cvalidate'
share|improve this answer
    
I'm on windows & see the following exe's in the bin directory of tex4ht - 1.tex4ht 2.t4ht 3.htcmd ... there is no mk4ht. Am i missing something ? –  nav Aug 9 '11 at 14:30
    
I have no clue about the Windows install. Maybe try these and see if they will do. –  ℝaphink Aug 9 '11 at 19:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.