seebk / LaTeXText

Inkscape extension to render text as Latex
GNU General Public License v3.0
140 stars 19 forks source link

0 text nodes were found. #5

Open tasiek30 opened 6 years ago

tasiek30 commented 6 years ago

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

seebk commented 6 years ago

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

tasiek30 commented 6 years ago

Here is en example

drawing.zip

seebk commented 6 years ago

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..

tasiek30 commented 6 years ago

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

seebk commented 6 years ago

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.

tasiek30 commented 6 years ago

Could You send example file that is working for You?

tasiek30 commented 6 years ago

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