JuliaSymbolics / Symbolics.jl

Symbolic programming for the next generation of numerical software
https://docs.sciml.ai/Symbolics/stable/
Other
1.36k stars 151 forks source link

Latex printing of matrix with more than 10 rows issue #1181

Closed rhshi closed 2 months ago

rhshi commented 3 months ago

The following code prints fine in Jupyter:

@variables h[1:9, 1:10]; Symbolics.scalarize(h)

Screenshot 2024-06-26 at 3 13 54 PM

but the following prints some buggy double subscript Latex:

@variables h[1:10, 1:10]; Symbolics.scalarize(h)

What might be happening is that when indexing row 10 it is printing the following:

h_1_{0}ˏ_1 & h_1_{0}ˏ_2 & h_1_{0}ˏ_3 & h_1_{0}ˏ_4 & h_1_{0}ˏ_5 & h_1_{0}ˏ_6 & h_1_{0}ˏ_7 & h_1_{0}ˏ_8 & h_1_{0}ˏ_9 & h_1_{0}ˏ_{1 0}