aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-04-10 13:24:25 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-04-10 13:24:25 +0200
commitccf2945d4ee13ea7155b0ac1812ed0571fd45c8b (patch)
tree8877863e0cc890c49386a21e0ebe6a6bbad6b3de
parentacda99ce26d3b7ee04b346b9e59ff208c9ae0419 (diff)
downloadallocbench-ccf2945d4ee13ea7155b0ac1812ed0571fd45c8b.tar.gz
allocbench-ccf2945d4ee13ea7155b0ac1812ed0571fd45c8b.zip
make tex tables standalone
-rw-r--r--src/benchmark.py3
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)