Skip to content

Commit dfae5a6

Browse files
Merge pull request #1609 from ArnoStrouwen/patch-1
Fix LaTeX show
2 parents 193906a + 9923f47 commit dfae5a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/systems/abstractsystem.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,9 @@ end
10241024
return latexify(equations(sys))
10251025
end
10261026

1027-
Base.show(io::IO, ::MIME"text/latex", x::AbstractSystem) = print(io, latexify(x))
1027+
function Base.show(io::IO, ::MIME"text/latex", x::AbstractSystem)
1028+
print(io, "\$\$ " * latexify(x) * " \$\$")
1029+
end
10281030

10291031
struct InvalidSystemException <: Exception
10301032
msg::String

0 commit comments

Comments
 (0)