From a8055337f77d086ff00e74eb0bcfda684a615f53 Mon Sep 17 00:00:00 2001 From: Theodore Zorbas <t.zorbas@cern.ch> Date: Wed, 8 Apr 2020 13:22:10 +0000 Subject: [PATCH 1/2] Include underscore LaTeX package to summary TeX file --- CommonAnalysisHelpers/python/visualize.py | 1 + 1 file changed, 1 insertion(+) diff --git a/CommonAnalysisHelpers/python/visualize.py b/CommonAnalysisHelpers/python/visualize.py index a773ed884..b6abedaa9 100644 --- a/CommonAnalysisHelpers/python/visualize.py +++ b/CommonAnalysisHelpers/python/visualize.py @@ -247,6 +247,7 @@ def createSummaryDocument(samples, outputdir, pathToConfig=defaultConfig.pathToC summary.write("\\pagestyle{fancy}\n") summary.write("\\setcounter{secnumdepth}{0}\n") summary.write("\\usepackage{tikz}\n") + summary.write("\\usepackage{underscore}\n") summary.write("\\usetikzlibrary{positioning,arrows}\n") summary.write("\\usepackage{hyperref}\n") summary.write("\\usepackage[open]{bookmark}\n") -- GitLab From 1eb771d3ac2f2c91324945bb4505f08a057d1a5a Mon Sep 17 00:00:00 2001 From: Theodore Zorbas <t.zorbas@cern.ch> Date: Wed, 8 Apr 2020 15:17:49 +0000 Subject: [PATCH 2/2] Correctly fix underscores in cuts summary TeX --- CommonAnalysisHelpers/python/visualize.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CommonAnalysisHelpers/python/visualize.py b/CommonAnalysisHelpers/python/visualize.py index b6abedaa9..d7abddf4c 100644 --- a/CommonAnalysisHelpers/python/visualize.py +++ b/CommonAnalysisHelpers/python/visualize.py @@ -242,12 +242,11 @@ def createSummaryDocument(samples, outputdir, pathToConfig=defaultConfig.pathToC summary.write("\\date{"+strftime("%d-%m-%Y")+"}\n") summary.write("\\usepackage{adjustbox}\n") summary.write("\\usepackage{graphicx}\n") - summary.write("\\usepackage{standalone}\n") + summary.write("\\usepackage[subpreambles]{standalone}\n") summary.write("\\usepackage{fancyhdr}\n") summary.write("\\pagestyle{fancy}\n") summary.write("\\setcounter{secnumdepth}{0}\n") summary.write("\\usepackage{tikz}\n") - summary.write("\\usepackage{underscore}\n") summary.write("\\usetikzlibrary{positioning,arrows}\n") summary.write("\\usepackage{hyperref}\n") summary.write("\\usepackage[open]{bookmark}\n") -- GitLab