From e0bd50d49bea35689c1605c6ca71e6dd6d77cfa9 Mon Sep 17 00:00:00 2001 From: Alexander Puck Neuwirth Date: Sun, 19 Jan 2025 10:24:41 +0100 Subject: [PATCH] Fix symbolsize default --- pyfeyn2/render/latex/tikzfeynman.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyfeyn2/render/latex/tikzfeynman.py b/pyfeyn2/render/latex/tikzfeynman.py index 23a26e758..3715a7d28 100644 --- a/pyfeyn2/render/latex/tikzfeynman.py +++ b/pyfeyn2/render/latex/tikzfeynman.py @@ -135,7 +135,10 @@ def stylize_node(fd: FeynmanDiagram, v: Vertex): ret += "label=" + v.label + "," if style.getProperty("symbol") is not None: ret += shape_map[style.getProperty("symbol").value] + "," - ret += "scale=" + style.getPropertyValue("symbol-size", "1") + "," + size = style.getPropertyValue("symbol-size", "1") + if size == "": + size = "1" + ret += "scale=" + size + "," suffix = "" end = ret[:-1]