File Coverage

blib/lib/LaTeX/Table/Themes/Modern.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::Themes::Modern;
2 1     1   1609 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             'Paris' => {
11             'HEADER_FONT_STYLE' => 'bf',
12             'HEADER_CENTERED' => 1,
13             'HEADER_BG_COLOR' => 'latextblgray',
14             'DEFINE_COLORS' => '\definecolor{latextblgray}{gray}{0.7}',
15             'CAPTION_FONT_STYLE' => 'bf',
16             'VERTICAL_RULES' => [ 1, 1, 1 ],
17             'HORIZONTAL_RULES' => [ 1, 1, 0 ],
18             'BOOKTABS' => 0,
19             },
20             'Muenchen' => {
21             'HEADER_FONT_STYLE' => 'bf',
22             'STUB_ALIGN' => 'l',
23             'DEFINE_COLORS' => '\definecolor{latextbl}{RGB}{78,130,190}',
24             'CAPTION_FONT_STYLE' => 'bf',
25             'DATA_BG_COLOR_EVEN' => 'latextbl!20',
26             'VERTICAL_RULES' => [ 0, 0, 0 ],
27             'HORIZONTAL_RULES' => [ 0, 0, 0 ],
28             'BOOKTABS' => 1,
29             'EXTRA_ROW_HEIGHT' => '1pt',
30             },
31             };
32             return $themes;
33             }
34              
35             1;
36             __END__
37              
38             =head1 NAME
39              
40             LaTeX::Table::Themes::Modern - Modern LaTeX table themes.
41              
42             =head1 PROVIDES
43              
44             This module provides following themes:
45              
46             Paris
47             Muenchen
48              
49             =head1 REQUIRES
50              
51             The themes defined in this module requires following LaTeX packages:
52              
53             \usepackage{xcolor}
54              
55             =head1 NOTES
56              
57             You probably want to use a Sans-serif font:
58              
59             $tbl->set_fontfamily('sf');
60              
61             =head1 SEE ALSO
62              
63             L<LaTeX::Table>, L<LaTeX::Table::Themes::ThemeI>
64              
65             =head1 LICENSE AND COPYRIGHT
66              
67             Copyright (c) 2006-2010 C<< <limaone@cpan.org> >>
68              
69             This module is free software; you can redistribute it and/or
70             modify it under the same terms as Perl itself. See L<perlartistic>.
71              
72             =cut
73              
74             # vim: ft=perl sw=4 ts=4 expandtab