line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package LaTeX::Table::Types::Xtab; |
2
|
1
|
|
|
1
|
|
1622
|
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
|
|
|
|
|
|
|
{ |
10
|
|
|
|
|
|
|
[%IF CONTINUED %]\addtocounter{table}{-1}[% END %][% DEFINE_COLORS_CODE %][% |
11
|
|
|
|
|
|
|
EXTRA_ROW_HEIGHT_CODE %][% RULES_WIDTH_GLOBAL_CODE %][% RULES_COLOR_GLOBAL_CODE %][% |
12
|
|
|
|
|
|
|
IF FONTSIZE %]\[% FONTSIZE %] |
13
|
|
|
|
|
|
|
[% END %][% IF FONTFAMILY %]\[% FONTFAMILY %]family |
14
|
|
|
|
|
|
|
[% END %][% IF SIDEWAYS %]\begin{landscape}[% END %][% IF CAPTION %][%IF CAPTION_TOP |
15
|
|
|
|
|
|
|
%]\topcaption[% ELSE %]\bottomcaption[% END %][%IF SHORTCAPTION %][[% SHORTCAPTION %]][% END %]{[% CAPTION %][% IF CONTINUED %] [% CONTINUEDMSG %][% END %]} |
16
|
|
|
|
|
|
|
[% END %][% IF XENTRYSTRETCH %]\xentrystretch{[% XENTRYSTRETCH %]} |
17
|
|
|
|
|
|
|
[% END %][% IF LABEL %]\label{[% LABEL %]} |
18
|
|
|
|
|
|
|
[% END %] |
19
|
|
|
|
|
|
|
[% IF CAPTION_TOP && TABLEHEADMSG %]\tablefirsthead{[% HEADER_CODE %]} |
20
|
|
|
|
|
|
|
\tablehead{\multicolumn{[% LT_NUM_COLUMNS %]}{c}{{ \normalsize \tablename\ \thetable: [% TABLEHEADMSG %]}}\\[\abovecaptionskip] |
21
|
|
|
|
|
|
|
[% HEADER_CODE %]} |
22
|
|
|
|
|
|
|
[% ELSE %]\tablehead{[% HEADER_CODE %]} |
23
|
|
|
|
|
|
|
[% END %]\tabletail{[% TABLETAIL %][% LT_BOTTOM_RULE_CODE %]} |
24
|
|
|
|
|
|
|
\tablelasttail{[% TABLELASTTAIL %]} |
25
|
|
|
|
|
|
|
[% IF CENTER %]\begin{center} |
26
|
|
|
|
|
|
|
[% END %][% IF LEFT %]\begin{flushleft} |
27
|
|
|
|
|
|
|
[% END %][% IF RIGHT %]\begin{flushright} |
28
|
|
|
|
|
|
|
[% END %][% RESIZEBOX_BEGIN_CODE %]\begin{[% TABULAR_ENVIRONMENT %][% IF STAR %]*[% END %]}[% IF WIDTH %]{[%WIDTH %]}[% END %]{[% COLDEF %]} |
29
|
|
|
|
|
|
|
[% DATA_CODE %]\end{[% TABULAR_ENVIRONMENT %][% IF STAR %]*[% END %]} |
30
|
|
|
|
|
|
|
[% RESIZEBOX_END_CODE %][% IF CENTER %]\end{center}[% END %][% IF LEFT |
31
|
|
|
|
|
|
|
%]\end{flushleft}[% END %][% IF RIGHT %]\end{flushright}[% END %][% IF |
32
|
|
|
|
|
|
|
SIDEWAYS %]\end{landscape}[% END %] |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
EOT |
35
|
|
|
|
|
|
|
; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
has '+_tabular_environment' => ( default => 'xtabular' ); |
38
|
|
|
|
|
|
|
has '+_template' => ( default => $template ); |
39
|
|
|
|
|
|
|
has '+_is_floating' => ( default => 0 ); |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
1; |
42
|
|
|
|
|
|
|
__END__ |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 NAME |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
LaTeX::Table::Types::Xtab - Create multi-page LaTeX tables with the xtabular package. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 INTERFACE |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=over |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=item C<generate_latex_code> |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=back |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 SEE ALSO |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
L<LaTeX::Table>, L<LaTeX::Table::Types::TypeI> |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
Copyright (c) 2006-2010 C<< <limaone@cpan.org> >> |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
This module is free software; you can redistribute it and/or |
65
|
|
|
|
|
|
|
modify it under the same terms as Perl itself. See L<perlartistic>. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=cut |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
# vim: ft=perl sw=4 ts=4 expandtab |