Subject: | LaTeX export |
The following code extends Data::Table with an latex export function.
=item string table::latex ( %latex_table_options )
return a string corresponding a LaTeX coded table. Uses L<LaTeX::Table>
internally. Takes as parameter an hash with additional options. See
L<LaTeX::Table> for all available options.
sub latex {
my ( $self, %args ) = @_;
eval { require LaTeX::Table };
croak 'LaTeX::Table not found.' if $@;
my $lt = LaTeX::Table->new({ %args, header => [[ $self->header ]],
data =>
$self->data});
return $lt->generate_string;
}