私は次のことに数日を費やしましたが、喜びはありませんでした。
Mathjax を SVG ファイルにレンダリングしたいと考えています。https://groups.google.com/forum/#!topic/mathjax-users/_UMt3C7TIpQ/discussionの例からのforeignObjectを使用して、svg要素のhtmlファイルに含めるのに問題はありませんが、取得できませんsvg ファイルで作業します。
私が試しているコードは次のとおりです:-
<svg width="1960" height="1080" xmlns="http://www.w3.org/2000/svg">
<script type="text/javascript" src="MathJax-master/MathJax.js?config=TeX-AMS_HTML-SVG"></script>
<g>
<title>Layer 1</title>
<text xml:space="preserve" text-anchor="middle" font-family="serif" font-size="50" id="svg_1" y="223" x="636" stroke-opacity="0.8" stroke-width="0" stroke="#007FFF" fill="#000000">Hello World</text>
<foreignObject x="100" y="100" width="100" height="100">
<body xmlns="http://www.w3.org/2000/svg">
<div>
\(\displaystyle{x+1\over y-1}\)
</div>
</body>
</foreignObject>
</g>
</svg>
どんな助けでも大歓迎です。body 要素を宣言する行に問題があると思われます。