How do use Math in Inkscape?

Post questions on how to use or achieve an effect in Inkscape.
netheril96
Posts: 10
Joined: Sun Oct 03, 2010 4:12 am

How do use Math in Inkscape?

Postby netheril96 » Sun Oct 03, 2010 4:22 am

I am new to Inkscape and particularly concerned about typing math formulas.
I searched the Internet before this post,these are the methods I tried:
1.Built-in LaTeX rendering.Extensions->Render->LaTeX.
Unfortunately,I don't find this menu item.
2.TexText.
This extension is full of problems.At last,I did'nt manage to use it.
3.Convert LaTeX into SVG and import into Inkscape.
There is several programs able to do this,like dvisvgm,but they only work in Linux.I am a Windows user.
4.Convert MathML into SVG
I just couldn't find a good translator.

Anyone can give me a solution?Thank you very much!

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: How do use Math in Inkscape?

Postby brynn » Sun Oct 03, 2010 10:32 am

Welcome to InkscapeForum.com!

I don't find such an extension either, and I'm using 0.48 version. Perhaps it's not built-in, but available for download somewhere??
I'm really not knowledgeable about this, but wonder if there is a specialized font, which you could simply use with Text and Font editor?

I'm sure others will be able to help you more, so hang in there. I mostly just wanted to say welcome!

PS - Have you seen the new Glyphs feature (Text menu)? I don't suppose that would work?

netheril96
Posts: 10
Joined: Sun Oct 03, 2010 4:12 am

Re: How do use Math in Inkscape?

Postby netheril96 » Sun Oct 03, 2010 12:07 pm

brynn wrote:Welcome to InkscapeForum.com!

I don't find such an extension either, and I'm using 0.48 version. Perhaps it's not built-in, but available for download somewhere??
I'm really not knowledgeable about this, but wonder if there is a specialized font, which you could simply use with Text and Font editor?

I'm sure others will be able to help you more, so hang in there. I mostly just wanted to say welcome!

PS - Have you seen the new Glyphs feature (Text menu)? I don't suppose that would work?


I need superscript,subscript,integral,blah blah blah

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: How do use Math in Inkscape?

Postby ~suv » Sun Oct 03, 2010 12:42 pm

brynn wrote:I don't find such an extension either, and I'm using 0.48 version.

You need to have a TeX distribution and Ghostscript installed (among the required external tools are pdflatex, dvips, pstoedit or pdf2svg), for the extension 'Render->LaTeX' to load and be available in the extensions menu. Same applies to the 'TeX Text' extension.

netheril96
Posts: 10
Joined: Sun Oct 03, 2010 4:12 am

Re: How do use Math in Inkscape?

Postby netheril96 » Sun Oct 03, 2010 6:39 pm

~suv wrote:
brynn wrote:I don't find such an extension either, and I'm using 0.48 version.

You need to have a TeX distribution and Ghostscript installed (among the required external tools are pdflatex, dvips, pstoedit or pdf2svg), for the extension 'Render->LaTeX' to load and be available in the extensions menu. Same applies to the 'TeX Text' extension.


I of course installed TeX distribution (TeX Live)
Pstoedit is installed as well
But the log file still says Inkscape cannot load LaTeX formulae editor because of lacking pstoedit

netheril96
Posts: 10
Joined: Sun Oct 03, 2010 4:12 am

Re: How do use Math in Inkscape?

Postby netheril96 » Sun Oct 03, 2010 11:07 pm

Finally the LaTeX editor successfully loads.
But an error pops out when rendering a formulae

Code: Select all

Traceback (most recent call last):

  File "eqtexsvg.py", line 156, in <module>

    e.affect()

  File "D:\Program Files\Inkscape\share\extensions\inkex.py", line 211, in affect

    self.parse()

  File "D:\Program Files\Inkscape\share\extensions\inkex.py", line 139, in parse

    self.document = etree.parse(stream)

  File "lxml.etree.pyx", line 2692, in lxml.etree.parse (src/lxml/lxml.etree.c:49594)

  File "parser.pxi", line 1522, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:71582)

  File "parser.pxi", line 1552, in lxml.etree._parseFilelikeDocument (src/lxml/lxml.etree.c:71892)

  File "parser.pxi", line 1435, in lxml.etree._parseDocFromFilelike (src/lxml/lxml.etree.c:70807)

  File "parser.pxi", line 997, in lxml.etree._BaseParser._parseDocFromFilelike (src/lxml/lxml.etree.c:67948)

  File "parser.pxi", line 539, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:63824)

  File "parser.pxi", line 625, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:64745)

  File "parser.pxi", line 565, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:64088)

lxml.etree.XMLSyntaxError: Document is empty, line 1, column 1


Return to “Help with using Inkscape”