From 2d79ce90b0d46c84fd679878479e1d337b9a5c8d Mon Sep 17 00:00:00 2001 From: Sam Isaacson Date: Sun, 1 Sep 2024 19:10:55 -0400 Subject: [PATCH] Update latexify_recipes.jl --- src/latexify_recipes.jl | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/latexify_recipes.jl b/src/latexify_recipes.jl index a39ed97f22..ecbd42f6d1 100644 --- a/src/latexify_recipes.jl +++ b/src/latexify_recipes.jl @@ -28,12 +28,11 @@ const LATEX_DEFS = CatalystLatexParams() end function Latexify.infer_output(env, rs::ReactionSystem, args...) - env in [:arrows, :chem, :chemical, :arrow] && return chemical_arrows - - error("The environment $env is not defined.") - latex_function = Latexify.get_latex_function(rs, args...) - - return latex_function + if env in (:arrows, :chem, :chemical, :arrow) + return chemical_arrows + else + error("The environment $env is not defined.") + end end function processsym(s)