korsbo / Latexify.jl

Convert julia objects to LaTeX equations, arrays or other environments.
MIT License
565 stars 60 forks source link

`arraystyle = (:pmatrix|:bmatrix)` work incorrectly #318

Open greimel opened 2 weeks ago

greimel commented 2 weeks ago

When using the pmatrix or bmatrix environments, one needs to omit the alignment instructions like {cc}.

https://github.com/korsbo/Latexify.jl/blob/ad0ab404442ee50b2536e98b69d9dd17dc08086a/test/latexarray_test.jl#L125C1-L126C5

Currently, using arraystyle = :pmatrix produces this

image

(the ccc shouldn't be there).

Workaround: arraystyle = :round

image
gustaphe commented 2 weeks ago

Thanks for spotting this!

Until #319 goes through, another workaround is arraystyle="pmatrix" (with a string instead of a symbol).