Which technology should I use to transform my latex documents into html documents

Posted by Matthias Günther on Stack Overflow See other posts from Stack Overflow or by Matthias Günther
Published on 2010-06-08T15:41:24Z Indexed on 2010/06/08 17:12 UTC
Read the original article Hit count: 254

Filed under:
|
|

Hey,

I want to write a little program that transforms my TeX files into HTML. I want to parse the documents and turn the macros (the build-in and of course my own) into HTML pieces. Here are my requirements:

  • predefined rules (e.g. begin{itemize} \item text \end{itemize} => <br> <p>text </p> <br/>)
  • defining own CSS style
  • ability to convert formulars (extract the formulars, load them in an imagecreator and then save the jpg/png)
  • easy to maintain and concise

I know there are several technologies out there, but I don't exactly know which is the best for me. Here are the technologies which flow into my mind

  1. Ruby (I/O is easy, formular loading via webrat),
  2. XML XSLT (I don't think that I need just overhead)
  3. perl (there are many libs out there but I'm not quite familiar with it)
  4. bash (I worked with sed and was surprised how easy it was to work with regular expressions)
  5. latex2html ... (these converters won't work for me and they don't give me freedom in parsing)

Any suggestions, hints and comments are welcome.

Thanks for your time, folks.

© Stack Overflow or respective owner

Related posts about html

Related posts about parsing