diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-04-10 13:24:25 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-04-10 13:24:25 +0200 |
| commit | ccf2945d4ee13ea7155b0ac1812ed0571fd45c8b (patch) | |
| tree | 8877863e0cc890c49386a21e0ebe6a6bbad6b3de | |
| parent | acda99ce26d3b7ee04b346b9e59ff208c9ae0419 (diff) | |
| download | allocbench-ccf2945d4ee13ea7155b0ac1812ed0571fd45c8b.tar.gz allocbench-ccf2945d4ee13ea7155b0ac1812ed0571fd45c8b.zip | |
make tex tables standalone
| -rw-r--r-- | src/benchmark.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/benchmark.py b/src/benchmark.py index a83c3ac..c3573b7 100644 --- a/src/benchmark.py +++ b/src/benchmark.py @@ -471,6 +471,8 @@ class Benchmark (object): fname = os.path.join(sumdir, ".".join([self.name, filepostfix, "tex"])) with open(fname, "w") as f: + print("\\documentclass{standalone}", file=f) + print("\\begin{document}", file=f) print("\\begin{tabular}{|", end="", file=f) print(" l |" * len(headers), "}", file=f) @@ -485,3 +487,4 @@ class Benchmark (object): print(e, end=" & ", file=f) print(row[-1], "\\\\", file=f) print("\\end{tabular}", file=f) + print("\\end{document}", file=f) |
