[l2h] output file extensions...

Ross Moore ross at ics.mq.edu.au
Tue Feb 4 14:58:07 CET 2003


> Is there a simple way to change output HTMLs extensions?

Yes.

To get  .htm  (e.g. for multi-platform compatibility on CDROMs) 
simply set  $SHORTEXTN = 1;   in the .latex2html-init  file,
or use the   -short_extn  switch.

To get  .shtml  then set  $ALLOW_SSI = 1;  in the init file.
To get  .php    then set  $ALLOW_PHP = 1;  in the init file.

For anything else, you will need to look at the latex2html script
and find where it sets the value of  $EXTN  after checking
for the above variables.

You could add a line of code to the the extension to anything else
that you like, but there is a risk that some hyperlinking may fail
in complicated documents (e.g. with frames) where there may be
an assumption that the extension will be either .htm or .html .
So if you do such hacking, please do not distribute it to others
as a latex2html distribution.
Also, I'd like to know the motivation behind such a change.


Hope this helps,

	Ross Moore


> 
> Thanks,
> Joao.
> 
> _______________________________________________
> latex2html mailing list
> latex2html at tug.org
> http://tug.org/mailman/listinfo/latex2html



More information about the latex2html mailing list