File Coverage

blib/lib/LaTeX/Table/Types/Std.pm
Criterion Covered Total %
statement 1 3 33.3
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 2 4 50.0


line stmt bran cond sub pod time code
1             package LaTeX::Table::Types::Std;
2 1     1   1721 use Moose;
  0            
  0            
3              
4             with 'LaTeX::Table::Types::TypeI';
5              
6             use version; our $VERSION = qv('1.0.6');
7              
8             my $template = <<'EOT'
9             [%IF CONTINUED %]\addtocounter{table}{-1}[% END %][% DEFINE_COLORS_CODE %][% IF ENVIRONMENT %]\begin{[% IF SIDEWAYS %]sidewaystable[% ELSE %][% ENVIRONMENT %][% END %][% IF STAR %]*[% END %]}[% IF POSITION %][[% POSITION %]][% END %]
10             [% IF FONTSIZE %]\[% FONTSIZE %]
11             [% END %][% IF FONTFAMILY %]\[% FONTFAMILY %]family
12             [% END %][% RULES_WIDTH_GLOBAL_CODE %][% IF CENTER %]\centering
13             [% END %][% IF LEFT %]\raggedright
14             [% END %][% IF RIGHT %]\raggedleft
15             [% END %][% IF CAPTION_TOP %][% IF CAPTION %]\[% CAPTION_CMD %][% IF SHORTCAPTION %][[% SHORTCAPTION %]][% END %]{[% CAPTION %][% IF CONTINUED %] [% CONTINUEDMSG %][% END %]}
16             [% END %][% END %][% END %][% EXTRA_ROW_HEIGHT_CODE %][% RESIZEBOX_BEGIN_CODE %]\begin{[% TABULAR_ENVIRONMENT %]}[% IF WIDTH %]{[% WIDTH %]}[% END %]{[% COLDEF %]}
17             [% RULES_COLOR_GLOBAL_CODE %][% HEADER_CODE %][% DATA_CODE %]\end{[%
18             TABULAR_ENVIRONMENT %]}[% RESIZEBOX_END_CODE %][% IF ENVIRONMENT %][% UNLESS CAPTION_TOP %][% IF CAPTION %]
19             \[% CAPTION_CMD %][% IF SHORTCAPTION %][[% SHORTCAPTION %]][% END %]{[% CAPTION %][% IF CONTINUED %] [% CONTINUEDMSG %][% END %]}[% END %][% END %][%IF LABEL %]
20             \label{[% LABEL %]}[% END %]
21             \end{[% IF SIDEWAYS %]sidewaystable[% ELSE %][% ENVIRONMENT %][% END %][% IF STAR %]*[% END %]}[% END %]
22             EOT
23             ;
24              
25             has '+_tabular_environment' => ( default => 'tabular' );
26             has '+_template' => ( default => $template );
27              
28             1;
29              
30             __END__
31              
32             =head1 NAME
33              
34             LaTeX::Table::Types::Std - Create standard LaTeX tables.
35              
36             =head1 INTERFACE
37              
38             =over
39              
40             =item C<generate_latex_code>
41              
42             =back
43              
44             =head1 SEE ALSO
45              
46             L<LaTeX::Table>, L<LaTeX::Table::Types::TypeI>
47              
48             =head1 LICENSE AND COPYRIGHT
49              
50             Copyright (c) 2006-2010 C<< <limaone@cpan.org> >>
51              
52             This module is free software; you can redistribute it and/or
53             modify it under the same terms as Perl itself. See L<perlartistic>.
54              
55             =cut
56              
57             # vim: ft=perl sw=4 ts=4 expandtab