File Coverage

blib/lib/CLI/LaTeX/Table.pm
Criterion Covered Total %
statement 8 8 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 11 11 100.0


line stmt bran cond sub pod time code
1             package CLI::LaTeX::Table;
2              
3 1     1   55915 use 5.006;
  1         4  
4 1     1   5 use strict;
  1         1  
  1         16  
5 1     1   4 use warnings;
  1         2  
  1         55  
6              
7             =head1 NAME
8              
9             CLI::LaTeX::Table - provides a quick command tool that transforms almost any table to LaTeX snippet.
10              
11             It rovides a quick tool to transform into suitable LaTeX snippets
12             from (almost) any tables from Excel, SQL outputs used as a LaTeX table. Note that
13             it also has functions to transform lengthy SQL sentences into suitable LaTeX snippets
14             usable inside the footnote and the caption of a table.
15              
16             Given the TSV formatted table
17             such as copied region of an Excel worksheet or SQL output, you can
18             easily get the LaTeX commands to produce same table even if it contains
19             any alphabetical, numeral, symbolic characters unless they are ASCII or
20             UTF-8. You can save a lot of time to draw tables by utilizing many
21             option swithes for magnifying, rotating partly or totally, treating well
22             on large numbers, hankaku-kana and so on.
23              
24             PROVIDED COMMAND LINE INTERFACE programs :
25            
26             1. latextable -- snippet generator from worksheet/scripts into LaTeX table/table-caption/text.
27             2. transpose -- flips a matrix over its diagonal. Input is copied from Excel/SQL output and so on.
28             3. saikoro -- random number/matrix generators of (various) uniform distributions.
29             4. csel -- an command line interface to handle TSV/CSV files easier than cut/AWK commands.
30             5. csv2tsv -- TSV formatter for regular CSV format files by Text::CSV_XS module.
31              
32             All programs provides help-manual that is availble such as by "latextable --help".
33             If you want to see only "switch options", do "latextable --help opt(ions)".
34             If you want to see Japanese or English manual as you wish, do "latextable --help en" or "--help ja".
35              
36             Please try :
37              
38             # saikoro
39             # saikoro -g 12x5
40             # saikoro -g 12x5 -s123
41             # saikoro -g 12x5 -s123 | csel -d 3
42             # saikoro -g 12x5 -s123 | transpose
43             # saikoro -g 12x5 -s123 | latextable
44             # saikoro -g 12x5 -s123 | latextable -Cmn
45             # latextable # After opening some Excel or SQL ouput files, and copy and paste it.
46              
47             =head1 VERSION
48              
49             Version 0.55
50              
51             =cut
52              
53             our $VERSION = '0.55';
54              
55              
56             =head1 LICENSE AND COPYRIGHT
57              
58             Copyright 2018 "Toshiyuki Shimono".
59              
60             This program is free software: you can redistribute it and/or modify
61             it under the terms of the GNU General Public License as published by
62             the Free Software Foundation, either version 3 of the License, or
63             (at your option) any later version.
64              
65             This program is distributed in the hope that it will be useful,
66             but WITHOUT ANY WARRANTY; without even the implied warranty of
67             MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
68             GNU General Public License for more details.
69              
70             You should have received a copy of the GNU General Public License
71             along with this program. If not, see L.
72              
73              
74             =cut
75              
76             1; # End of CLI::LaTeX::Table