20.5.11

LaTeX in Inkscape

Hi all

For Win XP and 7, Inkscape 0.48 and textext 0.4.4 the following process worked for me (thanks to all previous contributions by various authors!). See web pages at end.

Configuration Win XP or Win 7, MikTex 2.9, Textext 0.4.4:

1. Install the Latex distribution, e.g. MikTex 2.9 (In Win textext not work with TeXLive 2010)

2. Install Inkscape (inkscape-0.48.0-1.exe)

3. Install pstoedit (pstoeditsetup350.exe)

4. Install Ghostscript (gs900w32.exe)

5. Install TeXtext add-in for Inkscape (textext-0.4.4.exe)

6. Copy contents of libxml2-2.7.7.win32.zip file to C:\Program Files\Inkscape\libxml2-2.7.7 folder (I am not sure this is needed, but installed anyway)

7. Open the file site-packages.zip and copy the contents to the C:\Program Files\Inkscape\python\Lib folder (it will overwrite some files --->; OK!) (http://sourceforge.net/projects/timink/files/pygtk-2.16_for_inkscape-0.48.zip)

8. Install GraphicsMagick-1.3.12-Q8-windows-dll.exe and copy the CORE_RL_magick_.dll and CORE_RL_Magick++_.dll files into your pstoedit folder C:\Program Files\pstoedit

9. Edit the file C:\Program Files\Inkscape\share\extensions\textext.py

--->;;; change line 55 to "import os, sys, tempfile, traceback, glob, re, copy" without the quotes

--->;;; add line 56 "import hashlib" without the quotes

10. Install Python 2.7 and copy your C:\Python27 to C:\Program Files\Inkscape and replace files. Install pygtk, pyobject, and pycairo.

11. Install lxml-2.3.win32-py2.7.exe

Ensure that the PATH environment variable contains C:\Program Files\Inkscape\libxml2-2.7.7.win32;c:\program files\graphicsmagick-1.3.12-q8;C:\Program Files\MiKTeX 2.9\miktex\bin and pstoedit

In Inkscape, access the TeX text feature in Extensions --->; Tex Text

After the installation open Inkscape and in the penultimate tab is named "extensions"can be found to complement newly installed, click to give a window as shown in thefigure below

at the top there is a space for the preamble to be used by LaTeX to write with, for it must create afile with a. inc and save it somewhere on your computer, in my case the contents of myfile preamble.inc is



Code:
\usepackage{latexsym} \usepackage{amssymb}  \usepackage{amsmath} \usepackage{amsthm} \usepackage{cancel} \newcommand{\dd}{\mathrm{d}} \newcommand{\dst}{\displaystyle}
finaly, only
indicate that the criteria for writing equations are the same as when written, to put in a simple, equations are enclosed in dollar signs ($ equation $).

I hope this article will be useful, and if they consider that there is more to comment aboutit, go ahead!


Source of files:

MikTeX: http://www.miktex.org

Inkscape: http://www.inkscape.org

Pstoedit: http://www.pstoedit.net/pstoedit

Ghostscript: http://pages.cs.wisc.edu/~ghost/

Textext: http://pav.iki.fi/software/textext/

Libxml2: http://www.zlatkovic.com/libxml.en.html

lmxl 2.3 http://pypi.python.org/pypi/lxml/2.3#downloads

Python http://www.python.org/download/releases/2.7.1/

Site-packages.zip: http://dgleich.wordpress.com/2010/10/26/fixing-textext-on-inkscape-for-windows/

Graphicsmagick: http://sourceforge.net/projects/graphicsmagick/files/

Best regards

No hay comentarios:

Publicar un comentario