From 569b2b78baed903539895bd022ffe9d2e1576373 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 11 Feb 2020 15:28:10 +0100 Subject: add summarize option to specify a custom latex preamble this is meant for some latex setup specifics like including common.tex --- summarize.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'summarize.py') diff --git a/summarize.py b/summarize.py index 6bb0485..4ccd928 100755 --- a/summarize.py +++ b/summarize.py @@ -161,12 +161,18 @@ if __name__ == "__main__": "--exclude-benchmarks", help="benchmarks to exclude", nargs='+') + parser.add_argument("--latex-preamble", + help="latex code to include in the preamble of generated standalones", + type=str) args = parser.parse_args() if args.file_ext: src.globalvars.summary_file_ext = args.file_ext + if args.latex_preamble: + src.globalvars.latex_custom_preamble = args.latex_preamble + if not os.path.isdir(args.results): print_error(f"{args.results} is no directory") sys.exit(1) -- cgit v1.2.3