Support embedded SVG in LaTeX expressions. TODO: The LaTeX output does not look correct here! *** Parameters: *** require 'maruku/ext/math'; {:html_math_engine => 'itex2mml'} *** Markdown input: *** In $SU(3)$, $\begin{svg} Rank-2 Symmetric Tensor Representation \end{svg}\includegraphics[width=2em]{young1} \otimes \begin{svg} Fundamental Representation \end{svg}\includegraphics[width=1em]{young2} = \begin{svg} Adjoint Representation \end{svg}\includegraphics[width=2em]{young3} \oplus \begin{svg} Rank-3 Symmetric Tensor Representation \end{svg}\includegraphics[width=3em]{young4}$. *** Output of inspect *** md_el(:document,[ md_par(["In ", md_el(:inline_math, [], {:math=>"SU(3)"}), ", ", md_el(:inline_math, [], {:math=>"\\begin{svg}\n\n Rank-2 Symmetric Tensor Representation\n \n \n \n \n\n\\end{svg}\\includegraphics[width=2em]{young1}\n \\otimes\n\\begin{svg}\n\n Fundamental Representation\n \n \n \n\n\\end{svg}\\includegraphics[width=1em]{young2}\n =\n\\begin{svg}\n\n Adjoint Representation\n \n \n \n \n \n\n\\end{svg}\\includegraphics[width=2em]{young3}\n \\oplus\n\\begin{svg}\n\n Rank-3 Symmetric Tensor Representation\n \n \n \n \n \n\n\\end{svg}\\includegraphics[width=3em]{young4}"}), "." ]) ],{},[]) *** Output of to_html ***

In SU(3)SU(3), Rank-2 Symmetric Tensor Representation Fundamental Representation = Adjoint Representation Rank-3 Symmetric Tensor Representation \begin{svg} <svg xmlns="http://www.w3.org/2000/svg" width="30" height="16" viewBox="0 0 30 16"> <desc>Rank-2 Symmetric Tensor Representation</desc> <g transform="translate(5,5)" fill="#FCC" stroke="#000" stroke-width="2"> <rect width="10" height="10"/> <rect width="10" height="10" x="10"/> </g> </svg> \end{svg}\includegraphics[width=2em]{young1} \otimes \begin{svg} <svg xmlns="http://www.w3.org/2000/svg" width="20" height="16" viewBox="0 0 20 16"> <desc>Fundamental Representation</desc> <g transform="translate(5,5)" fill="#FCC" stroke="#000" stroke-width="2"> <rect width="10" height="10"/> </g> </svg> \end{svg}\includegraphics[width=1em]{young2} = \begin{svg} <svg xmlns="http://www.w3.org/2000/svg" width="30" height="26" viewBox="0 0 30 26"> <desc>Adjoint Representation</desc> <g transform="translate(5,5)" fill="#FCC" stroke="#000" stroke-width="2"> <rect width="10" height="10"/> <rect width="10" height="10" x="10"/> <rect width="10" height="10" y="10"/> </g> </svg> \end{svg}\includegraphics[width=2em]{young3} \oplus \begin{svg} <svg xmlns="http://www.w3.org/2000/svg" width="40" height="16" viewBox="0 0 40 16"> <desc>Rank-3 Symmetric Tensor Representation</desc> <g transform="translate(5,5)" fill="#FCC" stroke="#000" stroke-width="2"> <rect width="10" height="10"/> <rect width="10" height="10" x="10"/> <rect width="10" height="10" x="20"/> </g> </svg> \end{svg}\includegraphics[width=3em]{young4}.

*** Output of to_latex *** In $SU(3)$, $ \includegraphics[width=2em]{young1} \otimes \includegraphics[width=1em]{young2} = \includegraphics[width=2em]{young3} \oplus \includegraphics[width=3em]{young4}$.