next up previous contents
Next: The LaTeX2HTML Process Up: Converting LaTeX .sty Style Previous: Contents   Contents

Introduction

LaTeX2HTML is a Perl script that translates LaTeX files into HTML. If the LaTeX source code loads packages via \usepackage, LaTeX2HTML will search for a file of the same name, but with a .perl extension, instead of a .sty extension. This means that if you write a LaTeX package, and you want LaTeX2HTML to understand it, you need to convert your LaTeX code into a Perl script. This requires an understanding of Perl, and an understanding of the inner workings of LaTeX2HTML (and, of course, an understanding of LaTeX and HTML).

If you don't know any Perl, you'll need to learn before proceeding further. If you use Unix or Linux, try man perl, better still, try reading ``Programming Perl''[2]. If you don't know any HTML, try ``HTML: The Definitive Guide''[1].

Note: there are many different programming styles, particularly for Perl. Some people like to optimize the code at the expense of legibility, whilst others may prefer to use slower code that's easier to understand. Since this is a tutorial I will tend to opt for legibility, you can then translate this into obfuscated Perl if that is your desire.


next up previous contents
Next: The LaTeX2HTML Process Up: Converting LaTeX .sty Style Previous: Contents   Contents
Dr Nicola L C Talbot 2005-06-10