Re: LyX and Inkscape
Mukhtar Ullah mukhtar.ullah at informatik.uni-rostock.de writes: Go to Tools-Preferences-Paths-TEXTINPUTS prefix: by default the current document directory is included (the dot .). Add the subdirectory path by appending ;./figures (the semicolon ; is to separate the two paths). I believe this should solve such issues in he future except in the case that your subdirectoery has a different name (e.g. ./img) in which case also append ;./img. Regards, Mukhtar This method works for me. Thanks Mukhtar!
Re: LyX and Inkscape
Mukhtar Ullah mukhtar.ullah at informatik.uni-rostock.de writes: Go to Tools-Preferences-Paths-TEXTINPUTS prefix: by default the current document directory is included (the dot .). Add the subdirectory path by appending ;./figures (the semicolon ; is to separate the two paths). I believe this should solve such issues in he future except in the case that your subdirectoery has a different name (e.g. ./img) in which case also append ;./img. Regards, Mukhtar This method works for me. Thanks Mukhtar!
Re: LyX and Inkscape
Mukhtar Ullah informatik.uni-rostock.de> writes: >Go to Tools->Preferences->Paths->TEXTINPUTS prefix: by default the current document directory is included (the dot .). Add the subdirectory path by appending > ;./figures (the semicolon ; is to separate the two paths). I believe this should > solve such issues in he future except in the case that your subdirectoery has a > different name (e.g. ./img) in which case also append ;./img. > > Regards, > > Mukhtar > > This method works for me. Thanks Mukhtar!
Re: LyX and Inkscape
On 23.09.2011 02:18, Neal Becker wrote: Why wouldn't you just save as svg? If we just talk about an illustration, I would save it as pdf and then include the pdf. However, if the illustration contains anything in text, then if I saved it as a pdf I would have the text in the font that inkscape used. I believe that this looks ugly: Anything in the finished document should be in the same font. So if I use this pdf+latex format, the text will be rendered by LaTeX, at the positions specified by inkscape, but using the documents font. Also, you can then use LaTeX-Commands in your illustration, for example the math mode... If anyone is interested: something similar can be done with gnuplot, using the epslatex-terminal (then you just need to convert the eps-file to pdf), and also with dia. Martin
Re: LyX and Inkscape
On 09/23/2011 09:22 AM, Martin Hoßbach wrote: If anyone is interested: something similar can be done with gnuplot, using the epslatex-terminal (then you just need to convert the eps-file to pdf), and also with dia. Martin, can you please tell me what exactly one should do in LyX with those two files, a .pdf and a .tex?
Re: LyX and Inkscape
On 23.09.2011 10:20, PhilipPirrip wrote: Martin, can you please tell me what exactly one should do in LyX with those two files, a .pdf and a .tex? The files are used almost like a normal image. Instead of inserting the image (usually inside a float), you insert a child document, select the .tex-file, and switch to input instead of include. And then you do what I was told before, so that LyX knows where the pdf-file can be found... (-- TEXINPUTS) Martin -- Dipl.Inform. Martin Hoßbach Research Assistant 'Cognitive Computing Medical Imaging' Fraunhofer-Institut für Graphische Datenverarbeitung IGD Fraunhoferstr. 5 | 64283 Darmstadt | Germany Tel +49 6151 155-585 | Fax +49 6151 155-480 martin.hossb...@igd.fraunhofer.de | www.igd.fraunhofer.de
Re: LyX and Inkscape
Martin, I have generated one testing image with a black square and a test formula. I can see the formula in the PDF. I thought the formula was added at compilation time with the PDF_Tex file. Isn't it so? Regards. - Julio Rojas jcredbe...@gmail.com On Fri, Sep 23, 2011 at 10:26 AM, Martin Hoßbach martin.hossb...@igd.fraunhofer.de wrote: On 23.09.2011 10:20, PhilipPirrip wrote: Martin, can you please tell me what exactly one should do in LyX with those two files, a .pdf and a .tex? The files are used almost like a normal image. Instead of inserting the image (usually inside a float), you insert a child document, select the .tex-file, and switch to input instead of include. And then you do what I was told before, so that LyX knows where the pdf-file can be found... (-- TEXINPUTS) Martin -- Dipl.Inform. Martin Hoßbach Research Assistant 'Cognitive Computing Medical Imaging' Fraunhofer-Institut für Graphische Datenverarbeitung IGD Fraunhoferstr. 5 | 64283 Darmstadt | Germany Tel +49 6151 155-585 | Fax +49 6151 155-480 martin.hossb...@igd.fraunhofer.de | www.igd.fraunhofer.de
Re: LyX and Inkscape
So, besides setting the TEXINPUTS, how do you include the image in your document? Using \input or an external template? I am using the \input command in ERT. You may try \input via child document as Martin suggested. Mukhtar
Re: LyX and Inkscape
Mukhtar Ullah mukhtar.ul...@informatik.uni-rostock.de írta: So, besides setting the TEXINPUTS, how do you include the image in your document? Using \input or an external template? I am using the \input command in ERT. You may try \input via child document as Martin suggested. Hello: I became interested in this one too. However no matter whether I set the TEXINPUTS prefix or leave it as is I always get error message: !pdfTeX error: pdflatex (file ./inkscape.pdf): reading image file fail I have linux, lyx-2.0.1 and texlive 2010-34.1. What can be the problem? Thanks, bcsikos
Re: LyX and Inkscape
Csikos Bela bcsikos...@freemail.hu írta: I became interested in this one too. However no matter whether I set the TEXINPUTS prefix or leave it as is I always get error message: !pdfTeX error: pdflatex (file ./inkscape.pdf): reading image file fail I have linux, lyx-2.0.1 and texlive 2010-34.1. What can be the problem? I found what was the problem. The lyx file name and the pdf to be inserted had the same file name (inkscape-try). bcsikos
Re: LyX and Inkscape
On 2011-09-23, Martin Hoßbach wrote: On 23.09.2011 10:20, PhilipPirrip wrote: Martin, can you please tell me what exactly one should do in LyX with those two files, a .pdf and a .tex? The files are used almost like a normal image. Instead of inserting the image (usually inside a float), you insert a child document, select the .tex-file, and switch to input instead of include. And then you do what I was told before, so that LyX knows where the pdf-file can be found... (-- TEXINPUTS) Wouldn't this be a candidate for an external inset? Then we might even have a preview in LyX. Günter
Re: LyX and Inkscape
On Fri, Sep 23, 2011 at 11:19 PM, Guenter Milde mi...@users.berlios.de wrote: Wouldn't this be a candidate for an external inset? Then we might even have a preview in LyX. Yes, I also thought that this may improve users' welfare. Liviu
Re: LyX and Inkscape
On 23/09/2011 11:19 PM, Guenter Milde wrote: On 2011-09-23, Martin Hoßbach wrote: On 23.09.2011 10:20, PhilipPirrip wrote: Martin, can you please tell me what exactly one should do in LyX with those two files, a .pdf and a .tex? The files are used almost like a normal image. Instead of inserting the image (usually inside a float), you insert a child document, select the .tex-file, and switch to input instead of include. And then you do what I was told before, so that LyX knows where the pdf-file can be found... (-- TEXINPUTS) Wouldn't this be a candidate for an external inset? Then we might even have a preview in LyX. Günter See this bug report: http://www.lyx.org/trac/ticket/7510 Basically, I was thinking the same as you, but was curious how people are using the format today even without a patch to LyX. -- Julien
Re: LyX and Inkscape
On 23.09.2011 02:18, Neal Becker wrote: Why wouldn't you just save as svg? If we just talk about an illustration, I would save it as pdf and then include the pdf. However, if the illustration contains anything in text, then if I saved it as a pdf I would have the text in the font that inkscape used. I believe that this looks ugly: Anything in the finished document should be in the same font. So if I use this pdf+latex format, the text will be rendered by LaTeX, at the positions specified by inkscape, but using the documents font. Also, you can then use LaTeX-Commands in your illustration, for example the math mode... If anyone is interested: something similar can be done with gnuplot, using the epslatex-terminal (then you just need to convert the eps-file to pdf), and also with dia. Martin
Re: LyX and Inkscape
On 09/23/2011 09:22 AM, Martin Hoßbach wrote: If anyone is interested: something similar can be done with gnuplot, using the epslatex-terminal (then you just need to convert the eps-file to pdf), and also with dia. Martin, can you please tell me what exactly one should do in LyX with those two files, a .pdf and a .tex?
Re: LyX and Inkscape
On 23.09.2011 10:20, PhilipPirrip wrote: Martin, can you please tell me what exactly one should do in LyX with those two files, a .pdf and a .tex? The files are used almost like a normal image. Instead of inserting the image (usually inside a float), you insert a child document, select the .tex-file, and switch to input instead of include. And then you do what I was told before, so that LyX knows where the pdf-file can be found... (-- TEXINPUTS) Martin -- Dipl.Inform. Martin Hoßbach Research Assistant 'Cognitive Computing Medical Imaging' Fraunhofer-Institut für Graphische Datenverarbeitung IGD Fraunhoferstr. 5 | 64283 Darmstadt | Germany Tel +49 6151 155-585 | Fax +49 6151 155-480 martin.hossb...@igd.fraunhofer.de | www.igd.fraunhofer.de
Re: LyX and Inkscape
Martin, I have generated one testing image with a black square and a test formula. I can see the formula in the PDF. I thought the formula was added at compilation time with the PDF_Tex file. Isn't it so? Regards. - Julio Rojas jcredbe...@gmail.com On Fri, Sep 23, 2011 at 10:26 AM, Martin Hoßbach martin.hossb...@igd.fraunhofer.de wrote: On 23.09.2011 10:20, PhilipPirrip wrote: Martin, can you please tell me what exactly one should do in LyX with those two files, a .pdf and a .tex? The files are used almost like a normal image. Instead of inserting the image (usually inside a float), you insert a child document, select the .tex-file, and switch to input instead of include. And then you do what I was told before, so that LyX knows where the pdf-file can be found... (-- TEXINPUTS) Martin -- Dipl.Inform. Martin Hoßbach Research Assistant 'Cognitive Computing Medical Imaging' Fraunhofer-Institut für Graphische Datenverarbeitung IGD Fraunhoferstr. 5 | 64283 Darmstadt | Germany Tel +49 6151 155-585 | Fax +49 6151 155-480 martin.hossb...@igd.fraunhofer.de | www.igd.fraunhofer.de
Re: LyX and Inkscape
So, besides setting the TEXINPUTS, how do you include the image in your document? Using \input or an external template? I am using the \input command in ERT. You may try \input via child document as Martin suggested. Mukhtar
Re: LyX and Inkscape
Mukhtar Ullah mukhtar.ul...@informatik.uni-rostock.de írta: So, besides setting the TEXINPUTS, how do you include the image in your document? Using \input or an external template? I am using the \input command in ERT. You may try \input via child document as Martin suggested. Hello: I became interested in this one too. However no matter whether I set the TEXINPUTS prefix or leave it as is I always get error message: !pdfTeX error: pdflatex (file ./inkscape.pdf): reading image file fail I have linux, lyx-2.0.1 and texlive 2010-34.1. What can be the problem? Thanks, bcsikos
Re: LyX and Inkscape
Csikos Bela bcsikos...@freemail.hu írta: I became interested in this one too. However no matter whether I set the TEXINPUTS prefix or leave it as is I always get error message: !pdfTeX error: pdflatex (file ./inkscape.pdf): reading image file fail I have linux, lyx-2.0.1 and texlive 2010-34.1. What can be the problem? I found what was the problem. The lyx file name and the pdf to be inserted had the same file name (inkscape-try). bcsikos
Re: LyX and Inkscape
On 2011-09-23, Martin Hoßbach wrote: On 23.09.2011 10:20, PhilipPirrip wrote: Martin, can you please tell me what exactly one should do in LyX with those two files, a .pdf and a .tex? The files are used almost like a normal image. Instead of inserting the image (usually inside a float), you insert a child document, select the .tex-file, and switch to input instead of include. And then you do what I was told before, so that LyX knows where the pdf-file can be found... (-- TEXINPUTS) Wouldn't this be a candidate for an external inset? Then we might even have a preview in LyX. Günter
Re: LyX and Inkscape
On Fri, Sep 23, 2011 at 11:19 PM, Guenter Milde mi...@users.berlios.de wrote: Wouldn't this be a candidate for an external inset? Then we might even have a preview in LyX. Yes, I also thought that this may improve users' welfare. Liviu
Re: LyX and Inkscape
On 23/09/2011 11:19 PM, Guenter Milde wrote: On 2011-09-23, Martin Hoßbach wrote: On 23.09.2011 10:20, PhilipPirrip wrote: Martin, can you please tell me what exactly one should do in LyX with those two files, a .pdf and a .tex? The files are used almost like a normal image. Instead of inserting the image (usually inside a float), you insert a child document, select the .tex-file, and switch to input instead of include. And then you do what I was told before, so that LyX knows where the pdf-file can be found... (-- TEXINPUTS) Wouldn't this be a candidate for an external inset? Then we might even have a preview in LyX. Günter See this bug report: http://www.lyx.org/trac/ticket/7510 Basically, I was thinking the same as you, but was curious how people are using the format today even without a patch to LyX. -- Julien
Re: LyX and Inkscape
On 23.09.2011 02:18, Neal Becker wrote: Why wouldn't you just save as svg? If we just talk about an illustration, I would save it as pdf and then include the pdf. However, if the illustration contains anything in text, then if I saved it as a pdf I would have the text in the font that inkscape used. I believe that this looks ugly: Anything in the finished document should be in the same font. So if I use this pdf+latex format, the text will be rendered by LaTeX, at the positions specified by inkscape, but using the documents font. Also, you can then use LaTeX-Commands in your illustration, for example the math mode... If anyone is interested: something similar can be done with gnuplot, using the epslatex-terminal (then you just need to convert the eps-file to pdf), and also with dia. Martin
Re: LyX and Inkscape
On 09/23/2011 09:22 AM, Martin Hoßbach wrote: If anyone is interested: something similar can be done with gnuplot, using the epslatex-terminal (then you just need to convert the eps-file to pdf), and also with dia. Martin, can you please tell me what exactly one should do in LyX with those two files, a .pdf and a .tex?
Re: LyX and Inkscape
On 23.09.2011 10:20, PhilipPirrip wrote: Martin, can you please tell me what exactly one should do in LyX with those two files, a .pdf and a .tex? The files are used almost like a "normal image". Instead of inserting the image (usually inside a float), you insert a child document, select the .tex-file, and switch to "input" instead of "include". And then you do what I was told before, so that LyX knows where the pdf-file can be found... (--> TEXINPUTS) Martin -- Dipl.Inform. Martin Hoßbach Research Assistant 'Cognitive Computing & Medical Imaging' Fraunhofer-Institut für Graphische Datenverarbeitung IGD Fraunhoferstr. 5 | 64283 Darmstadt | Germany Tel +49 6151 155-585 | Fax +49 6151 155-480 martin.hossb...@igd.fraunhofer.de | www.igd.fraunhofer.de
Re: LyX and Inkscape
Martin, I have generated one testing image with a black square and a test formula. I can see the formula in the PDF. I thought the formula was added at compilation time with the PDF_Tex file. Isn't it so? Regards. - Julio Rojas jcredbe...@gmail.com On Fri, Sep 23, 2011 at 10:26 AM, Martin Hoßbachwrote: > On 23.09.2011 10:20, PhilipPirrip wrote: >> >> Martin, can you please tell me what exactly one should do in LyX with >> those two files, a .pdf and a .tex? > > The files are used almost like a "normal image". Instead of inserting the > image (usually inside a float), you insert a child document, select the > .tex-file, and switch to "input" instead of "include". And then you do what > I was told before, so that LyX knows where the pdf-file can be found... (--> > TEXINPUTS) > > Martin > > > -- > Dipl.Inform. Martin Hoßbach > Research Assistant 'Cognitive Computing & Medical Imaging' > > Fraunhofer-Institut für Graphische Datenverarbeitung IGD > Fraunhoferstr. 5 | 64283 Darmstadt | Germany > Tel +49 6151 155-585 | Fax +49 6151 155-480 > martin.hossb...@igd.fraunhofer.de | www.igd.fraunhofer.de >
Re: LyX and Inkscape
> So, besides setting the TEXINPUTS, how do you include the image in your > document? Using \input or an external template? > I am using the \input command in ERT. You may try \input via child document as Martin suggested. Mukhtar
Re: LyX and Inkscape
Mukhtar Ullahírta: > > > So, besides setting the TEXINPUTS, how do you include the image in your > > document? Using \input or an external template?> > > > >I am using the \input command in ERT. You may try \input via child document >>as Martin suggested. Hello: I became interested in this one too. However no matter whether I set the TEXINPUTS prefix or leave it as is I always get error message: !pdfTeX error: pdflatex (file ./inkscape.pdf): reading image file fail I have linux, lyx-2.0.1 and texlive 2010-34.1. What can be the problem? Thanks, bcsikos
Re: LyX and Inkscape
Csikos Belaírta: >I became interested in this one too. >However no matter whether I set the TEXINPUTS prefix or leave it as is >I always get error message:> > >!pdfTeX error: pdflatex (file ./inkscape.pdf): reading image file fail > >I have linux, lyx-2.0.1 and texlive 2010-34.1. > >What can be the problem? I found what was the problem. The lyx file name and the pdf to be inserted had the same file name (inkscape-try). bcsikos
Re: LyX and Inkscape
On 2011-09-23, Martin Hoßbach wrote: > On 23.09.2011 10:20, PhilipPirrip wrote: >> Martin, can you please tell me what exactly one should do in LyX with >> those two files, a .pdf and a .tex? > The files are used almost like a "normal image". Instead of inserting > the image (usually inside a float), you insert a child document, select > the .tex-file, and switch to "input" instead of "include". And then you > do what I was told before, so that LyX knows where the pdf-file can be > found... (--> TEXINPUTS) Wouldn't this be a candidate for an external inset? Then we might even have a preview in LyX. Günter
Re: LyX and Inkscape
On Fri, Sep 23, 2011 at 11:19 PM, Guenter Mildewrote: > Wouldn't this be a candidate for an external inset? > Then we might even have a preview in LyX. > Yes, I also thought that this may improve users' welfare. Liviu
Re: LyX and Inkscape
On 23/09/2011 11:19 PM, Guenter Milde wrote: On 2011-09-23, Martin Hoßbach wrote: On 23.09.2011 10:20, PhilipPirrip wrote: Martin, can you please tell me what exactly one should do in LyX with those two files, a .pdf and a .tex? The files are used almost like a "normal image". Instead of inserting the image (usually inside a float), you insert a child document, select the .tex-file, and switch to "input" instead of "include". And then you do what I was told before, so that LyX knows where the pdf-file can be found... (--> TEXINPUTS) Wouldn't this be a candidate for an external inset? Then we might even have a preview in LyX. Günter See this bug report: http://www.lyx.org/trac/ticket/7510 Basically, I was thinking the same as you, but was curious how people are using the format today even without a patch to LyX. -- Julien
Re: LyX and Inkscape
Hi Martin. I use Inkscape all the time, but have not heard before of this pdf-latex-format. Would you explain how to access it? I tried Save As but it is not there. Thanks. Regards. - Julio Rojas jcredbe...@gmail.com On Thu, Sep 22, 2011 at 11:49 AM, Martin Hoßbach martin.hossb...@igd.fraunhofer.de wrote: Hello does anyone of you use Inkscape and the pdf-latex-format to create images for your documents? BTW: Same problem with gnuplot and the eps-latex-terminal... I definitely want to use this format, because then I will have all text in drawings and diagrams in the font used by the main document. Inkscape creates two files: a pdf-file containing the drawing, and a tex-file which adds all text to the drawing and also loads the pdf-file. LyX seems to ignore the pdf file, since it is not referenced anywhere in the LyX-File. As a result, I get an error: foo.pdf cannot be found. Trying to use \graphicspath to tell latex where to look for the pdf doesn't help: I would have to add an absolute path to the pdf, which is pointless if you work on two machines, one linux, one windows... Using a relative path doesn't work, because LyX ignores the pdf-file and simply doesn't copy it to the temp-folder. Is there any way to tell LyX that the pdf-file exists and needs to be copied to the temp-folder, so latex can find it? Did I miss anything? Thanks Martin
Re: LyX and Inkscape
Is there any way to tell LyX that the pdf-file exists and needs to be copied to the temp-folder, so latex can find it? Martin, I had a similar problem and have to thank the latest version LyX 2.0.1 for solving the issue. This problem occurs when your figure (both .pdf_tex and .pdf) in a directory (most commonly a subdirectory). To cut it short, let us assume that the two files are in a subdirectory ./figures (I would recommend to always use one such name for the directory for the reason to follow). Go to Tools-Preferences-Paths-TEXTINPUTS prefix: by default the current document directory is included (the dot .). Add the subdirectory path by appending ;./figures (the semicolon ; is to separate the two paths). I believe this should solve such issues in he future except in the case that your subdirectoery has a different name (e.g. ./img) in which case also append ;./img. Regards, Mukhtar
Re: LyX and Inkscape
Julio, You find this option after you choose save as pdf and confirm your choice. Later you will see a list of options one which is PDF+LaTeX. Regards, Mukhtar
Re: LyX and Inkscape
I just tested it and it works like a charm with LyX. Beautiful results! :D Thanks to both of you. - Julio Rojas jcredbe...@gmail.com On Thu, Sep 22, 2011 at 3:09 PM, Mukhtar Ullah mukhtar.ul...@informatik.uni-rostock.de wrote: Julio, You find this option after you choose save as pdf and confirm your choice. Later you will see a list of options one which is PDF+LaTeX. Regards, Mukhtar
Re: LyX and Inkscape
I will have to try this later today at home, since here at work I only have a windows pc, and the windows version of 2.0.1 seems not to be available yet... Thanks anyway. Martin On 22.09.2011 15:06, Mukhtar Ullah wrote: Is there any way to tell LyX that the pdf-file exists and needs to be copied to the temp-folder, so latex can find it? Martin, I had a similar problem and have to thank the latest version LyX 2.0.1 for solving the issue. This problem occurs when your figure (both .pdf_tex and .pdf) in a directory (most commonly a subdirectory). To cut it short, let us assume that the two files are in a subdirectory ./figures (I would recommend to always use one such name for the directory for the reason to follow). Go to Tools-Preferences-Paths-TEXTINPUTS prefix: by default the current document directory is included (the dot .). Add the subdirectory path by appending ;./figures (the semicolon ; is to separate the two paths). I believe this should solve such issues in he future except in the case that your subdirectoery has a different name (e.g. ./img) in which case also append ;./img. Regards, Mukhtar -- Dipl.Inform. Martin Hoßbach Research Assistant 'Cognitive Computing Medical Imaging' Fraunhofer-Institut für Graphische Datenverarbeitung IGD Fraunhoferstr. 5 | 64283 Darmstadt | Germany Tel +49 6151 155-585 | Fax +49 6151 155-480 martin.hossb...@igd.fraunhofer.de | www.igd.fraunhofer.de
Re: LyX and Inkscape
On Thu, Sep 22, 2011 at 3:35 PM, Martin Hoßbach martin.hossb...@igd.fraunhofer.de wrote: I will have to try this later today at home, since here at work I only have a windows pc, and the windows version of 2.0.1 seems not to be available yet... It is, but using Uwe's unofficial installer [1]. Liviu [1] https://developer.berlios.de/project/showfiles.php?group_id=5117release_id=18767 Thanks anyway. Martin On 22.09.2011 15:06, Mukhtar Ullah wrote: Is there any way to tell LyX that the pdf-file exists and needs to be copied to the temp-folder, so latex can find it? Martin, I had a similar problem and have to thank the latest version LyX 2.0.1 for solving the issue. This problem occurs when your figure (both .pdf_tex and .pdf) in a directory (most commonly a subdirectory). To cut it short, let us assume that the two files are in a subdirectory ./figures (I would recommend to always use one such name for the directory for the reason to follow). Go to Tools-Preferences-Paths-TEXTINPUTS prefix: by default the current document directory is included (the dot .). Add the subdirectory path by appending ;./figures (the semicolon ; is to separate the two paths). I believe this should solve such issues in he future except in the case that your subdirectoery has a different name (e.g. ./img) in which case also append ;./img. Regards, Mukhtar -- Dipl.Inform. Martin Hoßbach Research Assistant 'Cognitive Computing Medical Imaging' Fraunhofer-Institut für Graphische Datenverarbeitung IGD Fraunhoferstr. 5 | 64283 Darmstadt | Germany Tel +49 6151 155-585 | Fax +49 6151 155-480 martin.hossb...@igd.fraunhofer.de | www.igd.fraunhofer.de -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: LyX and Inkscape
It is, but using Uwe's unofficial installer [1]. Liviu [1] https://developer.berlios.de/project/showfiles.php?group_id=5117release_id=18767 I am also on windows and using Uwe's unofficial installer. I don't see any difference in the two installers except that the unofficial installer changes your MiKTeX package repository path during installation which I change back because I have a local repository. Mukhtar
Re: LyX and Inkscape
On 22/09/2011 3:06 PM, Mukhtar Ullah wrote: Is there any way to tell LyX that the pdf-file exists and needs to be copied to the temp-folder, so latex can find it? Martin, I had a similar problem and have to thank the latest version LyX 2.0.1 for solving the issue. This problem occurs when your figure (both .pdf_tex and .pdf) in a directory (most commonly a subdirectory). To cut it short, let us assume that the two files are in a subdirectory ./figures (I would recommend to always use one such name for the directory for the reason to follow). Go to Tools-Preferences-Paths-TEXTINPUTS prefix: by default the current document directory is included (the dot .). Add the subdirectory path by appending ;./figures (the semicolon ; is to separate the two paths). I believe this should solve such issues in he future except in the case that your subdirectoery has a different name (e.g. ./img) in which case also append ;./img. Regards, Mukhtar So, besides setting the TEXINPUTS, how do you include the image in your document? Using \input or an external template? -- Julien
Re: LyX and Inkscape
Why wouldn't you just save as svg? Julio Rojas wrote: I just tested it and it works like a charm with LyX. Beautiful results! :D Thanks to both of you. - Julio Rojas jcredbe...@gmail.com On Thu, Sep 22, 2011 at 3:09 PM, Mukhtar Ullah mukhtar.ul...@informatik.uni-rostock.de wrote: Julio, You find this option after you choose save as pdf and confirm your choice. Later you will see a list of options one which is PDF+LaTeX. Regards, Mukhtar
Re: LyX and Inkscape
Hi Martin. I use Inkscape all the time, but have not heard before of this pdf-latex-format. Would you explain how to access it? I tried Save As but it is not there. Thanks. Regards. - Julio Rojas jcredbe...@gmail.com On Thu, Sep 22, 2011 at 11:49 AM, Martin Hoßbach martin.hossb...@igd.fraunhofer.de wrote: Hello does anyone of you use Inkscape and the pdf-latex-format to create images for your documents? BTW: Same problem with gnuplot and the eps-latex-terminal... I definitely want to use this format, because then I will have all text in drawings and diagrams in the font used by the main document. Inkscape creates two files: a pdf-file containing the drawing, and a tex-file which adds all text to the drawing and also loads the pdf-file. LyX seems to ignore the pdf file, since it is not referenced anywhere in the LyX-File. As a result, I get an error: foo.pdf cannot be found. Trying to use \graphicspath to tell latex where to look for the pdf doesn't help: I would have to add an absolute path to the pdf, which is pointless if you work on two machines, one linux, one windows... Using a relative path doesn't work, because LyX ignores the pdf-file and simply doesn't copy it to the temp-folder. Is there any way to tell LyX that the pdf-file exists and needs to be copied to the temp-folder, so latex can find it? Did I miss anything? Thanks Martin
Re: LyX and Inkscape
Is there any way to tell LyX that the pdf-file exists and needs to be copied to the temp-folder, so latex can find it? Martin, I had a similar problem and have to thank the latest version LyX 2.0.1 for solving the issue. This problem occurs when your figure (both .pdf_tex and .pdf) in a directory (most commonly a subdirectory). To cut it short, let us assume that the two files are in a subdirectory ./figures (I would recommend to always use one such name for the directory for the reason to follow). Go to Tools-Preferences-Paths-TEXTINPUTS prefix: by default the current document directory is included (the dot .). Add the subdirectory path by appending ;./figures (the semicolon ; is to separate the two paths). I believe this should solve such issues in he future except in the case that your subdirectoery has a different name (e.g. ./img) in which case also append ;./img. Regards, Mukhtar
Re: LyX and Inkscape
Julio, You find this option after you choose save as pdf and confirm your choice. Later you will see a list of options one which is PDF+LaTeX. Regards, Mukhtar
Re: LyX and Inkscape
I just tested it and it works like a charm with LyX. Beautiful results! :D Thanks to both of you. - Julio Rojas jcredbe...@gmail.com On Thu, Sep 22, 2011 at 3:09 PM, Mukhtar Ullah mukhtar.ul...@informatik.uni-rostock.de wrote: Julio, You find this option after you choose save as pdf and confirm your choice. Later you will see a list of options one which is PDF+LaTeX. Regards, Mukhtar
Re: LyX and Inkscape
I will have to try this later today at home, since here at work I only have a windows pc, and the windows version of 2.0.1 seems not to be available yet... Thanks anyway. Martin On 22.09.2011 15:06, Mukhtar Ullah wrote: Is there any way to tell LyX that the pdf-file exists and needs to be copied to the temp-folder, so latex can find it? Martin, I had a similar problem and have to thank the latest version LyX 2.0.1 for solving the issue. This problem occurs when your figure (both .pdf_tex and .pdf) in a directory (most commonly a subdirectory). To cut it short, let us assume that the two files are in a subdirectory ./figures (I would recommend to always use one such name for the directory for the reason to follow). Go to Tools-Preferences-Paths-TEXTINPUTS prefix: by default the current document directory is included (the dot .). Add the subdirectory path by appending ;./figures (the semicolon ; is to separate the two paths). I believe this should solve such issues in he future except in the case that your subdirectoery has a different name (e.g. ./img) in which case also append ;./img. Regards, Mukhtar -- Dipl.Inform. Martin Hoßbach Research Assistant 'Cognitive Computing Medical Imaging' Fraunhofer-Institut für Graphische Datenverarbeitung IGD Fraunhoferstr. 5 | 64283 Darmstadt | Germany Tel +49 6151 155-585 | Fax +49 6151 155-480 martin.hossb...@igd.fraunhofer.de | www.igd.fraunhofer.de
Re: LyX and Inkscape
On Thu, Sep 22, 2011 at 3:35 PM, Martin Hoßbach martin.hossb...@igd.fraunhofer.de wrote: I will have to try this later today at home, since here at work I only have a windows pc, and the windows version of 2.0.1 seems not to be available yet... It is, but using Uwe's unofficial installer [1]. Liviu [1] https://developer.berlios.de/project/showfiles.php?group_id=5117release_id=18767 Thanks anyway. Martin On 22.09.2011 15:06, Mukhtar Ullah wrote: Is there any way to tell LyX that the pdf-file exists and needs to be copied to the temp-folder, so latex can find it? Martin, I had a similar problem and have to thank the latest version LyX 2.0.1 for solving the issue. This problem occurs when your figure (both .pdf_tex and .pdf) in a directory (most commonly a subdirectory). To cut it short, let us assume that the two files are in a subdirectory ./figures (I would recommend to always use one such name for the directory for the reason to follow). Go to Tools-Preferences-Paths-TEXTINPUTS prefix: by default the current document directory is included (the dot .). Add the subdirectory path by appending ;./figures (the semicolon ; is to separate the two paths). I believe this should solve such issues in he future except in the case that your subdirectoery has a different name (e.g. ./img) in which case also append ;./img. Regards, Mukhtar -- Dipl.Inform. Martin Hoßbach Research Assistant 'Cognitive Computing Medical Imaging' Fraunhofer-Institut für Graphische Datenverarbeitung IGD Fraunhoferstr. 5 | 64283 Darmstadt | Germany Tel +49 6151 155-585 | Fax +49 6151 155-480 martin.hossb...@igd.fraunhofer.de | www.igd.fraunhofer.de -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: LyX and Inkscape
It is, but using Uwe's unofficial installer [1]. Liviu [1] https://developer.berlios.de/project/showfiles.php?group_id=5117release_id=18767 I am also on windows and using Uwe's unofficial installer. I don't see any difference in the two installers except that the unofficial installer changes your MiKTeX package repository path during installation which I change back because I have a local repository. Mukhtar
Re: LyX and Inkscape
On 22/09/2011 3:06 PM, Mukhtar Ullah wrote: Is there any way to tell LyX that the pdf-file exists and needs to be copied to the temp-folder, so latex can find it? Martin, I had a similar problem and have to thank the latest version LyX 2.0.1 for solving the issue. This problem occurs when your figure (both .pdf_tex and .pdf) in a directory (most commonly a subdirectory). To cut it short, let us assume that the two files are in a subdirectory ./figures (I would recommend to always use one such name for the directory for the reason to follow). Go to Tools-Preferences-Paths-TEXTINPUTS prefix: by default the current document directory is included (the dot .). Add the subdirectory path by appending ;./figures (the semicolon ; is to separate the two paths). I believe this should solve such issues in he future except in the case that your subdirectoery has a different name (e.g. ./img) in which case also append ;./img. Regards, Mukhtar So, besides setting the TEXINPUTS, how do you include the image in your document? Using \input or an external template? -- Julien
Re: LyX and Inkscape
Why wouldn't you just save as svg? Julio Rojas wrote: I just tested it and it works like a charm with LyX. Beautiful results! :D Thanks to both of you. - Julio Rojas jcredbe...@gmail.com On Thu, Sep 22, 2011 at 3:09 PM, Mukhtar Ullah mukhtar.ul...@informatik.uni-rostock.de wrote: Julio, You find this option after you choose save as pdf and confirm your choice. Later you will see a list of options one which is PDF+LaTeX. Regards, Mukhtar
Re: LyX and Inkscape
Hi Martin. I use Inkscape all the time, but have not heard before of this "pdf-latex-format". Would you explain how to access it? I tried Save As but it is not there. Thanks. Regards. - Julio Rojas jcredbe...@gmail.com On Thu, Sep 22, 2011 at 11:49 AM, Martin Hoßbach < martin.hossb...@igd.fraunhofer.de> wrote: > Hello > > does anyone of you use Inkscape and the pdf-latex-format to create images > for your documents? > > BTW: Same problem with gnuplot and the eps-latex-terminal... I definitely > want to use this format, because then I will have all text in drawings and > diagrams in the font used by the main document. > > Inkscape creates two files: a pdf-file containing the drawing, and a > tex-file which adds all text to the drawing and also loads the pdf-file. LyX > seems to ignore the pdf file, since it is not referenced anywhere in the > LyX-File. As a result, I get an error: "foo.pdf cannot be found". > > Trying to use \graphicspath to tell latex where to look for the pdf doesn't > help: I would have to add an absolute path to the pdf, which is pointless if > you work on two machines, one linux, one windows... Using a relative path > doesn't work, because LyX ignores the pdf-file and simply doesn't copy it to > the temp-folder. > > Is there any way to tell LyX that the pdf-file exists and needs to be > copied to the temp-folder, so latex can find it? > > Did I miss anything? > > Thanks > Martin >
Re: LyX and Inkscape
> Is there any way to tell LyX that the pdf-file exists and needs to be > copied to the temp-folder, so latex can find it? Martin, I had a similar problem and have to thank the latest version LyX 2.0.1 for solving the issue. This problem occurs when your figure (both .pdf_tex and .pdf) in a directory (most commonly a subdirectory). To cut it short, let us assume that the two files are in a subdirectory ./figures (I would recommend to always use one such name for the directory for the reason to follow). Go to Tools->Preferences->Paths->TEXTINPUTS prefix: by default the current document directory is included (the dot .). Add the subdirectory path by appending ;./figures (the semicolon ; is to separate the two paths). I believe this should solve such issues in he future except in the case that your subdirectoery has a different name (e.g. ./img) in which case also append ;./img. Regards, Mukhtar
Re: LyX and Inkscape
Julio, You find this option after you choose "save as pdf" and confirm your choice. Later you will see a list of options one which is "PDF+LaTeX". Regards, Mukhtar
Re: LyX and Inkscape
I just tested it and it works like a charm with LyX. Beautiful results! :D Thanks to both of you. - Julio Rojas jcredbe...@gmail.com On Thu, Sep 22, 2011 at 3:09 PM, Mukhtar Ullah < mukhtar.ul...@informatik.uni-rostock.de> wrote: > Julio, > > You find this option after you choose "save as pdf" and confirm your > choice. > Later you will see a list of options one which is "PDF+LaTeX". > > Regards, > > Mukhtar > > > >
Re: LyX and Inkscape
I will have to try this later today at home, since here at work I only have a windows pc, and the windows version of 2.0.1 seems not to be available yet... Thanks anyway. Martin On 22.09.2011 15:06, Mukhtar Ullah wrote: Is there any way to tell LyX that the pdf-file exists and needs to be copied to the temp-folder, so latex can find it? Martin, I had a similar problem and have to thank the latest version LyX 2.0.1 for solving the issue. This problem occurs when your figure (both .pdf_tex and .pdf) in a directory (most commonly a subdirectory). To cut it short, let us assume that the two files are in a subdirectory ./figures (I would recommend to always use one such name for the directory for the reason to follow). Go to Tools->Preferences->Paths->TEXTINPUTS prefix: by default the current document directory is included (the dot .). Add the subdirectory path by appending ;./figures (the semicolon ; is to separate the two paths). I believe this should solve such issues in he future except in the case that your subdirectoery has a different name (e.g. ./img) in which case also append ;./img. Regards, Mukhtar -- Dipl.Inform. Martin Hoßbach Research Assistant 'Cognitive Computing & Medical Imaging' Fraunhofer-Institut für Graphische Datenverarbeitung IGD Fraunhoferstr. 5 | 64283 Darmstadt | Germany Tel +49 6151 155-585 | Fax +49 6151 155-480 martin.hossb...@igd.fraunhofer.de | www.igd.fraunhofer.de
Re: LyX and Inkscape
On Thu, Sep 22, 2011 at 3:35 PM, Martin Hoßbachwrote: > I will have to try this later today at home, since here at work I only have > a windows pc, and the windows version of 2.0.1 seems not to be available > yet... > It is, but using Uwe's unofficial installer [1]. Liviu [1] https://developer.berlios.de/project/showfiles.php?group_id=5117_id=18767 > Thanks anyway. > > Martin > > > On 22.09.2011 15:06, Mukhtar Ullah wrote: >>> >>> Is there any way to tell LyX that the pdf-file exists and needs to be >>> copied to the temp-folder, so latex can find it? >> >> Martin, >> I had a similar problem and have to thank the latest version LyX 2.0.1 for >> solving the issue. This problem occurs when your figure (both .pdf_tex and >> .pdf) >> in a directory (most commonly a subdirectory). To cut it short, let us >> assume >> that the two files are in a subdirectory ./figures (I would recommend to >> always >> use one such name for the directory for the reason to follow). Go to >> Tools->Preferences->Paths->TEXTINPUTS prefix: by default the current >> document >> directory is included (the dot .). Add the subdirectory path by appending >> ;./figures (the semicolon ; is to separate the two paths). I believe this >> should >> solve such issues in he future except in the case that your subdirectoery >> has a >> different name (e.g. ./img) in which case also append ;./img. >> >> Regards, >> >> Mukhtar >> >> >> >> > > > -- > Dipl.Inform. Martin Hoßbach > Research Assistant 'Cognitive Computing & Medical Imaging' > > Fraunhofer-Institut für Graphische Datenverarbeitung IGD > Fraunhoferstr. 5 | 64283 Darmstadt | Germany > Tel +49 6151 155-585 | Fax +49 6151 155-480 > martin.hossb...@igd.fraunhofer.de | www.igd.fraunhofer.de > -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: LyX and Inkscape
> It is, but using Uwe's unofficial installer [1]. > Liviu > > [1] https://developer.berlios.de/project/showfiles.php?group_id=5117_id=18767 > I am also on windows and using Uwe's unofficial installer. I don't see any difference in the two installers except that the unofficial installer changes your MiKTeX package repository path during installation which I change back because I have a local repository. Mukhtar
Re: LyX and Inkscape
On 22/09/2011 3:06 PM, Mukhtar Ullah wrote: Is there any way to tell LyX that the pdf-file exists and needs to be copied to the temp-folder, so latex can find it? Martin, I had a similar problem and have to thank the latest version LyX 2.0.1 for solving the issue. This problem occurs when your figure (both .pdf_tex and .pdf) in a directory (most commonly a subdirectory). To cut it short, let us assume that the two files are in a subdirectory ./figures (I would recommend to always use one such name for the directory for the reason to follow). Go to Tools->Preferences->Paths->TEXTINPUTS prefix: by default the current document directory is included (the dot .). Add the subdirectory path by appending ;./figures (the semicolon ; is to separate the two paths). I believe this should solve such issues in he future except in the case that your subdirectoery has a different name (e.g. ./img) in which case also append ;./img. Regards, Mukhtar So, besides setting the TEXINPUTS, how do you include the image in your document? Using \input or an external template? -- Julien
Re: LyX and Inkscape
Why wouldn't you just save as svg? Julio Rojas wrote: > I just tested it and it works like a charm with LyX. Beautiful results! :D > > Thanks to both of you. > - > Julio Rojas > jcredbe...@gmail.com > > > On Thu, Sep 22, 2011 at 3:09 PM, Mukhtar Ullah < > mukhtar.ul...@informatik.uni-rostock.de> wrote: > >> Julio, >> >> You find this option after you choose "save as pdf" and confirm your >> choice. >> Later you will see a list of options one which is "PDF+LaTeX". >> >> Regards, >> >> Mukhtar >> >> >> >>
Re: Lyx with Inkscape 0.48
I have. This was one of the major reasons I went to 1.6.7 from older versions. It's great not to have to export figures manually in multiple formats each time you make a change, and all that headache. Without more information, it's difficult to provide much help to you. Basically, you have to install Inkscape, make sure it's in the path somewhere (either in the system path or the path prefix under tools-preferences-paths) so LyX can run the image conversion commands, and reconfigure LyX. There is also some help for this on the wiki at: http://wiki.lyx.org/Tips/UseInkscapeSVGImages Jacob On Tue, Oct 26, 2010 at 9:05 AM, EJ wehrle.er...@gmail.com wrote: Has anyone gotten Lyx to work with figures exported from Inkscape using the PDF+LaTeX option? Thanks in advance
Re: Lyx with Inkscape 0.48
On Tue, Oct 26, 2010 at 9:05 AM, EJ wehrle.er...@gmail.com wrote: Has anyone gotten Lyx to work with figures exported from Inkscape using the PDF+LaTeX option? Thanks in advance On Tue, Oct 26, 2010 at 1:17 PM, Jacob Bishop bishop.ja...@gmail.comwrote: I have. This was one of the major reasons I went to 1.6.7 from older versions. It's great not to have to export figures manually in multiple formats each time you make a change, and all that headache. Without more information, it's difficult to provide much help to you. Basically, you have to install Inkscape, make sure it's in the path somewhere (either in the system path or the path prefix under tools-preferences-paths) so LyX can run the image conversion commands, and reconfigure LyX. There is also some help for this on the wiki at: http://wiki.lyx.org/Tips/UseInkscapeSVGImages Jacob So, after I sent the last message, I felt a little silly as I was realizing that you probably had Inkscape 0.47 working, but had trouble with inkscape 0.48. I gave only general Inkscape information in my last response. I have since gotten things to work with Inkscape 0.48 on my windows 7 machine. I have not tried as of yet on my linux box. I did have one hitch, and it had to do with the textext extension. To work around this issue, there are two things. You need to patch your inkscape python installation with something like this http://sourceforge.net/projects/timink/files/pygtk-2.16_for_inkscape-0.48.zip/downloadand you need to modify your textext.py file as per the instructions here: http://pascalschulthess.de/inkscape-and-textext-deprecation-warning/ As an additional reference, I got most of this information from here: http://bitbucket.org/pv/textext/issue/55/textext-using-inkscape048 After making those modifications, I had no trouble exporting Inkscape SVG graphics. I hope this helps. Jacob
Re: Lyx with Inkscape 0.48
around this issue, there are two things. You need to patch your inkscape python installation with something like this http://sourceforge.net/projects/timink/files/pygtk-2.16_for_inkscape-0.48.zip/download and you need to modify your textext.py file as per the instructions here: http://pascalschulthess.de/inkscape-and-textext-deprecation-warning/ As an additional reference, I got most of this information from here: http://bitbucket.org/pv/textext/issue/55/textext-using-inkscape048 After making those modifications, I had no trouble exporting Inkscape SVG graphics. However, I still have a problem to use textext extension in Inkscape 0.48 because of python version issue. So I switched back to use 0.47 until today in Windows. In Ubuntu I have no problems (of course need to modify textext.py) Regards Waluyo
Re: Lyx with Inkscape 0.48
I have. This was one of the major reasons I went to 1.6.7 from older versions. It's great not to have to export figures manually in multiple formats each time you make a change, and all that headache. Without more information, it's difficult to provide much help to you. Basically, you have to install Inkscape, make sure it's in the path somewhere (either in the system path or the path prefix under tools-preferences-paths) so LyX can run the image conversion commands, and reconfigure LyX. There is also some help for this on the wiki at: http://wiki.lyx.org/Tips/UseInkscapeSVGImages Jacob On Tue, Oct 26, 2010 at 9:05 AM, EJ wehrle.er...@gmail.com wrote: Has anyone gotten Lyx to work with figures exported from Inkscape using the PDF+LaTeX option? Thanks in advance
Re: Lyx with Inkscape 0.48
On Tue, Oct 26, 2010 at 9:05 AM, EJ wehrle.er...@gmail.com wrote: Has anyone gotten Lyx to work with figures exported from Inkscape using the PDF+LaTeX option? Thanks in advance On Tue, Oct 26, 2010 at 1:17 PM, Jacob Bishop bishop.ja...@gmail.comwrote: I have. This was one of the major reasons I went to 1.6.7 from older versions. It's great not to have to export figures manually in multiple formats each time you make a change, and all that headache. Without more information, it's difficult to provide much help to you. Basically, you have to install Inkscape, make sure it's in the path somewhere (either in the system path or the path prefix under tools-preferences-paths) so LyX can run the image conversion commands, and reconfigure LyX. There is also some help for this on the wiki at: http://wiki.lyx.org/Tips/UseInkscapeSVGImages Jacob So, after I sent the last message, I felt a little silly as I was realizing that you probably had Inkscape 0.47 working, but had trouble with inkscape 0.48. I gave only general Inkscape information in my last response. I have since gotten things to work with Inkscape 0.48 on my windows 7 machine. I have not tried as of yet on my linux box. I did have one hitch, and it had to do with the textext extension. To work around this issue, there are two things. You need to patch your inkscape python installation with something like this http://sourceforge.net/projects/timink/files/pygtk-2.16_for_inkscape-0.48.zip/downloadand you need to modify your textext.py file as per the instructions here: http://pascalschulthess.de/inkscape-and-textext-deprecation-warning/ As an additional reference, I got most of this information from here: http://bitbucket.org/pv/textext/issue/55/textext-using-inkscape048 After making those modifications, I had no trouble exporting Inkscape SVG graphics. I hope this helps. Jacob
Re: Lyx with Inkscape 0.48
around this issue, there are two things. You need to patch your inkscape python installation with something like this http://sourceforge.net/projects/timink/files/pygtk-2.16_for_inkscape-0.48.zip/download and you need to modify your textext.py file as per the instructions here: http://pascalschulthess.de/inkscape-and-textext-deprecation-warning/ As an additional reference, I got most of this information from here: http://bitbucket.org/pv/textext/issue/55/textext-using-inkscape048 After making those modifications, I had no trouble exporting Inkscape SVG graphics. However, I still have a problem to use textext extension in Inkscape 0.48 because of python version issue. So I switched back to use 0.47 until today in Windows. In Ubuntu I have no problems (of course need to modify textext.py) Regards Waluyo
Re: Lyx with Inkscape 0.48
I have. This was one of the major reasons I went to 1.6.7 from older versions. It's great not to have to export figures manually in multiple formats each time you make a change, and all that headache. Without more information, it's difficult to provide much help to you. Basically, you have to install Inkscape, make sure it's in the path somewhere (either in the system path or the path prefix under tools->preferences->paths) so LyX can run the image conversion commands, and reconfigure LyX. There is also some help for this on the wiki at: http://wiki.lyx.org/Tips/UseInkscapeSVGImages Jacob On Tue, Oct 26, 2010 at 9:05 AM, EJwrote: > > > Has anyone gotten Lyx to work with figures exported from Inkscape using the > PDF+LaTeX option? > > Thanks in advance > >
Re: Lyx with Inkscape 0.48
On Tue, Oct 26, 2010 at 9:05 AM, EJwrote: Has anyone gotten Lyx to work with figures exported from Inkscape using the PDF+LaTeX option? Thanks in advance On Tue, Oct 26, 2010 at 1:17 PM, Jacob Bishop wrote: I have. This was one of the major reasons I went to 1.6.7 from older versions. It's great not to have to export figures manually in multiple formats each time you make a change, and all that headache. Without more information, it's difficult to provide much help to you. Basically, you have to install Inkscape, make sure it's in the path somewhere (either in the system path or the path prefix under tools->preferences->paths) so LyX can run the image conversion commands, and reconfigure LyX. There is also some help for this on the wiki at: http://wiki.lyx.org/Tips/UseInkscapeSVGImages Jacob So, after I sent the last message, I felt a little silly as I was realizing that you probably had Inkscape 0.47 working, but had trouble with inkscape 0.48. I gave only general Inkscape information in my last response. I have since gotten things to work with Inkscape 0.48 on my windows 7 machine. I have not tried as of yet on my linux box. I did have one hitch, and it had to do with the textext extension. To work around this issue, there are two things. You need to patch your inkscape python installation with something like this http://sourceforge.net/projects/timink/files/pygtk-2.16_for_inkscape-0.48.zip/downloadand you need to modify your textext.py file as per the instructions here: http://pascalschulthess.de/inkscape-and-textext-deprecation-warning/ As an additional reference, I got most of this information from here: http://bitbucket.org/pv/textext/issue/55/textext-using-inkscape048 After making those modifications, I had no trouble exporting Inkscape SVG graphics. I hope this helps. Jacob
Re: Lyx with Inkscape 0.48
> around this issue, there are two things. You need to patch your inkscape > python installation with something like this > http://sourceforge.net/projects/timink/files/pygtk-2.16_for_inkscape-0.48.zip/download > and you need to modify your textext.py file as per the instructions here: > http://pascalschulthess.de/inkscape-and-textext-deprecation-warning/ > > As an additional reference, I got most of this information from here: > http://bitbucket.org/pv/textext/issue/55/textext-using-inkscape048 > > After making those modifications, I had no trouble exporting Inkscape SVG > graphics. > However, I still have a problem to use textext extension in Inkscape 0.48 because of python version issue. So I switched back to use 0.47 until today in Windows. In Ubuntu I have no problems (of course need to modify textext.py) Regards Waluyo