hello,
i wanna use inkscape in combination with psfrag. i found a detailed description how to do that here: http://tavmjong.free.fr/INKSCAPE/MANUAL/html/ch03s03.html
i don't know but somehow this is not working for me. the textfield isn't replaced. i'm using inkscape 0,41
i out my test documents online
http://www.sbox.tugraz.at/home/m/mmangard/inkscape/test.svg # the image in svg http://www.sbox.tugraz.at/home/m/mmangard/inkscape/test.eps # the image in eps http://www.sbox.tugraz.at/home/m/mmangard/inkscape/question.tex # the latex-source http://www.sbox.tugraz.at/home/m/mmangard/inkscape/question.dvi #dvi http://www.sbox.tugraz.at/home/m/mmangard/inkscape/question.ps #
it would be great if someone could check my files i don't know where the error is.
martin
On Mon, 30 Jan 2006 13:16:23 +0100, <mmangard@...1530...> wrote:
it would be great if someone could check my files i don't know where the error is.
I think this is because psfrag looks for the complete string in the postscript file, sich as in '(test) show'.
However, in your inkscape-generated file, every single letter is individually drawn, with font lookup and all bells and whistles. Pretty braindead, if you ask me, and impossible for psfrag do parse. Here's what inkscape thinks it should look like (excerpt from question.ps):
gsave [1.0000000 0.0000000 0.0000000 -1.0000000 202.85715 415.21933] concat /BitstreamVeraSans-Roman findfont 12.000000 scalefont setfont 0.0000000 0.0000000 0.0000000 setrgbcolor newpath 0.0000000 0.0000000 moveto (t) show grestore gsave [1.0000000 0.0000000 0.0000000 -1.0000000 207.56808 415.21933] concat /BitstreamVeraSans-Roman findfont 12.000000 scalefont setfont 0.0000000 0.0000000 0.0000000 setrgbcolor newpath 0.0000000 0.0000000 moveto (e) show grestore gsave [1.0000000 0.0000000 0.0000000 -1.0000000 214.95090 415.21933] concat /BitstreamVeraSans-Roman findfont 12.000000 scalefont setfont 0.0000000 0.0000000 0.0000000 setrgbcolor newpath 0.0000000 0.0000000 moveto (s) show grestore gsave [1.0000000 0.0000000 0.0000000 -1.0000000 221.20871 415.21933] concat /BitstreamVeraSans-Roman findfont 12.000000 scalefont setfont 0.0000000 0.0000000 0.0000000 setrgbcolor newpath 0.0000000 0.0000000 moveto (t) show grestore
On Tuesday 31 January 2006 10:57, Daniel Haude wrote:
On Mon, 30 Jan 2006 13:16:23 +0100, <mmangard@...1530...> wrote:
it would be great if someone could check my files i don't know where the error is.
I think this is because psfrag looks for the complete string in the postscript file, sich as in '(test) show'.
However, in your inkscape-generated file, every single letter is individually drawn, with font lookup and all bells and whistles. Pretty braindead, if you ask me, and impossible for psfrag do parse. Here's what inkscape thinks it should look like (excerpt from question.ps):
hmm yes i think so too. but in the manual ( http://tavmjong.free.fr/INKSCAPE/MANUAL/html/ch03s03.html ) is mentioned that it is possible to generate a "psfrag compatible " eps out of the svg. i did it as described but it doesen't work. it would be great if someone could convert this image http://www.sbox.tugraz.at/home/m/mmangard/inkscape/test.svg to a psfrag compatible eps using inkscape and tell me my error(s) .
Hi,
The key, as Daniel as pointed out, is that in the EPS file, the letters must be displayed as one word, i.e. there must be a line of the form:
(test) show
Why Inkscape is breaking your word up into separate letters, I don't know. I took your svg file and saved it as an EPS file (using Save As) with both 0.43 and 0.43+devel on a Linux system. The EPS files I generate have "test" as one word as is required.
Tav
Output EPS File:
%!PS-Adobe-3.0 EPSF-3.0 %%Creator: inkscape 0.43+devel %%Pages: 1 %%Orientation: Portrait %%BoundingBox: 0 0 596 842 %%HiResBoundingBox: 0 0 596 842 %%EndComments %%Page: 1 1 0 842 translate 0.8 -0.8 scale gsave [1 0 0 1 0 0] concat gsave 0.61960787 0.81960785 0 setrgbcolor newpath 120 295.21933 moveto 514.28571 295.21933 lineto 514.28571 546.6479 lineto 120 546.6479 lineto 120 295.21933 lineto closepath fill grestore 0 0 0 setrgbcolor [] 0 setdash 3 setlinewidth 0 setlinejoin 0 setlinecap newpath 120 295.21933 moveto 514.28571 295.21933 lineto 514.28571 546.6479 lineto 120 546.6479 lineto 120 295.21933 lineto closepath stroke gsave [1 0 0 -1 202.85715 415.21933] concat gsave /newlatin1font {findfont dup length dict copy dup /Encoding ISOLatin1Encoding put definefont} def /BitstreamVeraSans-Roman-ISOLatin1 /BitstreamVeraSans-Roman newlatin1font 12 scalefont setfont 0 0 0 setrgbcolor newpath 0 0 moveto (test) show grestore grestore grestore showpage
participants (4)
-
unknown@example.com
-
Daniel Haude
-
Martin Mangard
-
Tavmjong Bah