Skip to content

Commit

Permalink
Merge pull request #1040 from SciML/isaacsas-latexify-dead-code-fix
Browse files Browse the repository at this point in the history
Update latexify_recipes.jl
  • Loading branch information
isaacsas authored Sep 1, 2024
2 parents b07498f + 2d79ce9 commit 01dba87
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/latexify_recipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 01dba87

Please sign in to comment.