Problems with matrices?

547 views
Skip to first unread message

Nathan Love

unread,
Nov 28, 2015, 10:47:03 AM11/28/15
to draw.io
Just curious, has anyone else had problems with LaTeX matrices? 

All LaTeX matrix-like environments (matrix, bmatrix, pmatrix, align, array) don't render correctly in any documents I create on my own (but every other LaTeX expression renders correctly). Specifically, it's not that the matrix expressions don't fit within the text box I have (you can always just resize) but the expression is never typeset at all, even when syntactically correct.

The strange thing is, when I go to the standard example diagram demonstrating the mathematical typesetting capabilities at http://bit.ly/1cn0fwl, the pmatrix there renders fine. I can even copy the text of that pmatrix, make a new text box in my own diagrams (even new ones), then paste in the raw string and click outside but it won't render the matrix.

Still investigating solutions but I've tried every way I know to test.

Nathan Love

unread,
Nov 28, 2015, 6:55:29 PM11/28/15
to draw.io
After looking at the code more, this may be because the calls to MathJax aren't configured to load the amsmath package, which provides the matrix environment. (When writing pure LaTeX, you would just write \usepackage{amsmath} in the top.) Yet the matrix environment renders well in the sample diagram mentioned above.

I've already specified "use mathematical typesetting" in the Extras menu. I could try to modify the calls to MathJax in the diagram's overall code, but I have no idea how to modify the code in that way. A search for "amsmath" in the sample diagram's total code doesn't yield any results.

Nathan Love

unread,
Nov 28, 2015, 7:05:45 PM11/28/15
to draw.io
I may have a solution, will post details if it works out. Sorry for spam if notifications like this go to everyone. Just want to avoid unnecessary work. Reading http://mathjax.readthedocs.org/en/latest/tex.html helps.

Nathan Love

unread,
Nov 28, 2015, 7:37:57 PM11/28/15
to draw.io
Still no luck with various attempts. Open to any suggestions.

Gaudenz Alder

unread,
Nov 29, 2015, 2:13:37 AM11/29/15
to draw.io
Try adding overflow=hidden; in the style (Ctrl+E)

Nathan Love

unread,
Dec 2, 2015, 5:47:00 AM12/2/15
to draw.io
I'll try it out more, sorry haven't gotten to it with lots of coursework - thanks for the suggestion.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages