HTML::Latex 1.1 review
DownloadHTML::Latex is a Perl module that creates a Latex file from an HTML file. SYNOPSIS use HTML::Latex my $parser = new HTML::Latex(
|
|
HTML::Latex is a Perl module that creates a Latex file from an HTML file.
SYNOPSIS
use HTML::Latex
my $parser = new HTML::Latex($conffile);
$parser->set_option(%options);
$parser->add_package(@packages);
$parser->ban_tag(@banned);
$parser->set_log($logfile);
# Option 1:
foreach my $uri (@ARGV) {
my ($htmlfile,$latexfile) = $parser->html2latex($uri);
}
# Option 2:
foreach my $uri (@ARGV) {
my $in = IO::File->new("< $uri");
my $out = IO::File->new("> $uri.tex");
$parser->html2latex($in,$out);
}
# Option 3:
my $html_string = join("n",);
my $tex_string = $parser->parse_string($html_string,1);
# Option 4:
my $html_string = join("",@ARGV);
my $tex_string = $parser->parse_string($html_string);
print $tex_string;
This class is used to create a text file in Latex format from a file in HTML format. Use the class as follows:
1. Create a new HTML::Latex object.
2. Override any options using set_option(), add_package(), ban_tag(), or set_log().
3. Run html2latex() on a file or URL.
4. Do whatever you want with the filename that was returned.
Requirements:
Perl
HTML::Latex 1.1 search tags