The l2h help pages   © Leon van Dommelen 
The latest version of this document is online at eng.famu.fsu.edu or at dommelen.net.

Making Web Pages


Contents

Summary
Making web pages
Hyphenating your web pages
Finalizing your web pages

Summary

The second l2h menu allows you to make web pages from your document. See why.html#whywp why you would want to make web pages. The web pages will be put inside a folder called, you guessed it, "web-pages". This web page gives some more information about various aspects that is not given by the l2h menu.

Making web pages

To make web pages, first be sure that latex has run without error on the document. If needed, run latex by pressing the "l" key. Then go to the second l2h menu by pressing the "2" key. Now press "w" to make the web pages. If you did not already, you will be asked to select a theme. Do so. Your LaTeX source will be checked for LaTeX2HTML problems. If there are any, you will be asked to fix them first. Carefully note the problems listed on the menu window and fix them in your editor window. After that, you will need to run latex before you can try making web pages again.

Sometimes some special actions might be needed before making web pages. If you put such actions in a script called "makewp_start.bat", it will be automatically executed right before the actual web page generation starts. If the script returns an error level, web page generation aborts.

Hyphenating your web pages

Your web pages can be hyphenated if they are in a single language. In the second l2h menu, make the web pages first using the "w" key. Then press "H" to select the hyphenation language. After that press "h" to hyphenate the web pages.

Since any web page remake will clobber hyphenation, there is little point in hyphenating them unless they are in final form.

Some modification of the algorithm is possible. Look in the "hyphenate" folder of "l2h". In the folder for your language, there is a file "hyphenate.txt" that has the hyphenation data. This file can be edited with a text editor by a careful user.

For example, if you feel the hyphenation is too liberal, you can increase the values of "\firsthypen" and "\lasthyphen" a bit. That will prevent short words from being hyphenated.

Another thing you may want to do is specify your own hyphenation for words that you feel are not properly hyphenated. They should go into the "\hyphenationAdded" block.

Finalizing your web pages

Finalizing prevents bad line breaks at images. An example can be found in example web page specrel.html On that page, there is a string "H2O" in which the subscript 2 is an image. Normally, if you fine-tune your browser width, you can get the line to break in between the H and the 2. Ugly! Finalizing prevents this.

Finalizing does some other things. For one, it eliminates some conflicting alignment tags for the web page buttons. It also gets rid of some useless comments.

 Index   Examples