Page with multiple SVGs doesn't render properly
bcs 11 posts |
I have a page which includes two SVG images that were generated by tikz and then converted to SVG online. Both of them render perfectly if they are the only images on the page. But when both of them are included, the second image does not render correctly at all. All the math in the image is wrong and includes weird symbols. Is there a fix for this? |
distler Moderator 123 posts |
I have pages with multiple Tikz-generated images. So I don’t know what your problem is. Perhaps if you porvided a link … |
bcs 11 posts |
Please find here the link to the page. And the link to the two individual figures: fig1, fig2 |
distler Moderator 123 posts |
Sorry. I guess I misunderstood what you are doing. Instiki allows the inclusion of Tikz source (either inline or via You’ve created two SVG fragments by some means or other. It doesn’t matter whether you put them inline or via Fix your This again, has nothing to do with Instiki, its support for Tikz or for SVG. It’s basic X(HT)ML. |
distler Moderator 123 posts |
Just so we’re clear, Instiki takes care to uniquify the |
bcs 11 posts |
Ohh. That was a stupid miss on my part. I never thought to look at ids! I changed them and it all works fine now. Thanks a lot |
distler
Moderator
123 posts
edited 3 years ago |
Just a tip: you don’t really need to wrap your SVG in a MathML equation. If all you need is to center the figure,
will suffice (and won’t generate the superfluous MathML wrapper). (Even better, edit the CSS tweaks for your Web, to add a
Then this could be abbreviated to
) |