Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacsas committed Jul 24, 2024
1 parent 4ae6b61 commit 2302f72
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/latexify_recipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ function chemical_arrows(rn::ReactionSystem;
if i + 1 <= length(rxs) && issetequal(r.products, rxs[i + 1].substrates) &&
issetequal(r.substrates, rxs[i + 1].products)
### Bi-directional arrows
rate_backwards = rxs[i + 1].rate isa Symbolic ? subber(rxs[i + 1].rate) : rxs[i + 1].rate
rate_backwards = rxs[i + 1].rate isa Symbolic ? subber(rxs[i + 1].rate) :
rxs[i + 1].rate
str *= " &" * rev_arrow
str *= "[" * latexraw(rate_backwards; kwargs...) * "]"
str *= "{" * latexraw(rate; kwargs...) * "} "
Expand All @@ -117,7 +118,7 @@ function chemical_arrows(rn::ReactionSystem;
isempty(products) && (products = ["\\varnothing"])
str *= join(products, " + ")
if ((i == lastidx) ||
(((i + 1) == lastidx) && (backwards_reaction == true))) &&
(((i + 1) == lastidx) && (backwards_reaction == true))) &&
isempty(nonrxs)
str *= " \n "
else
Expand Down

0 comments on commit 2302f72

Please sign in to comment.