<font face="arial,helvetica,sans-serif">Hello XeTeX users,<br><br>There's a solution to use svg in tex. Here's a minimial working (with pdflatex) example:<br><br><span style="font-family:courier new,monospace">\documentclass{article}</span><br style="font-family:courier new,monospace">
<br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">\usepackage{graphicx}</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">\usepackage{color}</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">\usepackage{epstopdf}</span><br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">\newcommand{\executeiffilenewer}[3]{%</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> \ifnum\pdfstrcmp{\pdffilemoddate{#1}}%</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> {\pdffilemoddate{#2}}>0%</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> {\immediate\write18{#3}}\fi%</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">}</span><br style="font-family:courier new,monospace">
<br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">\newcommand{\includesvg}[1]{%</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> \executeiffilenewer{#1.svg}{#1.pdf}%</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> {inkscape -z -D --file=#1.svg %</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> --export-pdf=#1.pdf --export-latex}%</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> \input{#1.pdf_tex}%</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">}</span><br style="font-family:courier new,monospace">
<br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">\begin{document}</span><br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">\begin{figure}</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> \def\svgwidth{200pt}</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> \includesvg{first7BrZns}</span>% it is first7BrZns.svg!<br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">\end{figure}</span><br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">\end{document}</span><br>
<br>Compilation with:<br></font><pre style class=""><code><span class="">pdflatex -shell-escape tex-file</span></code></pre><font face="arial,helvetica,sans-serif">(the full paper is <a href="http://www.tex.ac.uk/tex-archive/info/svg-inkscape/InkscapePDFLaTeX.pdf">here</a>)<br>
<br>But in xelatex:<br></font><pre style class=""><code><span class="">xelatex -shell-escape -8bit tex-file</span></code></pre><font face="arial,helvetica,sans-serif">gives error:<br></font><pre style class=""><code><span class="">! Undefined control sequence.
</span><span class="">\executeiffilenewer</span><span class=""> #1#2#3-></span><span class="">\ifnum</span><span class=""> </span><span class="">\pdfstrcmp</span><span class="">
</span><span class="">{</span><span class="">\pdffilemoddate</span><span class=""> </span><span class="">{</span><span class="">#1</span><span class="">}}{</span><span class="">\pdffil</span><span class="">...
l.19 </span><span class="">\includesvg</span><span class="">{</span><span class="">svgfig</span><span class="">}</span></code></pre>What is wrong? How do I make it working?<br><br>(I also posted the question at <a href="http://tex.stackexchange.com/questions/84837/svg-from-inkscape-doesnt-work-in-xelatex">tex.se</a>).<br>
<br>--<br>Boris<br><br><br><font face="arial,helvetica,sans-serif"><br><br></font>