Inkscape and LaTeX (using "text text")

Using Inkscape with other software? Talk about it here.
Szczech

Inkscape and LaTeX (using "text text")

Postby Szczech » Sun Dec 28, 2008 5:46 am

I have a problem with LaTeX fonts created in Inkscape by "text text" extension. When i save a file as .eps, and then include it into my .tex document and convert it to .pdf, the fonts I can see are a little bit bold. Acrobat reader can't recognize the LaTeX fonts on the picture I mean that Acrobat "treats" them as a picture not as a text. For ex. I can't select only text from a picture. I have to select whole picture. It's annoying for me. Well I know that there are some packages like psfrag but it's a partial solution for me.

Are there some other extensions similar to "text text" that not "put the text objects into groups consist of paths"?

Corwin
Posts: 1
Joined: Thu Oct 08, 2009 10:29 am

Re: Inkscape and LaTeX (using "text text")

Postby Corwin » Sat Oct 17, 2009 5:27 am

billc(@)issi1(∙)com

title: portability of editable jipsen plots and svg to png

cc:
asciimath(@)googlegroups(◦)com
www.inkscapeforum.com/viewforum.php?f=20 Inkscape and TeX



I have found a workaround for referenced external .svg's not working
with the default security policy for MS IISver6; it also makes
ASCIISVG more versatile; it is useful for editing .svg's and .png's.
Examples are at http://www.issi1.com/corwin/calculator/crown_svg.html .

The method to make the Jipsen plots,
http://www1.chapman.edu/~jipsen/svg/ , more portable follows.
When viewing a plot locally, right click on the plot and select
the 'copy svg' option; that puts the .svg as it currently appears
onto the clipboard in the Unicode format as described in
SVGHelp.html under 'Copying:' . Using ctrl-V in Word when the cursor
is in the blank document will display the .svg code; it then can be
saved as a .svg file in the text only mode; Inkscape can be used to
convert the .svg to .png which is more portable. Be careful to not
save the .svg in Inkscape because it will be very difficult to edit
and may not be renderable by all browsers after Inkscape puts all its changes
in it. Another caveat is the Adobe plugin will delete the .svg if you
try to render directly.
Also, Inkscape
will not load the .svg if it is larger than 63K but it will if it is
smaller than 62,714. I wrote a C program that
truncates the numbers with 14 decimal places to numbers with three decimal
places, thus reducing the file size 50%. Complex plots that have
equations, like at
http://www.issi1.com/corwin/sniffers/cubic_png.xml , can be converted
to the very portable .png format. That way the Jipsen plots can be edited
to have legends vertically for the vertical scales or at any angle to
follow a curve. They could also have equations when converted to .png,
since Inkscape can also render LaTeX expressions,
http://www.inkscape.org/wiki/index.php/ReleaseNotes044#Extension_effects .
However, when Inkscape saves a .svg it does not readily lend itself
to manual editing or compatability with other .svg viewers or editors, so
save any Inkscape modified .svg under a name different from your own work.
There are examples at
http://www.issi1.com/corwin/calculator/crown_png.html and
http://www.issi1.com/corwin/sniffers/class_png.xml .

DISLIN is a graphics system that also supports TeX.

My attempts with transparent layers were not satisfactory to solve
the problem and created more problems with SHOW/HIDE boxes.

Johan Engelen

Re: Inkscape and LaTeX (using "text text")

Postby Johan Engelen » Tue Mar 02, 2010 8:45 am

I think you'll find that the new PDF+LaTeX export feature solves your problems. Have a look at the PDF document describing this feature here: http://wiki.inkscape.org/wiki/images/SVG_in_LaTeX.pdf.
What Inkscape can do now when exporting to PDF/EPS/PS is output graphics to PDF and automatically export the text to a LaTeX file. When you include the LaTeX file in your document, it will include the graphics from the PDF and put the text on top of it. So what you do is:
1. draw image in Latex and type text on it
2. export to PDF, select the LaTeX option
3. in your LaTeX document, include the latex file created by inkscape
4. compile and see the result!

Because your image's text is put in the latex file, it will be typeset by LaTeX which gives the following advantages:
- text in the image will have the exact same font and size as the other text in your document
- you can use latex commands and math mode in the text in the image
- ...

:)

Guest

Re: Inkscape and LaTeX (using "text text")

Postby Guest » Tue Apr 06, 2010 12:15 am

Hi,
I tried to download textext, but the website doesn't work any more!!
Top

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

Re: Inkscape and LaTeX (using "text text")

Postby ~suv » Wed Apr 07, 2010 5:19 am


user_bean

Re: Inkscape and LaTeX (using "text text")

Postby user_bean » Tue Jan 18, 2011 11:30 am

I am successfully able to use PDF+Latex, but I'm making a 2 column IEEE paper, and want to have the figure span the top of both columns.

Usually, this would be done with \begin{figure*} (i.e., with the star). How do I do this with the PDF+Latex files?

Thanks.

Johan Engelen wrote:I think you'll find that the new PDF+LaTeX export feature solves your problems. Have a look at the PDF document describing this feature here: http://wiki.inkscape.org/wiki/images/SVG_in_LaTeX.pdf.
What Inkscape can do now when exporting to PDF/EPS/PS is output graphics to PDF and automatically export the text to a LaTeX file. When you include the LaTeX file in your document, it will include the graphics from the PDF and put the text on top of it. So what you do is:
1. draw image in Latex and type text on it
2. export to PDF, select the LaTeX option
3. in your LaTeX document, include the latex file created by inkscape
4. compile and see the result!

Because your image's text is put in the latex file, it will be typeset by LaTeX which gives the following advantages:
- text in the image will have the exact same font and size as the other text in your document
- you can use latex commands and math mode in the text in the image
- ...

:)


Return to “Inkscape & other”