Skip Menu |

This queue is for tickets about the Data-Table CPAN distribution.

Report information
The Basics
Id: 29641
Status: rejected
Priority: 0/
Queue: Data-Table

People
Owner: Nobody in particular
Requestors: LIMAONE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



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; }
Thanks for the examples. I decided to keep this helper function outside the main Data::Table package. But still thanks for the suggestion. On Thu Sep 27 08:53:25 2007, LIMAONE wrote: Show quoted text
> 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> Show quoted text
> 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; > }