tex2svg in Inkscape



Everyone who tried to get isolate compiled tex-code in an svg knows that this is kind of complicated if you try to do it by hand and via manual picture editing. So it sounds convenient that there exists a software that inputs Tex-Code in a software like Inscape ... and so it is! After running into a lot of 32 / 64 bit problems and some weird dll-issues when I had ImageMagick or GraphicsMagick installed I finally got the following to work (assuming that you have Miktex installed): * Inkscape 0.46 (not motivated to install it in the current version and it now runs though) * Download and Install <a title="pstoedit" href="http://www.pstoedit.net/" target="_blank">pstoedit</a> (be sure to install it without this Magick-Integration and put the folder of the executable in your path). * Download and Install <a href="http://pav.iki.fi/software/textext/" target="_blank">textext</a>. For those who are interested (i.e. myself, when I try to set it up on someone else's computer), here are the details. For faster debugging I used and edited the textext.py-File in the Inkscape Extension Folder: ```autoit Func SendF($str) $clip = ClipGet() ClipPut($str) Send("^v") ClipPut($clip) EndFunc Run('PATHTO046\inkscape.exe') WinWaitActive('New document') Send('^o') WinWaitActive('Select file') SendF('PATHTO\test.svg') Send('{ENTER}') WinWaitActive('test.svg') Send('!c{DOWN 8}{ENTER}') WinWaitActive('TeX Text') SendF('$\alpha\leq\beta$') Send('!o') ``` to finally get that it calls something like ```dos pstoedit -f plot-svg tmp.pdf test.svg -dt -ssp -psarg -r9600x9600 ``` which results in the errors I then tracked down to the problems with <code>CORE_RL_Magick++_.dll</code>. Links that helped me: * <a href="http://www.calcmaster.net/personal_projects/pdf2svg/">http://www.calcmaster.net/personal_projects/pdf2svg/</a> * <a href="http://pav.iki.fi/software/textext/">http://pav.iki.fi/software/textext/</a> * <a href="http://www.pstoedit.net/">http://www.pstoedit.net/</a>

2 Replies to “tex2svg in Inkscape”

  1. Your writing style is cool and I have learned several just right stuff here. I can see how much effort you've poured in to come up with such informative posts. If you need more input about Cosmetics, feel free to check out my website at <a href="http://bonus.twofingers.ru/bitrix/rk.php?goto=http://fq4.de/" rel="nofollow ugc">FQ4</a>

Leave a Reply

Your email address will not be published. Required fields are marked *