|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
PFG/TikZ export for InkscapeHello,
I read it was possible to convert TikZ code to SVG but nothing about SVG to PGF/TikZ. In fact, when I make vector pictures, I don't do it with a text editor. I use instead a wysiwyg one such as Inkscape. A lot of LaTeX users do the same. Most of the time I use programs such as jpgfdraw or Texgraph who can generate PGF/TikZ code. Sometimes I can't generate PGF/TikZ code then I use the PStricks export in Geogrbra for instance but I'm not satisfied (I'm a LaTeX user but I use more and more ConTeXt). The fact is that all these wysiwyg programs for editing vector pictures can export to SVG. If Inkscape for example (very popular), could export to PGF/TikZ it would be a very cool thing. Inkscape already has a PStricks export and it is not very good (text is not exported as text and the labels can be compiled by pdftex). A PGF/TikZ export would be much better. Do you think it is something possible ? Thank you. Jack ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ pgf-users mailing list pgf-users@... https://lists.sourceforge.net/lists/listinfo/pgf-users |
|
|
Re: PFG/TikZ export for InkscapeOn Tue, Jul 1, 2008 at 12:10 AM, TeXWorld <texworld@...> wrote:
> Hello, > > I read it was possible to convert TikZ code to SVG but nothing about SVG > to PGF/TikZ. > > In fact, when I make vector pictures, I don't do it with a text editor. > I use instead a wysiwyg one such as Inkscape. A lot of LaTeX users do > the same. > Most of the time I use programs such as jpgfdraw or Texgraph who can > generate PGF/TikZ code. > Sometimes I can't generate PGF/TikZ code then I use the PStricks export > in Geogrbra for instance but I'm not satisfied (I'm a LaTeX user but I > use more and more ConTeXt). > > The fact is that all these wysiwyg programs for editing vector pictures > can export to SVG. If Inkscape for example (very popular), could export > to PGF/TikZ it would be a very cool thing. > Inkscape already has a PStricks export and it is not very good (text is > not exported as text and the labels can be compiled by pdftex). A > PGF/TikZ export would be much better. > > Do you think it is something possible ? > Currently there are no fully working Inkscape/SVG to TikZ converters that I am aware of. The topic has been discussed a few times in the Inkscape community though: https://bugs.launchpad.net/inkscape/+bug/172195 http://www.nabble.com/Google-Summer-of-Code-Application:-PGF-Export-td16346939.html The closest thing to a converter is, as far as I know, is an experimental Python extension that I am working on from time to time. You can browse the code here: http://code.google.com/p/gplprojects/source/list http://code.google.com/p/gplprojects/source/browse This is just a spin-off from my recent blend2tikz script: http://www.fauskes.net/code/blend2tikz/ The Inkscape tikz extension is currently only an experiment, but I think it can become an useful tool some time. Creating Inkscape extensions is not that difficult, and thankfully Inkscape ships with a few python modules that makes it relatively easy to work with SVG data. As you mention in your post, the closest thing is currently the PSTricks exporter. The output is not pretty. My goal for my simple extension is to export more high level TikZ paths and nodes. I don't see the point in creating an 1:1 mapping from SVG to tikz/pgf. If that is the goal it is better to export directly to PDF or use tools like eps2pgf. PS. If someone wants to help out with the Inkscape TikZ extension feel free to contact me. Regards, Kjell Magne Fauske ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ pgf-users mailing list pgf-users@... https://lists.sourceforge.net/lists/listinfo/pgf-users |
| Free Forum Powered by Nabble | Forum Help |