From 24bfdae1d306eb0a2c2ec5027a9b15ba24bd60cf Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Mon, 20 May 2024 16:36:44 +0200 Subject: [PATCH] FIX: pass `kwargs` in `aslatex` iterable implementation (#420) --- src/ampform/io/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ampform/io/__init__.py b/src/ampform/io/__init__.py index 8003d7a4c..78ade6467 100644 --- a/src/ampform/io/__init__.py +++ b/src/ampform/io/__init__.py @@ -116,7 +116,7 @@ def _(obj: Iterable, **kwargs) -> str: msg = "Need at least one item to render as LaTeX" raise ValueError(msg) latex = R"\begin{array}{c}" + "\n" - for item in map(aslatex, obj): + for item in (aslatex(i, **kwargs) for i in obj): latex += Rf" {item} \\" + "\n" latex += R"\end{array}" return latex