Next I include a symple Perl style for LaTeX2HTML which allows 
the inclussion of a HTML file within a LaTeX document (and works
similar to the latexonly environment, with the contents of the file
within the environment. Maybe it could find a place in hthtml or some
similar file... Just in case somebody finds it useful.

                Jesus.

################################################################
# Input of a raw HTML file.
################################################################


package main;

sub do_cmd_inputhtml {
    local($_) = @_;
    local($contents,$dir);
    s/$next_pair_pr_rx//o;
    local($br_id, $file) = ($1, $2);
    local($rest) = $_;
    foreach $dir ("$texfilepath", split(/:/,$ENV{'TEXINPUTS'})) { 
        if (-f "$dir/$file" ) {
            $found=1;
#           print STDERR "do_cmd_inputhtml: $dir/$file\n";
            $contents = &slurp_input ("$dir/$file");
            last;
        }
    }
    &write_warnings("No file <$file> for inputhtml.")
        unless $found;
    $_ = join('', $contents, $rest);
}       

1;      # This must be the last line


-- 
Jesus M. Gonzalez Barahona             | Grupo de Sistemas y Comunicaciones
tel +3491 624 9458, fax +3491 624 9430 | Departamento de Informatica
[EMAIL PROTECTED], [EMAIL PROTECTED] | Universidad Carlos III de Madrid
http://www.gsyc.inf.uc3m.es/~jgb       | c/ Butarque, 15, 28911 Leganes, Spain

Reply via email to