Parsing error when using curly braces in max
Opened this issue · 0 comments
andreasnoack commented
julia> generate_tex_elements(L"\max_{t \in \{1,...,5\}}")
ERROR: TeXParseError: end of string reached with unfinished group
at position 24 (string index 24)
\max_{t \in \{1,...,5\}}
^
Stack before
[4] TeXExpr :group
├─ TeXExpr :char 't'
├─ TeXExpr :spaced
│ └─ TeXExpr :symbol '∈'
├─ TeXExpr :delimiter '{'
├─ TeXExpr :punctuation ','
├─ TeXExpr :punctuation '.'
├─ TeXExpr :punctuation '.'
├─ TeXExpr :punctuation '.'
├─ TeXExpr :punctuation ','
├─ TeXExpr :digit '5'
└─ TeXExpr :delimiter '}'
[3] TeXExpr :subscript
[2] TeXExpr :underover
├─ TeXExpr :function
│ └─ "max"
├─ nothing
└─ nothing
[1] TeXExpr :expr
Stacktrace:
[1] texparse(data::String; showdebug::Bool)
@ MathTeXEngine ~/.julia/packages/MathTeXEngine/aUKOy/src/parser/parser.jl:308
[2] texparse
@ ~/.julia/packages/MathTeXEngine/aUKOy/src/parser/parser.jl:279 [inlined]
[3] _broadcast_getindex_evalf
@ ./broadcast.jl:683 [inlined]
[4] _broadcast_getindex
@ ./broadcast.jl:656 [inlined]
[5] _getindex
@ ./broadcast.jl:679 [inlined]
[6] _broadcast_getindex
@ ./broadcast.jl:655 [inlined]
[7] getindex
@ ./broadcast.jl:610 [inlined]
[8] copy
@ ./broadcast.jl:912 [inlined]
[9] materialize
@ ./broadcast.jl:873 [inlined]
[10] generate_tex_elements(str::LaTeXStrings.LaTeXString, font_family::MathTeXEngine.FontFamily)
@ MathTeXEngine ~/.julia/packages/MathTeXEngine/aUKOy/src/engine/layout.jl:301
[11] generate_tex_elements(str::LaTeXStrings.LaTeXString)
@ MathTeXEngine ~/.julia/packages/MathTeXEngine/aUKOy/src/engine/layout.jl:295
[12] top-level scope
@ REPL[116]:1