Skip to content

LaTeX error in trees that contain generated symbols #3

@rdeits

Description

@rdeits

This is actually an upstream bug in TikzGraphs: JuliaTeX/TikzGraphs.jl#12 but I figured you might run into it here anyway.

Trying to render an expression that contains symbols generated with gensym() gives a LaTeX error because of the # character in those symbols. Minimal example:

expr = Expr(gensym())
walk_tree(expr)

produces:

! Illegal parameter number in definition of \pgfutil@reserved@a.
<to be read again> 
2
l.13 }
    ;
Error saving as SVG
LaTeX error

Would it be worth just replacing # with another character for now?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions