Want to take part in these discussions? Sign in if you have an account, or apply for one below
Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
On an nLab page, I want to make a commutative diagram whose nodes are PNGs. The obvious way to do this would be to have an array environment, and put images with the ! [ AltText ] (URL) syntax in some of the array locations. But embedding an image like this doesn’t seem to work in a math environment. Any ideas?
Well, iTex allows you to include SVG inside math, and svg allows you to display PNGs so you might be able to hack it that way.
It used to be that MathJax would barf on such constructions which meant you could only view them in Firefox. I just checked one old example which caused Chrome problems and it now seems to work. To see how its done, look at the source for the first figure in:
https://ncatlab.org/nlab/revision/unit+of+an+adjunction/7
Strangely that figure is now messed up in Firefox, so this sort of hack for PNGs might not work in Firefox.
If I had the time, I might test this out in the sandbox. Can you give a specific example (with hosted PGNs) of something similar to what you want?
Just for the record, here are some example nLab pages with figures that contain mixed math and SVG that display correctly in Firefox (MathML) but not in Chrome (MathJax).
. https://ncatlab.org/nlab/revision/homotopy+coherent+diagram/18
1 to 3 of 3