Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
latex: increase cell height in tables
Browse files Browse the repository at this point in the history
  • Loading branch information
Lodifice committed Oct 26, 2017
1 parent 856c5fa commit 02f7ce4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mfnf/latex.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,12 +509,14 @@ def export_table(self, table, out):
#out.write("\\begin{adjustbox}{max width=\\textwidth}")
# TODO intermediate conversion
ncolumns = len(table["content"][0]["content"])
out.write("\n\\renewcommand{\\arraystretch}{1.5}\n")
out.write("\n\\begin{longtabu} to \\linewidth {" + ncolumns * 'X[l]' + "} \\\\ \\toprule \n")
self(table["content"][0], out)
out.write("\\midrule\n")
self(table["content"][1:], out)
out.write("\\bottomrule\n")
out.write("\\end{longtabu}\n")
out.write("\\renewcommand{\\arraystretch}{1.0}\n")
#out.write("\\end{adjustbox}\n\n")

def export_tr(self, tr, out):
Expand Down

0 comments on commit 02f7ce4

Please sign in to comment.