JuliaTeX / TreeView.jl

Draw Julia syntax trees as a graph
Other
82 stars 15 forks source link

LaTeX error thrown if function name contains an underscore #29

Closed mroavi closed 6 months ago

mroavi commented 3 years ago

Minimal example:

using TreeView
@tree promote_type(Int64, Float64)
LabelledTree({3, 2} directed simple Int64 graph, Any[:promote_type, :Int64, :Float64])

! Missing $ inserted.
<inserted text> 
$
l.44 }
    ;
dpsanders commented 3 years ago

Good catch. Hopefully it should be easy enough to fix. Would you like to make a PR?

mroavi commented 3 years ago

Sure. I'll give it a shot.

mroavi commented 3 years ago

Good catch. Hopefully it should be easy enough to fix. Would you like to make a PR?

Have you had a chance to look at the PR? Regards.