latex-table
2018-03-28
Pretty latex tables from Lisp matrices and vectors.
Upstream URL
Author
License
This library is abandonned.
Latex-table is a simple library for writing vectors and matrices into LaTeX tables. Just use labeled-vector-(horizontal|vertical) or labeled-matrix to write out vectors, and labeled-matrix for matrices. You can specify the number of significant digits (either as a single value for all columns, or for each column separately) and the horizontal/vertical lines. For the latter, you can use position-type pairs, eg
:hlines '(0 2 -1 1))
will put a double line on the left hand side of the table, and a single one on the right - negative numbers count from the right.
The macro with-table puts a table environment around your table.
This version of the package uses David Carlisle's dcolumn LaTeX package for alignment on the decimal dot.
You can use raw-tabular to access the underlying function that actually generates all the tables, but then you have to preprocess your output yourself (read the docstring, or look at the examples).
Examples are in the examples/ directory.
Tamas Papp, tkpapp@gmail.com