<div dir="ltr"><div class="gmail_default" style="font-family:times new roman,serif">I have read the very well written <b>pgfmanual</b> and followed the steps on to convert tikx into svg:<br><br>lualatex --output-format=dvi example<br>dvisvgm example<br><br></div><div class="gmail_default" style="font-family:times new roman,serif">But I found out <b>all elements are getting converted to svg paths</b>, <br>although some are circles, rectangles, <span class="gmail-module__title__link">Ellipsis</span>.<br></div><div class="gmail_default" style="font-family:times new roman,serif">So I was wondering how to accomplish this?<br></div><div class="gmail_default" style="font-family:times new roman,serif"><br>for example, for the following tikz lines:<br><br><b>\begin{tikzpicture}<br>\ draw (0,0) rectangle (4,4);<br>\end{tikzpicture}</b><br><br></div><div class="gmail_default" style="font-family:times new roman,serif">I would like to convert into the corresponding SVG shape:<br><pre class="gmail-brush: gmail-html; gmail-highlight[4] gmail-notranslate gmail-line-numbers gmail-language-html"><code class="gmail-language-html"> <span class="gmail-token gmail-tag"><span class="gmail-token gmail-tag"><span class="gmail-token gmail-punctuation"><</span>rect</span> x="0" y="0" <span class="gmail-token gmail-attr-name">width</span><span class="gmail-token gmail-attr-value"><span class="gmail-token gmail-punctuation">=</span><span class="gmail-token gmail-punctuation">"4</span><span class="gmail-token gmail-punctuation">"</span></span> <span class="gmail-token gmail-attr-name">height</span><span class="gmail-token gmail-attr-value"><span class="gmail-token gmail-punctuation">=</span><span class="gmail-token gmail-punctuation">"4</span><span class="gmail-token gmail-punctuation">"</span></span> <span class="gmail-token gmail-punctuation">/><br><br></span></span></code></pre><pre class="gmail-brush: gmail-html; gmail-highlight[4] gmail-notranslate gmail-line-numbers gmail-language-html"><code class="gmail-language-html"><span class="gmail-token gmail-tag"><span class="gmail-token gmail-punctuation">I guess I need to hook into one of the compiling stages of tikz/tex files,<br></span></span></code></pre><pre class="gmail-brush: gmail-html; gmail-highlight[4] gmail-notranslate gmail-line-numbers gmail-language-html"><code class="gmail-language-html"><span class="gmail-token gmail-tag"><span class="gmail-token gmail-punctuation">can someone give me some suggestions how to accomplish it?<br><br></span></span></code></pre><pre class="gmail-brush: gmail-html; gmail-highlight[4] gmail-notranslate gmail-line-numbers gmail-language-html"><code class="gmail-language-html"><span class="gmail-token gmail-tag"><span class="gmail-token gmail-punctuation">Thank you very much<br></span></span></code></pre></div></div>