Richard Henwood | 21 Feb 10:18
Picon
Picon

[NEW] extenstion for creating latex figures from inkscape.

Hi Folks,

Some time ago, I looked into adding a feature to 'pstricks' output to /not/
convert fonts to paths.

I failed to make progress on that, so have tackled the problem using an
extension (attached).

I've knocked up a website with a description:
http://richard.henwood.googlepages.com/inkscapelatexextension

A couple of questions:
Is it possible to get the current filename into an extension?
Do extensions live on the wiki somewhere?

please report any good or bad experiences;
Richard.

rjhenwood@...
<inkscape-extension>
  <_name>text as latex picture environment</_name>
  <id>org.ekips.filter.latex_picture</id>
  <dependency type="executable" location="extensions">textAsLatexPicture.py</dependency>
  <dependency type="executable" location="extensions">inkex.py</dependency>
  <param name="latexFilename" type="string" _gui-text="Save image as latex picture file:">/tmp/somelatexfile</param>
  <param name="overwriteFile" type="boolean" _gui-text="Overwrite file if it already exists">false</param>
  <param name="inkscapeFilename" type="string" _gui-text="Name of background pdf or eps (this filename)">/tmp/thisFilename.pdf</param>

  <effect>
    <object-type>all</object-type>
    <effects-menu>
       <submenu _name="Examples"/>
    </effects-menu>
  </effect>
  <script>
    <command reldir="extensions" interpreter="python">textAsLatexPicture.py</command>
  </script>
</inkscape-extension>
Attachment (textAsLatexPicture.py): application/x-python, 5608 bytes
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Inkscape-devel mailing list
Inkscape-devel@...
https://lists.sourceforge.net/lists/listinfo/inkscape-devel

Gmane