HTML::LatexHTML::Latex is a Perl module that creates a Latex file from an HTML file. | |
Download |
HTML::Latex Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- HTML::Latex Team
- Publisher web site:
- http://search.cpan.org/~peter/html2latex-1.1/HTML/Latex.pm
HTML::Latex Tags
HTML::Latex Description
HTML::Latex is a Perl module that creates a Latex file from an HTML file. 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 Related Software