I define a object and want to generate the latex output using Latexify.jl. The object is defined as following
struct vecSym <: Number
function Base.show(io::IO, ::MIME"text/latex", vec::vecSym)
Then the output of the object is in latex style.
Then I define a method for this object as following
print(io, “+”,"(", y.veca, “)”)
Then the output is not in latex style anymore.
Does anybody know what happens? Why this vecAdd method can not show the output in the latex form as +((P_1,P_2))?