diff --git a/CommonAnalysisHelpers/python/visualize.py b/CommonAnalysisHelpers/python/visualize.py
index a773ed884a502c2536d3be9514a92027805043df..d7abddf4c3f7dae80f9ff4895ad7e7d9ae251f2e 100644
--- a/CommonAnalysisHelpers/python/visualize.py
+++ b/CommonAnalysisHelpers/python/visualize.py
@@ -242,7 +242,7 @@ 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")