LaTeXText icon indicating copy to clipboard operation
LaTeXText copied to clipboard

0 text nodes were found.

Open tasiek30 opened this issue 8 years ago • 7 comments

Hello

I have problem with InkScape and LaTeXText. After I Run 'Extensions -> Render -> Text with Latex (GTK3)' new layer is created but its blank! If i mark option 'show log messages' i have message: 0 text nodes were found.

image

I have MikTex 2.9 installed on my windows 8.1

tasiek30 avatar Dec 17 '17 20:12 tasiek30

Can you please upload an example SVG to reproduce the problem?

seebk avatar Dec 17 '17 21:12 seebk

Here is en example

drawing.zip

tasiek30 avatar Dec 17 '17 21:12 tasiek30

That looks strange. How did you create the text element? Looking at the XML it seems that it is not a normal text element but a "FlowRegion". LaTexText only searches for standard svg:text elements. Haven't seen the FlowRegion before..

seebk avatar Dec 18 '17 08:12 seebk

I just use normal text option in InkScape. Maybe i change some properties in InkScape?

tasiek30 avatar Dec 18 '17 10:12 tasiek30

Funny, I have used Inkscape for years but never recognized that there are two different ways to use the text tool...

  1. Cick somewhere and type the text, this creates an svg:text element
  2. Click and drag a rectangle, this will create a flowRoot and flowRegions which can then be filled with paragraphs

Currently, only the first kind of text is supported by LaTexText. Not sure if it makes sense to also support the other kind of text elements as Latex will create its own text flow anyway.

seebk avatar Dec 18 '17 11:12 seebk

Could You send example file that is working for You?

tasiek30 avatar Dec 18 '17 15:12 tasiek30

OK. I understand what i'm doing wrong. If i select tool text i just need ONLY TO TYPE anywhere in program. Drawing rectangle with text tool don't work. Problem solved

tasiek30 avatar Dec 18 '17 16:12 tasiek30