line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package cli::latextable; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
54943
|
use 5.014; |
|
1
|
|
|
|
|
3
|
|
4
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
17
|
|
5
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
59
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 NAME |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
cli::latextable |
10
|
|
|
|
|
|
|
Command to produce LaTeX table |
11
|
|
|
|
|
|
|
from TSV format data and also |
12
|
|
|
|
|
|
|
from EXCEL tables or SQL outputs easily by copy-paste. |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 VERSION |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
Version 0.113 |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=cut |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
our $VERSION = '0.113'; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 SYNOPSIS |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
You can easily produce LaTeX table from "\begin{table}.." |
27
|
|
|
|
|
|
|
from tab-character separated variable (TSV) format, so |
28
|
|
|
|
|
|
|
it is easy even from Excel or SQL output by "copy-paste". |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
Just type on your terminal as : |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
latextable |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
and it accepts the input, for example, your pasting of |
35
|
|
|
|
|
|
|
the copying from Excel or other SQL table. First trial |
36
|
|
|
|
|
|
|
would be your typing "Hello\tWorld!" ("\t" means Tab) |
37
|
|
|
|
|
|
|
into the input of this command. |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Online manual is available by : |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
latextable --help [en/ja/opt] # Both English and Japanese. |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 AUTHOR |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
"Toshiyuki Shimono", C<< >> |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 BUGS |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Please report any bugs or feature requests to bin4tsv at gmail period/dot com. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 SUPPORT |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
You can find documentation for this module with the perldoc command. |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
perldoc cli::latextable |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Copyright 2018 "Toshiyuki Shimono". |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it |
66
|
|
|
|
|
|
|
under the terms of the the Artistic License (2.0). You may obtain a |
67
|
|
|
|
|
|
|
copy of the full license at: |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
L |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
Any use, modification, and distribution of the Standard or Modified |
72
|
|
|
|
|
|
|
Versions is governed by this Artistic License. By using, modifying or |
73
|
|
|
|
|
|
|
distributing the Package, you accept this license. Do not use, modify, |
74
|
|
|
|
|
|
|
or distribute the Package, if you do not accept this license. |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
If your Modified Version has been derived from a Modified Version made |
77
|
|
|
|
|
|
|
by someone other than you, you are nevertheless required to ensure that |
78
|
|
|
|
|
|
|
your Modified Version complies with the requirements of this license. |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
This license does not grant you the right to use any trademark, service |
81
|
|
|
|
|
|
|
mark, tradename, or logo of the Copyright Holder. |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
This license includes the non-exclusive, worldwide, free-of-charge |
84
|
|
|
|
|
|
|
patent license to make, have made, use, offer to sell, sell, import and |
85
|
|
|
|
|
|
|
otherwise transfer the Package with respect to any patent claims |
86
|
|
|
|
|
|
|
licensable by the Copyright Holder that are necessarily infringed by the |
87
|
|
|
|
|
|
|
Package. If you institute patent litigation (including a cross-claim or |
88
|
|
|
|
|
|
|
counterclaim) against any party alleging that the Package constitutes |
89
|
|
|
|
|
|
|
direct or contributory patent infringement, then this Artistic License |
90
|
|
|
|
|
|
|
to you shall terminate on the date that such litigation is filed. |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER |
93
|
|
|
|
|
|
|
AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. |
94
|
|
|
|
|
|
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR |
95
|
|
|
|
|
|
|
PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY |
96
|
|
|
|
|
|
|
YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR |
97
|
|
|
|
|
|
|
CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR |
98
|
|
|
|
|
|
|
CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, |
99
|
|
|
|
|
|
|
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=cut |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
1; # End of cli::latextable |