line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package LaTeX::Table::Themes::Beamer; |
2
|
1
|
|
|
1
|
|
1671
|
use Moose; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
with 'LaTeX::Table::Themes::ThemeI'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
use version; our $VERSION = qv('1.0.6'); |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub _definition { |
9
|
|
|
|
|
|
|
my $themes = { |
10
|
|
|
|
|
|
|
NYC => { |
11
|
|
|
|
|
|
|
'HEADER_FONT_STYLE' => 'bf', |
12
|
|
|
|
|
|
|
'HEADER_FONT_COLOR' => 'white', |
13
|
|
|
|
|
|
|
'HEADER_BG_COLOR' => 'latextbl', |
14
|
|
|
|
|
|
|
'DATA_BG_COLOR_ODD' => 'latextbl!25', |
15
|
|
|
|
|
|
|
'DATA_BG_COLOR_EVEN' => 'latextbl!10', |
16
|
|
|
|
|
|
|
'DEFINE_COLORS' => '\definecolor{latextbl}{RGB}{78,130,190}', |
17
|
|
|
|
|
|
|
'HEADER_CENTERED' => 1, |
18
|
|
|
|
|
|
|
'VERTICAL_RULES' => [ 1, 0, 0 ], |
19
|
|
|
|
|
|
|
'HORIZONTAL_RULES' => [ 1, 1, 0 ], |
20
|
|
|
|
|
|
|
'BOOKTABS' => 0, |
21
|
|
|
|
|
|
|
'EXTRA_ROW_HEIGHT' => '1pt', |
22
|
|
|
|
|
|
|
}, |
23
|
|
|
|
|
|
|
NYC2 => { |
24
|
|
|
|
|
|
|
'HEADER_FONT_STYLE' => 'bf', |
25
|
|
|
|
|
|
|
'HEADER_FONT_COLOR' => 'white', |
26
|
|
|
|
|
|
|
'HEADER_BG_COLOR' => 'latextbl', |
27
|
|
|
|
|
|
|
'DATA_BG_COLOR_ODD' => 'latextbl!25', |
28
|
|
|
|
|
|
|
'DATA_BG_COLOR_EVEN' => 'latextbl!10', |
29
|
|
|
|
|
|
|
'DEFINE_COLORS' => '\definecolor{latextbl}{RGB}{78,130,190}', |
30
|
|
|
|
|
|
|
'HEADER_CENTERED' => 1, |
31
|
|
|
|
|
|
|
'VERTICAL_RULES' => [ 1, 0, 0 ], |
32
|
|
|
|
|
|
|
'HORIZONTAL_RULES' => [ 1, 0, 0 ], |
33
|
|
|
|
|
|
|
'BOOKTABS' => 0, |
34
|
|
|
|
|
|
|
'EXTRA_ROW_HEIGHT' => '1pt', |
35
|
|
|
|
|
|
|
}, |
36
|
|
|
|
|
|
|
NYC3 => { |
37
|
|
|
|
|
|
|
'HEADER_FONT_STYLE' => 'bf', |
38
|
|
|
|
|
|
|
'HEADER_FONT_COLOR' => 'white', |
39
|
|
|
|
|
|
|
'HEADER_BG_COLOR' => 'latextbl', |
40
|
|
|
|
|
|
|
'DATA_BG_COLOR_ODD' => 'latextbl!25', |
41
|
|
|
|
|
|
|
'DATA_BG_COLOR_EVEN' => 'latextbl!10', |
42
|
|
|
|
|
|
|
'DEFINE_COLORS' => '\definecolor{latextbl}{RGB}{78,130,190}', |
43
|
|
|
|
|
|
|
'HEADER_CENTERED' => 1, |
44
|
|
|
|
|
|
|
'VERTICAL_RULES' => [ 1, 1, 1 ], |
45
|
|
|
|
|
|
|
'HORIZONTAL_RULES' => [ 1, 2, 1 ], |
46
|
|
|
|
|
|
|
'BOOKTABS' => 0, |
47
|
|
|
|
|
|
|
'EXTRA_ROW_HEIGHT' => '1pt', |
48
|
|
|
|
|
|
|
'RULES_COLOR_GLOBAL' => |
49
|
|
|
|
|
|
|
'\arrayrulecolor{white}\doublerulesepcolor{black}', |
50
|
|
|
|
|
|
|
'RULES_WIDTH_GLOBAL' => |
51
|
|
|
|
|
|
|
'\setlength\arrayrulewidth{1pt}\setlength\doublerulesep{0pt}', |
52
|
|
|
|
|
|
|
}, |
53
|
|
|
|
|
|
|
NYC4 => { |
54
|
|
|
|
|
|
|
'HEADER_FONT_STYLE' => 'bf', |
55
|
|
|
|
|
|
|
'HEADER_FONT_COLOR' => 'white', |
56
|
|
|
|
|
|
|
'HEADER_BG_COLOR' => 'latextbl', |
57
|
|
|
|
|
|
|
'DATA_BG_COLOR_ODD' => 'latextbl!25', |
58
|
|
|
|
|
|
|
'DATA_BG_COLOR_EVEN' => 'latextbl!10', |
59
|
|
|
|
|
|
|
'DEFINE_COLORS' => '\definecolor{latextbl}{RGB}{78,130,190}', |
60
|
|
|
|
|
|
|
'HEADER_CENTERED' => 1, |
61
|
|
|
|
|
|
|
'VERTICAL_RULES' => [ 0, 0, 0 ], |
62
|
|
|
|
|
|
|
'HORIZONTAL_RULES' => [ 1, 1, 0 ], |
63
|
|
|
|
|
|
|
'BOOKTABS' => 0, |
64
|
|
|
|
|
|
|
'EXTRA_ROW_HEIGHT' => '1pt', |
65
|
|
|
|
|
|
|
'RULES_COLOR_GLOBAL' => |
66
|
|
|
|
|
|
|
'\arrayrulecolor{black}\doublerulesepcolor{black}', |
67
|
|
|
|
|
|
|
'RULES_WIDTH_GLOBAL' => |
68
|
|
|
|
|
|
|
'\setlength\arrayrulewidth{1pt}\setlength\doublerulesep{0pt}', |
69
|
|
|
|
|
|
|
}, |
70
|
|
|
|
|
|
|
Redmond => { |
71
|
|
|
|
|
|
|
'HEADER_FONT_STYLE' => 'bf', |
72
|
|
|
|
|
|
|
'HEADER_FONT_COLOR' => 'white', |
73
|
|
|
|
|
|
|
'HEADER_BG_COLOR' => 'black', |
74
|
|
|
|
|
|
|
'DATA_BG_COLOR_ODD' => 'latextbl!25', |
75
|
|
|
|
|
|
|
'DATA_BG_COLOR_EVEN' => 'latextbl!10', |
76
|
|
|
|
|
|
|
'DEFINE_COLORS' => '\definecolor{latextbl}{RGB}{78,130,190}', |
77
|
|
|
|
|
|
|
'STUB_ALIGN' => 'l', |
78
|
|
|
|
|
|
|
'VERTICAL_RULES' => [ 0, 0, 0 ], |
79
|
|
|
|
|
|
|
'HORIZONTAL_RULES' => [ 0, 2, 1 ], |
80
|
|
|
|
|
|
|
'BOOKTABS' => 0, |
81
|
|
|
|
|
|
|
'RULES_COLOR_GLOBAL' => |
82
|
|
|
|
|
|
|
'\arrayrulecolor{white}\doublerulesepcolor{black}', |
83
|
|
|
|
|
|
|
'RULES_WIDTH_GLOBAL' => |
84
|
|
|
|
|
|
|
'\setlength\arrayrulewidth{1pt}\setlength\doublerulesep{0pt}', |
85
|
|
|
|
|
|
|
'EXTRA_ROW_HEIGHT' => '1pt', |
86
|
|
|
|
|
|
|
}, |
87
|
|
|
|
|
|
|
Redmond2 => { |
88
|
|
|
|
|
|
|
'HEADER_FONT_STYLE' => 'bf', |
89
|
|
|
|
|
|
|
'HEADER_FONT_COLOR' => 'white', |
90
|
|
|
|
|
|
|
'HEADER_BG_COLOR' => 'black', |
91
|
|
|
|
|
|
|
'DATA_BG_COLOR_ODD' => 'latextbl!25', |
92
|
|
|
|
|
|
|
'DATA_BG_COLOR_EVEN' => 'latextbl!10', |
93
|
|
|
|
|
|
|
'DEFINE_COLORS' => '\definecolor{latextbl}{RGB}{78,130,190}', |
94
|
|
|
|
|
|
|
'STUB_ALIGN' => 'l', |
95
|
|
|
|
|
|
|
'VERTICAL_RULES' => [ 0, 0, 0 ], |
96
|
|
|
|
|
|
|
'HORIZONTAL_RULES' => [ 0, 2, 0 ], |
97
|
|
|
|
|
|
|
'BOOKTABS' => 0, |
98
|
|
|
|
|
|
|
'RULES_COLOR_GLOBAL' => |
99
|
|
|
|
|
|
|
'\arrayrulecolor{white}\doublerulesepcolor{black}', |
100
|
|
|
|
|
|
|
'RULES_WIDTH_GLOBAL' => |
101
|
|
|
|
|
|
|
'\setlength\arrayrulewidth{1pt}\setlength\doublerulesep{0pt}', |
102
|
|
|
|
|
|
|
'EXTRA_ROW_HEIGHT' => '1pt', |
103
|
|
|
|
|
|
|
}, |
104
|
|
|
|
|
|
|
}; |
105
|
|
|
|
|
|
|
return $themes; |
106
|
|
|
|
|
|
|
} |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
1; |
109
|
|
|
|
|
|
|
__END__ |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
=head1 NAME |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
LaTeX::Table::Themes::Beamer - Colorful LaTeX table themes optimized for presentations. |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
=head1 PROVIDES |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
This module provides following themes: |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
NYC |
120
|
|
|
|
|
|
|
NYC2 # same, but without midline after header |
121
|
|
|
|
|
|
|
NYC3 # with a white grid |
122
|
|
|
|
|
|
|
NYC4 # with black horizontal lines |
123
|
|
|
|
|
|
|
Redmond |
124
|
|
|
|
|
|
|
Redmond2 # same, but without horizontal lines |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
=head1 REQUIRES |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
The themes defined in this module require following LaTeX packages: |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
\usepackage{array} |
131
|
|
|
|
|
|
|
\usepackage{colortbl} |
132
|
|
|
|
|
|
|
\usepackage{xcolor} |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
=head1 SEE ALSO |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
L<LaTeX::Table>, L<LaTeX::Table::Themes::ThemeI> |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
Copyright (c) 2006-2010 C<< <limaone@cpan.org> >> |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
This module is free software; you can redistribute it and/or |
143
|
|
|
|
|
|
|
modify it under the same terms as Perl itself. See L<perlartistic>. |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
=cut |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
# vim: ft=perl sw=4 ts=4 expandtab |