Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Textext support? #31

Open
bchretien opened this issue May 5, 2016 · 2 comments
Open

Textext support? #31

bchretien opened this issue May 5, 2016 · 2 comments

Comments

@bchretien
Copy link

This might be out of the scope of this project, but just in case: I use Inkscape with the textext extension to add LaTeX support to my SVG files. I usually convert them to PDF for inclusion in an actual LaTeX file.

Apparently, this extension is not supported by svg2tikz, and related text is not exported. This could be an interesting feature for people who rely on textext extensively.

It seems that in the SVG files generated by Inkscape, textext nodes look like this:

<g
  id="..."
  transform="..."
  ns0:preamble="/usr/share/inkscape/extensions/textext.preamble.tex"
  ns0:text="Textext sample $x \\in S$">
  <defs>
  ...
  </defs>
  <g>
  ...
  </g>
</g>

so we can extract the actual LaTeX code, and the associated preamble (contains defaults \usepackage{...} etc.).

@gdolle
Copy link

gdolle commented Sep 12, 2016

👍 I agree, it's a must have.

@ldevillez
Copy link
Collaborator

I closed #35 but if someone wants to finish it, feel free :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants