Pretty formatted tables that can be exported to LaTeX
Project description
The goal of this project is to allow an easy interface to create Tables that are not only printed nicely in the terminal, but can also be easily exported to LaTeX code.
How to Install
How to use
>>> from tabletexifier import Table
>>> x = Table(['Name', 'b','c','d','e'])
>>> x.add_row(['first',1,4,6,7])
>>> x.add_row(['second',1,4,6,7])
By printing the table, we have
>>> print(x)
--------------------------
| Name | b | c | d | e |
+--------+---+---+---+---+
| first | 1 | 4 | 6 | 7 |
+--------+---+---+---+---+
| second | 1 | 4 | 6 | 7 |
--------------------------
It can be converted to Latex by
>>> print(x.build_latex())
\begin{table}
\caption{\label{Tab:}}
\begin{tabular}{|l|l|l|l|l|}
\hline Name & b & c & d & e \\ \hline
first & 1 & 4 & 6 & 7 \\ \hline
second & 1 & 4 & 6 & 7 \\ \hline
\end{tabular}
\end{table}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tabletexifier-0.1.tar.gz
(1.6 kB
view hashes)
Built Distributions
tabletexifier-0.1-py3.6.egg
(7.8 kB
view hashes)
tabletexifier-0.1-py2.7.egg
(4.6 kB
view hashes)
Close
Hashes for tabletexifier-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6eb596592c7b64709dec78735b83fe8ccc7712d236ac6f62511867efefca9d59 |
|
MD5 | 640e8da4c5c872a88a7c97f7b9785676 |
|
BLAKE2b-256 | e79eb074eca2f11813a0683ffa19e9b2cb7f20244dda906f4455263b7c23e71d |