From ccf2945d4ee13ea7155b0ac1812ed0571fd45c8b Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 10 Apr 2019 13:24:25 +0200 Subject: make tex tables standalone --- src/benchmark.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/benchmark.py') 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) -- cgit v1.2.3