Re: psfrag
On Tue, 27 Mar 2012 09:24:46 + (UTC) Guenter Milde mi...@users.sf.net wrote: On 2012-03-26, Megnin, Christof (IMT) wrote: Hallo Lyx-Team, ich habe die Bilder in Lyx als eps eingefügt und möchte nun Versuchen die Schriften innerhalb der Bilder durch das Paket psfrag zu ändern. Wie kann ich das machen oder was muss ich als Latex schreiben, damit das funktioniert? Google for LyX and psfrag. Amongst many posts to this list, you will also find http://lachlan.rogers.name/2007/09/perfect-graph-integration-using-psfrag/ Günter, I don't remember seeing that particular post. But it seems to me that this might be a solution to a problem I have had from time to time with PDF files produced from LyX which have non-embedded fonts when I have done everything obvious to embed the fonts. The problem has turned out to be PDF figures in the LyX document, figures generated by some other program which has not embedded the fonts. Or perhaps pdflatex does not embed fonts embedded in included PDF files? Using pdftops to convert the figure to EPS, then using psfrag, might be a better solution to this problem than the solution I have used in the past: convert the PDF figure to a raster image. Les
Re: psfrag
On Tue, 27 Mar 2012 09:24:46 + (UTC) Guenter Milde mi...@users.sf.net wrote: On 2012-03-26, Megnin, Christof (IMT) wrote: Hallo Lyx-Team, ich habe die Bilder in Lyx als eps eingefügt und möchte nun Versuchen die Schriften innerhalb der Bilder durch das Paket psfrag zu ändern. Wie kann ich das machen oder was muss ich als Latex schreiben, damit das funktioniert? Google for LyX and psfrag. Amongst many posts to this list, you will also find http://lachlan.rogers.name/2007/09/perfect-graph-integration-using-psfrag/ Günter, I don't remember seeing that particular post. But it seems to me that this might be a solution to a problem I have had from time to time with PDF files produced from LyX which have non-embedded fonts when I have done everything obvious to embed the fonts. The problem has turned out to be PDF figures in the LyX document, figures generated by some other program which has not embedded the fonts. Or perhaps pdflatex does not embed fonts embedded in included PDF files? Using pdftops to convert the figure to EPS, then using psfrag, might be a better solution to this problem than the solution I have used in the past: convert the PDF figure to a raster image. Les
Re: psfrag
On Tue, 27 Mar 2012 09:24:46 + (UTC) Guenter Milde <mi...@users.sf.net> wrote: > On 2012-03-26, Megnin, Christof (IMT) wrote: > > Hallo Lyx-Team, > > > ich habe die Bilder in Lyx als eps eingefügt und möchte nun > > Versuchen die Schriften innerhalb der Bilder durch das Paket psfrag > > zu ändern. > > > Wie kann ich das machen oder was muss ich als Latex schreiben, > > damit das funktioniert? > > Google for LyX and psfrag. Amongst many posts to this list, you will > also find > > http://lachlan.rogers.name/2007/09/perfect-graph-integration-using-psfrag/ > Günter, I don't remember seeing that particular post. But it seems to me that this might be a solution to a problem I have had from time to time with PDF files produced from LyX which have non-embedded fonts when I have done everything obvious to embed the fonts. The problem has turned out to be PDF figures in the LyX document, figures generated by some other program which has not embedded the fonts. Or perhaps pdflatex does not embed fonts embedded in included PDF files? Using pdftops to convert the figure to EPS, then using psfrag, might be a better solution to this problem than the solution I have used in the past: convert the PDF figure to a raster image. Les
psfrag
Hallo Lyx-Team, ich habe die Bilder in Lyx als eps eingefügt und möchte nun Versuchen die Schriften innerhalb der Bilder durch das Paket psfrag zu ändern. Wie kann ich das machen oder was muss ich als Latex schreiben, damit das funktioniert? Gruß Christof
psfrag
Hallo Lyx-Team, ich habe die Bilder in Lyx als eps eingefügt und möchte nun Versuchen die Schriften innerhalb der Bilder durch das Paket psfrag zu ändern. Wie kann ich das machen oder was muss ich als Latex schreiben, damit das funktioniert? Gruß Christof
psfrag
Hallo Lyx-Team, ich habe die Bilder in Lyx als eps eingefügt und möchte nun Versuchen die Schriften innerhalb der Bilder durch das Paket psfrag zu ändern. Wie kann ich das machen oder was muss ich als Latex schreiben, damit das funktioniert? Gruß Christof
PDFLatex and psfrag
Hi, I am using the psfrag package to modify the text included in graphics. When I use pdflatex from Lyx (2.0 beta 5), the psfrag modifications are not take into account, while when I use postscript there are no problem. When I use ps2pdf, I have another problem because Lyx (in fact latex) says that it cannot determine the size of the graphic. Any idea ? Thanks. -- Dr. Ir. Pascal Francq BELGIUM signature.asc Description: This is a digitally signed message part.
Re: PDFLatex and psfrag
On 12/08/2010 8:17 AM, Pascal Francq wrote: Hi, I am using the psfrag package to modify the text included in graphics. When I use pdflatex from Lyx (2.0 beta 5), the psfrag modifications are not take into account, while when I use postscript there are no problem. When I use ps2pdf, I have another problem because Lyx (in fact latex) says that it cannot determine the size of the graphic. Any idea ? Thanks. The psfrag package does not support pdflatex (or, pdflatex does not support psfrag). Unfortunately. You say when I use postscript there are no problem. So can you not export your document to a .ps file and run ps2pdf from the command line? The error message there might be more useful. -- Julien
PDFLatex and psfrag
Hi, I am using the psfrag package to modify the text included in graphics. When I use pdflatex from Lyx (2.0 beta 5), the psfrag modifications are not take into account, while when I use postscript there are no problem. When I use ps2pdf, I have another problem because Lyx (in fact latex) says that it cannot determine the size of the graphic. Any idea ? Thanks. -- Dr. Ir. Pascal Francq BELGIUM signature.asc Description: This is a digitally signed message part.
Re: PDFLatex and psfrag
On 12/08/2010 8:17 AM, Pascal Francq wrote: Hi, I am using the psfrag package to modify the text included in graphics. When I use pdflatex from Lyx (2.0 beta 5), the psfrag modifications are not take into account, while when I use postscript there are no problem. When I use ps2pdf, I have another problem because Lyx (in fact latex) says that it cannot determine the size of the graphic. Any idea ? Thanks. The psfrag package does not support pdflatex (or, pdflatex does not support psfrag). Unfortunately. You say when I use postscript there are no problem. So can you not export your document to a .ps file and run ps2pdf from the command line? The error message there might be more useful. -- Julien
PDFLatex and psfrag
Hi, I am using the psfrag package to modify the text included in graphics. When I use pdflatex from Lyx (2.0 beta 5), the psfrag modifications are not take into account, while when I use postscript there are no problem. When I use ps2pdf, I have another problem because Lyx (in fact latex) says that it "cannot determine the size of the graphic". Any idea ? Thanks. -- Dr. Ir. Pascal Francq BELGIUM signature.asc Description: This is a digitally signed message part.
Re: PDFLatex and psfrag
On 12/08/2010 8:17 AM, Pascal Francq wrote: Hi, I am using the psfrag package to modify the text included in graphics. When I use pdflatex from Lyx (2.0 beta 5), the psfrag modifications are not take into account, while when I use postscript there are no problem. When I use ps2pdf, I have another problem because Lyx (in fact latex) says that it "cannot determine the size of the graphic". Any idea ? Thanks. The psfrag package does not support pdflatex (or, pdflatex does not support psfrag). Unfortunately. You say "when I use postscript there are no problem". So can you not export your document to a .ps file and run ps2pdf from the command line? The error message there might be more useful. -- Julien
Re: psfrag does nothing when generating a pdf-file
On 2009-02-14, Konrad Hofbauer wrote: Thomas Engels wrote: I want to replace strings in *.eps files with LaTeX code, so I finally found psfrag, downloaded it and its working fine - but only when I generate a DVI file. (inserted ERT in the figure and \usepackage{psfrag} to the preamble) Hint: never insert the ERT in a sub-figure (you'll get LaTeX errors). (IMO, its a LyX bug that it allows text or ERT inside a sub-figure.) ... You cannot use psfrag when working with pdflatex. However, it should work when using dvi ps2pdf. (The PDF (ps2pdf) menu entry in View and FileExport.) This works fine for me. I have not tried this myself, but it should also work with pdflatex using http://www.ctan.org/tex-archive/help/Catalogue/entries/pst-pdf.html http://www.ctan.org/tex-archive/help/Catalogue/entries/auto-pst-pdf.html If you get it to work, it would be great if you could document this in the wiki. I would like to see LyX support for pst-pdf (no need for auto-pst-pdf, as LyX can handle the automatisation). If this is a common request, we should file an enhancement report on bugzilla. Günter
Re: psfrag does nothing when generating a pdf-file
On 2009-02-14, Konrad Hofbauer wrote: Thomas Engels wrote: I want to replace strings in *.eps files with LaTeX code, so I finally found psfrag, downloaded it and its working fine - but only when I generate a DVI file. (inserted ERT in the figure and \usepackage{psfrag} to the preamble) Hint: never insert the ERT in a sub-figure (you'll get LaTeX errors). (IMO, its a LyX bug that it allows text or ERT inside a sub-figure.) ... You cannot use psfrag when working with pdflatex. However, it should work when using dvi ps2pdf. (The PDF (ps2pdf) menu entry in View and FileExport.) This works fine for me. I have not tried this myself, but it should also work with pdflatex using http://www.ctan.org/tex-archive/help/Catalogue/entries/pst-pdf.html http://www.ctan.org/tex-archive/help/Catalogue/entries/auto-pst-pdf.html If you get it to work, it would be great if you could document this in the wiki. I would like to see LyX support for pst-pdf (no need for auto-pst-pdf, as LyX can handle the automatisation). If this is a common request, we should file an enhancement report on bugzilla. Günter
Re: psfrag does nothing when generating a pdf-file
On 2009-02-14, Konrad Hofbauer wrote: > Thomas Engels wrote: >> I want to replace strings in *.eps files with LaTeX code, so I finally >> found psfrag, downloaded it and its working fine - but only when I >> generate a DVI file. (inserted ERT in the figure and \usepackage{psfrag} >> to the preamble) Hint: never insert the ERT in a sub-figure (you'll get LaTeX errors). (IMO, its a LyX bug that it allows text or ERT inside a sub-figure.) ... > You cannot use psfrag when working with pdflatex. However, it should > work when using dvi & ps2pdf. (The "PDF (ps2pdf)" menu entry in View and File>Export.) This works fine for me. > I have not tried this myself, but it should also work with pdflatex using ><http://www.ctan.org/tex-archive/help/Catalogue/entries/pst-pdf.html> ><http://www.ctan.org/tex-archive/help/Catalogue/entries/auto-pst-pdf.html> > If you get it to work, it would be great if you could document this in > the wiki. I would like to see LyX support for pst-pdf (no need for auto-pst-pdf, as LyX can handle the automatisation). If this is a common request, we should file an enhancement report on bugzilla. Günter
psfrag does nothing when generating a pdf-file
Hi all, I want to replace strings in *.eps files with LaTeX code, so I finally found psfrag, downloaded it and its working fine - but only when I generate a DVI file. (inserted ERT in the figure and \usepackage{psfrag} to the preamble) I need a pdf, but when I run pdflatex, there is no error or warning, but no result. It just happens nothing, text strings in eps stay the way they were. dvipdfm and ps2pdf buttons produce LaTeX formula at the side of the graphic, but still strings are not replaced. I've been searching the maillist archive, but did not find a solution for my special problem. Can anyone help me? I use latest LyX and MiKTex versions on windows XP. Greeting from Berlin, Thomas Engels
Re: psfrag does nothing when generating a pdf-file
Thomas Engels schreef: Hi all, I want to replace strings in *.eps files with LaTeX code, so I finally found psfrag, downloaded it and its working fine - but only when I generate a DVI file. (inserted ERT in the figure and \usepackage{psfrag} to the preamble) I need a pdf, but when I run pdflatex, there is no error or warning, but no result. It just happens nothing, text strings in eps stay the way they were. dvipdfm and ps2pdf buttons produce LaTeX formula at the side of the graphic, but still strings are not replaced. I've been searching the maillist archive, but did not find a solution for my special problem. Can anyone help me? I use latest LyX and MiKTex versions on windows XP. Greeting from Berlin, Thomas Engels You cannot use pdflatex for this. Try ps2pdf instead. Vincent
Re: psfrag does nothing when generating a pdf-file
Thomas Engels wrote: I want to replace strings in *.eps files with LaTeX code, so I finally found psfrag, downloaded it and its working fine - but only when I generate a DVI file. (inserted ERT in the figure and \usepackage{psfrag} to the preamble) I need a pdf, but when I run pdflatex, there is no error or warning, but no result. It just happens nothing, text strings in eps stay the way they were. Can anyone help me? You cannot use psfrag when working with pdflatex. However, it should work when using dvi ps2pdf. Get it to work first outside LyX with plain latex, then try to do the same within LyX. I have not tried this myself, but it should also work with pdflatex using http://www.ctan.org/tex-archive/help/Catalogue/entries/pst-pdf.html http://www.ctan.org/tex-archive/help/Catalogue/entries/auto-pst-pdf.html If you get it to work, it would be great if you could document this in the wiki. /Konrad
psfrag does nothing when generating a pdf-file
Hi all, I want to replace strings in *.eps files with LaTeX code, so I finally found psfrag, downloaded it and its working fine - but only when I generate a DVI file. (inserted ERT in the figure and \usepackage{psfrag} to the preamble) I need a pdf, but when I run pdflatex, there is no error or warning, but no result. It just happens nothing, text strings in eps stay the way they were. dvipdfm and ps2pdf buttons produce LaTeX formula at the side of the graphic, but still strings are not replaced. I've been searching the maillist archive, but did not find a solution for my special problem. Can anyone help me? I use latest LyX and MiKTex versions on windows XP. Greeting from Berlin, Thomas Engels
Re: psfrag does nothing when generating a pdf-file
Thomas Engels schreef: Hi all, I want to replace strings in *.eps files with LaTeX code, so I finally found psfrag, downloaded it and its working fine - but only when I generate a DVI file. (inserted ERT in the figure and \usepackage{psfrag} to the preamble) I need a pdf, but when I run pdflatex, there is no error or warning, but no result. It just happens nothing, text strings in eps stay the way they were. dvipdfm and ps2pdf buttons produce LaTeX formula at the side of the graphic, but still strings are not replaced. I've been searching the maillist archive, but did not find a solution for my special problem. Can anyone help me? I use latest LyX and MiKTex versions on windows XP. Greeting from Berlin, Thomas Engels You cannot use pdflatex for this. Try ps2pdf instead. Vincent
Re: psfrag does nothing when generating a pdf-file
Thomas Engels wrote: I want to replace strings in *.eps files with LaTeX code, so I finally found psfrag, downloaded it and its working fine - but only when I generate a DVI file. (inserted ERT in the figure and \usepackage{psfrag} to the preamble) I need a pdf, but when I run pdflatex, there is no error or warning, but no result. It just happens nothing, text strings in eps stay the way they were. Can anyone help me? You cannot use psfrag when working with pdflatex. However, it should work when using dvi ps2pdf. Get it to work first outside LyX with plain latex, then try to do the same within LyX. I have not tried this myself, but it should also work with pdflatex using http://www.ctan.org/tex-archive/help/Catalogue/entries/pst-pdf.html http://www.ctan.org/tex-archive/help/Catalogue/entries/auto-pst-pdf.html If you get it to work, it would be great if you could document this in the wiki. /Konrad
psfrag does nothing when generating a pdf-file
Hi all, I want to replace strings in *.eps files with LaTeX code, so I finally found psfrag, downloaded it and its working fine - but only when I generate a DVI file. (inserted ERT in the figure and \usepackage{psfrag} to the preamble) I need a pdf, but when I run pdflatex, there is no error or warning, but no result. It just happens nothing, text strings in eps stay the way they were. dvipdfm and ps2pdf buttons produce LaTeX formula at the side of the graphic, but still strings are not replaced. I've been searching the maillist archive, but did not find a solution for my special problem. Can anyone help me? I use latest LyX and MiKTex versions on windows XP. Greeting from Berlin, Thomas Engels
Re: psfrag does nothing when generating a pdf-file
Thomas Engels schreef: Hi all, I want to replace strings in *.eps files with LaTeX code, so I finally found psfrag, downloaded it and its working fine - but only when I generate a DVI file. (inserted ERT in the figure and \usepackage{psfrag} to the preamble) I need a pdf, but when I run pdflatex, there is no error or warning, but no result. It just happens nothing, text strings in eps stay the way they were. dvipdfm and ps2pdf buttons produce LaTeX formula at the side of the graphic, but still strings are not replaced. I've been searching the maillist archive, but did not find a solution for my special problem. Can anyone help me? I use latest LyX and MiKTex versions on windows XP. Greeting from Berlin, Thomas Engels You cannot use pdflatex for this. Try ps2pdf instead. Vincent
Re: psfrag does nothing when generating a pdf-file
Thomas Engels wrote: I want to replace strings in *.eps files with LaTeX code, so I finally found psfrag, downloaded it and its working fine - but only when I generate a DVI file. (inserted ERT in the figure and \usepackage{psfrag} to the preamble) I need a pdf, but when I run pdflatex, there is no error or warning, but no result. It just happens nothing, text strings in eps stay the way they were. > Can anyone help me? You cannot use psfrag when working with pdflatex. However, it should work when using dvi & ps2pdf. Get it to work first outside LyX with plain latex, then try to do the same within LyX. I have not tried this myself, but it should also work with pdflatex using <http://www.ctan.org/tex-archive/help/Catalogue/entries/pst-pdf.html> <http://www.ctan.org/tex-archive/help/Catalogue/entries/auto-pst-pdf.html> If you get it to work, it would be great if you could document this in the wiki. /Konrad
Re: Problem with psfrag
On 15.02.08, Susanne Gütter wrote: When I use it, the following Latex error occurs Package inputenc Error: Keyboard character used is undefined ...fiken_Add_Rauschen_Loglog_loglog-3107-01} You need to provide a definition with \DeclareInputText or \DeclareInputMath before using this key. The code before the graphic is included is: \begin_inset ERT status Open \layout Standard \backslash psfrag{a_c/D} { \begin_inset Formula $\frac{a_{c}}{D}$ \end_inset } \end_inset Whats wrong? Hard to say, as I do not see any problematic character in the ERT. Some ideas for finding the problem: * Mark the psfrag ERT inset and choose InsertNoteNote to make a (yellow) LyX note out of it. Does the error vanish? Alternatively, copy and paste the graphic to a new document and test this. * Export to LaTeX and run latex on it from the shell - the error output is sometimes more informative. * Have a look at the encodings declaration under DocumentSettingsLanguage Does this match also included text documents (e.g. the bibliography database)? * Send a minimal example showing the problem to the list. GM
Re: Problem with psfrag
On 15.02.08, Susanne Gütter wrote: When I use it, the following Latex error occurs Package inputenc Error: Keyboard character used is undefined ...fiken_Add_Rauschen_Loglog_loglog-3107-01} You need to provide a definition with \DeclareInputText or \DeclareInputMath before using this key. The code before the graphic is included is: \begin_inset ERT status Open \layout Standard \backslash psfrag{a_c/D} { \begin_inset Formula $\frac{a_{c}}{D}$ \end_inset } \end_inset Whats wrong? Hard to say, as I do not see any problematic character in the ERT. Some ideas for finding the problem: * Mark the psfrag ERT inset and choose InsertNoteNote to make a (yellow) LyX note out of it. Does the error vanish? Alternatively, copy and paste the graphic to a new document and test this. * Export to LaTeX and run latex on it from the shell - the error output is sometimes more informative. * Have a look at the encodings declaration under DocumentSettingsLanguage Does this match also included text documents (e.g. the bibliography database)? * Send a minimal example showing the problem to the list. GM
Re: Problem with psfrag
On 15.02.08, Susanne Gütter wrote: > When I use it, the following Latex error occurs > "Package inputenc Error: Keyboard character used is undefined > ...fiken_Add_Rauschen_Loglog_loglog-3107-01} > You need to provide a definition with \DeclareInputText > or \DeclareInputMath before using this key." > The code before the graphic is included is: > \begin_inset ERT > status Open > \layout Standard > \backslash > psfrag{a_c/D} > { > \begin_inset Formula > $\frac{a_{c}}{D}$ > \end_inset > } > \end_inset > Whats wrong? Hard to say, as I do not see any problematic character in the ERT. Some ideas for finding the problem: * Mark the psfrag ERT inset and choose Insert>Note>Note to make a (yellow) LyX note out of it. Does the error vanish? Alternatively, copy and paste the graphic to a new document and test this. * Export to LaTeX and run latex on it from the shell - the error output is sometimes more informative. * Have a look at the encodings declaration under Document>Settings>Language Does this match also included text documents (e.g. the bibliography database)? * Send a minimal example showing the problem to the list. GM
Problem with psfrag
Hi all, for my figure I want use the package psfrag. When I use it, the following Latex error occurs Package inputenc Error: Keyboard character used is undefined ...fiken_Add_Rauschen_Loglog_loglog-3107-01} You need to provide a definition with \DeclareInputText or \DeclareInputMath before using this key. The code before the graphic is included is: \begin_inset ERT status Open \layout Standard \backslash psfrag{a_c/D} { \begin_inset Formula $\frac{a_{c}}{D}$ \end_inset } \end_inset Whats wrong? Regards Susanne
Problem with psfrag
Hi all, for my figure I want use the package psfrag. When I use it, the following Latex error occurs Package inputenc Error: Keyboard character used is undefined ...fiken_Add_Rauschen_Loglog_loglog-3107-01} You need to provide a definition with \DeclareInputText or \DeclareInputMath before using this key. The code before the graphic is included is: \begin_inset ERT status Open \layout Standard \backslash psfrag{a_c/D} { \begin_inset Formula $\frac{a_{c}}{D}$ \end_inset } \end_inset Whats wrong? Regards Susanne
Problem with psfrag
Hi all, for my figure I want use the package psfrag. When I use it, the following Latex error occurs "Package inputenc Error: Keyboard character used is undefined ...fiken_Add_Rauschen_Loglog_loglog-3107-01} You need to provide a definition with \DeclareInputText or \DeclareInputMath before using this key." The code before the graphic is included is: \begin_inset ERT status Open \layout Standard \backslash psfrag{a_c/D} { \begin_inset Formula $\frac{a_{c}}{D}$ \end_inset } \end_inset Whats wrong? Regards Susanne
Re: LyX, SVG and PSFrag: case report [UPDATED]
On Monday 05 March 2007 18:30:13 Georg Baum wrote: This looks like a bug in LyX. You should not need to load any package in the preamble manually. Can you please file this at http://bugzilla.lyx.org, together with a minimal example .lyx file (with .svg file), and a screenshot of the correct and incorrect preview? OK. I'll try to do it today or tomorrow. 3. A minor but annoying issue is that, while the PS documentis OK, when using Veiw-PDF, the figures look very degraded (and no PSFrag, of course). I am still looking into this. No need to look further. psfrags does not work with pdflatex, only with latex, so you need to use dvi2ps or dvipdfm to produce your pdf. This is documented. Yes, I found out about that. However, even converting PS to PDF gives slightly worse onscreen graphics. Not much, but enough to be annoying. Why not add your information to the wiki (especially the bit about the text-to-path switch)? Good idea. I've never edited a wiki, but this looks like a good reason to begin. I'll do it as soon as I can. Thanks everybody for their comments! - Urtzi - -- Urtzi Jauregi Fakulteta za Matematiko in Fiziko, Univerza v Ljubljani Jadranska 19, Si-1000 Ljubljana Slovenija Tel: ++386 01 540 13 53 e-mail: [EMAIL PROTECTED]
Re: LyX, SVG and PSFrag: case report [UPDATED]
On Monday 05 March 2007 18:30:13 Georg Baum wrote: This looks like a bug in LyX. You should not need to load any package in the preamble manually. Can you please file this at http://bugzilla.lyx.org, together with a minimal example .lyx file (with .svg file), and a screenshot of the correct and incorrect preview? OK. I'll try to do it today or tomorrow. 3. A minor but annoying issue is that, while the PS documentis OK, when using Veiw-PDF, the figures look very degraded (and no PSFrag, of course). I am still looking into this. No need to look further. psfrags does not work with pdflatex, only with latex, so you need to use dvi2ps or dvipdfm to produce your pdf. This is documented. Yes, I found out about that. However, even converting PS to PDF gives slightly worse onscreen graphics. Not much, but enough to be annoying. Why not add your information to the wiki (especially the bit about the text-to-path switch)? Good idea. I've never edited a wiki, but this looks like a good reason to begin. I'll do it as soon as I can. Thanks everybody for their comments! - Urtzi - -- Urtzi Jauregi Fakulteta za Matematiko in Fiziko, Univerza v Ljubljani Jadranska 19, Si-1000 Ljubljana Slovenija Tel: ++386 01 540 13 53 e-mail: [EMAIL PROTECTED]
Re: LyX, SVG and PSFrag: case report [UPDATED]
On Monday 05 March 2007 18:30:13 Georg Baum wrote: > This looks like a bug in LyX. You should not need to load any package in > the preamble manually. Can you please file this at http://bugzilla.lyx.org, > together with a minimal example .lyx file (with .svg file), and a > screenshot of the correct and incorrect preview? OK. I'll try to do it today or tomorrow. > > 3. A minor but annoying issue is that, while the PS documentis OK, when > > using Veiw->PDF, the figures look very degraded (and no PSFrag, of > > course). I am still looking into this. > No need to look further. psfrags does not work with pdflatex, only with > latex, so you need to use dvi2ps or dvipdfm to produce your pdf. This is > documented. Yes, I found out about that. However, even converting PS to PDF gives slightly worse onscreen graphics. Not much, but enough to be annoying. > Why not add your information to the wiki (especially the bit about the > text-to-path switch)? Good idea. I've never edited a wiki, but this looks like a good reason to begin. I'll do it as soon as I can. Thanks everybody for their comments! - Urtzi - -- Urtzi Jauregi Fakulteta za Matematiko in Fiziko, Univerza v Ljubljani Jadranska 19, Si-1000 Ljubljana Slovenija Tel: ++386 01 540 13 53 e-mail: [EMAIL PROTECTED]
Re: How to use PSfrag within LyX?
On Sunday 04 March 2007 15:04:31 Georg Baum wrote: Am Freitag, 2. März 2007 18:13 schrieb Urtzi Jauregi: Where exacty do you insert the ERT? I've tried several places, but without success. Directly before the figure you put the ERT in an own paragraph with standard alignment (not centered - that will not work). If the figure is not in a float or not in a minipage it might be a good idea to enclose the psfrag commands and the figure in a psfrags environment (also in ERT). Strange. I've tried that in the past without success. Now it's working perfectly. Thank you, Georg! - Urtzi - -- Urtzi Jauregi Fakulteta za Matematiko in Fiziko, Univerza v Ljubljani Jadranska 19, Si-1000 Ljubljana Slovenija Tel: ++386 01 540 13 53 e-mail: [EMAIL PROTECTED]
LyX, SVG and PSFrag: case report
Hi everybody! I want to report the results of my experiments in combining SVG figures and the PSFrag package in LyX, hoping that they will be useful to somebody. The point was to draw a SVG figure in, say, Inkscape and insert it directly into LyX without converting it to EPS first, to skip a step in producing a document while having an instant preview within LyX. I also wanted to be able to select View - PostScript and have LyX automatically produce the EPS file from the SVG and include any LaTeX code I wanted via PSFrag. I followed the advice in these two pages: [1] http://wiki.lyx.org/Tips/UseInkscapeSVGImages [2] http://www.ma.utexas.edu/users/stirling/computergeek/latexgraphics.html Result: It works. Kind of. I managed to get LyX to accept SVG figures and SVG to EPS conversion without any problem by following the info in [1]. Everything works as advertised (although the PDF conversion gives ugly figures sometimes). The problem is when I want to use PSFrag. I found three problems: 1. The info in [1] is wrong; to convert SVG to EPS, you have to disable the convert text to path function in Inkscape or your text will be exported as a picture. Do *not* use the--export-text-to-path switch with Inkscape. 2. Automatic inclusion of LaTeX code via PSFrag fails, and I don't know why. Inkscape converts SVG to EPS correctly; if you insert manually these EPS files in your LyX document, PSFrag works perfectly. The problem is when you insert the original SVG in LyX and expect it to handle the conversion by itself (which is the whole point of doing all this!); in this case, the final document shows the text anchors instead of the LaTeX code whatever I do. I am still looking into this. 3. A minor but annoying issue is that, while the PS documentis OK, when using Veiw-PDF, the figures look very degraded (and no PSFrag, of course). I am still looking into this. Hope all this is useful to somebody. Has anybody tried to do this? Did it work? I am specially annoyed at problem (2), because I have the feeling that it'd work with just a little tweak somewhere. Am I missing something, or is there a problem with the interaction between LyX, PSFrag and Inkscape? Yours, - Urtzi - -- If you would know the value of money, go try to borrow some. -- Ben Franklin
LyX, SVG and PSFrag: case report [UPDATED]
Hi everybody! [I sent this message about an hour ago, but it looks like it got lost. In the meantime, I solved one of the problems I had, so I send an updated version of my original message hoping that it will be useful to somebody else]. I want to report the results of my experiments in combining SVG figures and the PSFrag package in LyX, hoping that they will be useful to somebody. The point was to draw a SVG figure in, say, Inkscape and insert it directly into LyX without converting it to EPS first, thus I skip a step in producing a document while having an instant preview within LyX. I also wanted to be able to select View - PostScript and have LyX automatically produce the EPS file from the SVG and include any LaTeX code I wanted via PSFrag. I followed the advice in these two pages: [1] http://wiki.lyx.org/Tips/UseInkscapeSVGImages [2] http://www.ma.utexas.edu/users/stirling/computergeek/latexgraphics.html Result: It works. Kind of. [UPDATE: It works perfectly, with just a minor issue. See below] I managed to get LyX to accept SVG figures and SVG to EPS conversion without any problem by following the info in [1]. Everything works as advertised (although the PDF conversion gives ugly figures sometimes). The problem is when I want to use PSFrag. I found three problems: 1. The info in [1] is wrong; to convert SVG to EPS, you have to disable the convert text to path function in Inkscape or your text will be exported as a picture, as explained in [2]. Do *not* use the--export-text-to-path switch with Inkscape. 2. Automatic inclusion of LaTeX code via PSFrag fails, and I don't know why. Inkscape converts SVG to EPS correctly; if you insert manually these EPS files in your LyX document, PSFrag works perfectly. The problem is when you insert the original SVG in LyX and expect it to handle the conversion by itself (which is the whole point of doing all this!); in this case, the final document shows the text anchors instead of the LaTeX code whatever I do. I am still looking into this. [UPDATE: I solved it! The trick is to declare the packages graphicx and color in your preamble, *even if you don't use any color at all*. Just declare them and wham! SVG previews + autoEPS + PSFrag. Took me a while to solve this one!] 3. A minor but annoying issue is that, while the PS documentis OK, when using Veiw-PDF, the figures look very degraded (and no PSFrag, of course). I am still looking into this. [UPDATE: Still doesn't work. The only PDF export that works roughly OK is ps2pdf, and the images still look worse on screen than on the PS. I haven't tried to print them though, so maybe the printed version will look better] Hope all this is useful to somebody. Has anybody tried to do this? Did it work? Yours, - Urtzi - -- If you would know the value of money, go try to borrow some. -- Ben Franklin --- -- Urtzi Jauregi Fakulteta za Matematiko in Fiziko, Univerza v Ljubljani Jadranska 19, Si-1000 Ljubljana Slovenija Tel: ++386 01 540 13 53 e-mail: [EMAIL PROTECTED]
Re: LyX, SVG and PSFrag: case report [UPDATED]
On Monday 05 March 2007 13:16, Urtzi Jauregi wrote: Hi everybody! [I sent this message about an hour ago, but it looks like it got lost. In the meantime, I solved one of the problems I had, so I send an updated version of my original message hoping that it will be useful to somebody else]. I want to report the results of my experiments in combining SVG figures and the PSFrag package in LyX, hoping that they will be useful to somebody. I had noticed that the fonts in an included .svg are slightly different in the finished PDF and the .svg in Inkscape but I haven't tried to solve the problem yet. I take it that this is what PSFrag is for? I didn't bother with the instructions in the wiki as found that I was able to get it working without the script. I am able to create images in Inkscape and include them directly in LyX. The image in the PDF is a vector image as it should be. These are my converter strings: SVGEPS: inkscape -z --file=$$i --export-eps=$$o SVGPNG inkscape -z --file=$$i --export-png=$$o SVGpostscript inkscape -z --file=$$i --export-ep=$$o -- http://www.unmusic.co.uk - about me, music, geek sitcom etc. http://www.unmusic.co.uk/amhs/ - alt.music.home-studio
Re: LyX, SVG and PSFrag: case report [UPDATED]
killermike wrote: I had noticed that the fonts in an included .svg are slightly different in the finished PDF and the .svg in Inkscape but I haven't tried to solve the problem yet. I take it that this is what PSFrag is for? No. psfrag enables you to put formulas in your figure, and it makes it possible to use the same font in the figure as in the main text. If the font in the figure in the final pdf is different than in inkscape, and you did not use psfrags, then it is a bug in inkscape. Georg
Re: LyX, SVG and PSFrag: case report [UPDATED]
Urtzi Jauregi wrote: 1. The info in [1] is wrong; to convert SVG to EPS, you have to disable the convert text to path function in Inkscape or your text will be exported as a picture, as explained in [2]. Do *not* use the--export-text-to-path switch with Inkscape. I don't know why this instruction is in the wiki. 2. Automatic inclusion of LaTeX code via PSFrag fails, and I don't know why. Inkscape converts SVG to EPS correctly; if you insert manually these EPS files in your LyX document, PSFrag works perfectly. The problem is when you insert the original SVG in LyX and expect it to handle the conversion by itself (which is the whole point of doing all this!); in this case, the final document shows the text anchors instead of the LaTeX code whatever I do. I am still looking into this. [UPDATE: I solved it! The trick is to declare the packages graphicx and color in your preamble, *even if you don't use any color at all*. Just declare them and wham! SVG previews + autoEPS + PSFrag. Took me a while to solve this one!] This looks like a bug in LyX. You should not need to load any package in the preamble manually. Can you please file this at http://bugzilla.lyx.org, together with a minimal example .lyx file (with .svg file), and a screenshot of the correct and incorrect preview? 3. A minor but annoying issue is that, while the PS documentis OK, when using Veiw-PDF, the figures look very degraded (and no PSFrag, of course). I am still looking into this. [UPDATE: Still doesn't work. The only PDF export that works roughly OK is ps2pdf, and the images still look worse on screen than on the PS. I haven't tried to print them though, so maybe the printed version will look better] No need to look further. psfrags does not work with pdflatex, only with latex, so you need to use dvi2ps or dvipdfm to produce your pdf. This is documented. Hope all this is useful to somebody. Has anybody tried to do this? Did it work? Why not add your information to the wiki (especially the bit about the text-to-path switch)? Georg
Re: LyX, SVG and PSFrag: case report [UPDATED]
On Monday 05 March 2007 17:25, Georg Baum wrote: killermike wrote: I had noticed that the fonts in an included .svg are slightly different in the finished PDF and the .svg in Inkscape but I haven't tried to solve the problem yet. I take it that this is what PSFrag is for? No. psfrag enables you to put formulas in your figure, and it makes it possible to use the same font in the figure as in the main text. If the font in the figure in the final pdf is different than in inkscape, and you did not use psfrags, then it is a bug in inkscape. Thanks. I googled but it's one of those subjects where google isn't very forthcoming. -- http://www.unmusic.co.uk - about me, music, geek sitcom etc. http://www.unmusic.co.uk/amhs/ - alt.music.home-studio
Re: How to use PSfrag within LyX?
On Sunday 04 March 2007 15:04:31 Georg Baum wrote: Am Freitag, 2. März 2007 18:13 schrieb Urtzi Jauregi: Where exacty do you insert the ERT? I've tried several places, but without success. Directly before the figure you put the ERT in an own paragraph with standard alignment (not centered - that will not work). If the figure is not in a float or not in a minipage it might be a good idea to enclose the psfrag commands and the figure in a psfrags environment (also in ERT). Strange. I've tried that in the past without success. Now it's working perfectly. Thank you, Georg! - Urtzi - -- Urtzi Jauregi Fakulteta za Matematiko in Fiziko, Univerza v Ljubljani Jadranska 19, Si-1000 Ljubljana Slovenija Tel: ++386 01 540 13 53 e-mail: [EMAIL PROTECTED]
LyX, SVG and PSFrag: case report
Hi everybody! I want to report the results of my experiments in combining SVG figures and the PSFrag package in LyX, hoping that they will be useful to somebody. The point was to draw a SVG figure in, say, Inkscape and insert it directly into LyX without converting it to EPS first, to skip a step in producing a document while having an instant preview within LyX. I also wanted to be able to select View - PostScript and have LyX automatically produce the EPS file from the SVG and include any LaTeX code I wanted via PSFrag. I followed the advice in these two pages: [1] http://wiki.lyx.org/Tips/UseInkscapeSVGImages [2] http://www.ma.utexas.edu/users/stirling/computergeek/latexgraphics.html Result: It works. Kind of. I managed to get LyX to accept SVG figures and SVG to EPS conversion without any problem by following the info in [1]. Everything works as advertised (although the PDF conversion gives ugly figures sometimes). The problem is when I want to use PSFrag. I found three problems: 1. The info in [1] is wrong; to convert SVG to EPS, you have to disable the convert text to path function in Inkscape or your text will be exported as a picture. Do *not* use the--export-text-to-path switch with Inkscape. 2. Automatic inclusion of LaTeX code via PSFrag fails, and I don't know why. Inkscape converts SVG to EPS correctly; if you insert manually these EPS files in your LyX document, PSFrag works perfectly. The problem is when you insert the original SVG in LyX and expect it to handle the conversion by itself (which is the whole point of doing all this!); in this case, the final document shows the text anchors instead of the LaTeX code whatever I do. I am still looking into this. 3. A minor but annoying issue is that, while the PS documentis OK, when using Veiw-PDF, the figures look very degraded (and no PSFrag, of course). I am still looking into this. Hope all this is useful to somebody. Has anybody tried to do this? Did it work? I am specially annoyed at problem (2), because I have the feeling that it'd work with just a little tweak somewhere. Am I missing something, or is there a problem with the interaction between LyX, PSFrag and Inkscape? Yours, - Urtzi - -- If you would know the value of money, go try to borrow some. -- Ben Franklin
LyX, SVG and PSFrag: case report [UPDATED]
Hi everybody! [I sent this message about an hour ago, but it looks like it got lost. In the meantime, I solved one of the problems I had, so I send an updated version of my original message hoping that it will be useful to somebody else]. I want to report the results of my experiments in combining SVG figures and the PSFrag package in LyX, hoping that they will be useful to somebody. The point was to draw a SVG figure in, say, Inkscape and insert it directly into LyX without converting it to EPS first, thus I skip a step in producing a document while having an instant preview within LyX. I also wanted to be able to select View - PostScript and have LyX automatically produce the EPS file from the SVG and include any LaTeX code I wanted via PSFrag. I followed the advice in these two pages: [1] http://wiki.lyx.org/Tips/UseInkscapeSVGImages [2] http://www.ma.utexas.edu/users/stirling/computergeek/latexgraphics.html Result: It works. Kind of. [UPDATE: It works perfectly, with just a minor issue. See below] I managed to get LyX to accept SVG figures and SVG to EPS conversion without any problem by following the info in [1]. Everything works as advertised (although the PDF conversion gives ugly figures sometimes). The problem is when I want to use PSFrag. I found three problems: 1. The info in [1] is wrong; to convert SVG to EPS, you have to disable the convert text to path function in Inkscape or your text will be exported as a picture, as explained in [2]. Do *not* use the--export-text-to-path switch with Inkscape. 2. Automatic inclusion of LaTeX code via PSFrag fails, and I don't know why. Inkscape converts SVG to EPS correctly; if you insert manually these EPS files in your LyX document, PSFrag works perfectly. The problem is when you insert the original SVG in LyX and expect it to handle the conversion by itself (which is the whole point of doing all this!); in this case, the final document shows the text anchors instead of the LaTeX code whatever I do. I am still looking into this. [UPDATE: I solved it! The trick is to declare the packages graphicx and color in your preamble, *even if you don't use any color at all*. Just declare them and wham! SVG previews + autoEPS + PSFrag. Took me a while to solve this one!] 3. A minor but annoying issue is that, while the PS documentis OK, when using Veiw-PDF, the figures look very degraded (and no PSFrag, of course). I am still looking into this. [UPDATE: Still doesn't work. The only PDF export that works roughly OK is ps2pdf, and the images still look worse on screen than on the PS. I haven't tried to print them though, so maybe the printed version will look better] Hope all this is useful to somebody. Has anybody tried to do this? Did it work? Yours, - Urtzi - -- If you would know the value of money, go try to borrow some. -- Ben Franklin --- -- Urtzi Jauregi Fakulteta za Matematiko in Fiziko, Univerza v Ljubljani Jadranska 19, Si-1000 Ljubljana Slovenija Tel: ++386 01 540 13 53 e-mail: [EMAIL PROTECTED]
Re: LyX, SVG and PSFrag: case report [UPDATED]
On Monday 05 March 2007 13:16, Urtzi Jauregi wrote: Hi everybody! [I sent this message about an hour ago, but it looks like it got lost. In the meantime, I solved one of the problems I had, so I send an updated version of my original message hoping that it will be useful to somebody else]. I want to report the results of my experiments in combining SVG figures and the PSFrag package in LyX, hoping that they will be useful to somebody. I had noticed that the fonts in an included .svg are slightly different in the finished PDF and the .svg in Inkscape but I haven't tried to solve the problem yet. I take it that this is what PSFrag is for? I didn't bother with the instructions in the wiki as found that I was able to get it working without the script. I am able to create images in Inkscape and include them directly in LyX. The image in the PDF is a vector image as it should be. These are my converter strings: SVGEPS: inkscape -z --file=$$i --export-eps=$$o SVGPNG inkscape -z --file=$$i --export-png=$$o SVGpostscript inkscape -z --file=$$i --export-ep=$$o -- http://www.unmusic.co.uk - about me, music, geek sitcom etc. http://www.unmusic.co.uk/amhs/ - alt.music.home-studio
Re: LyX, SVG and PSFrag: case report [UPDATED]
killermike wrote: I had noticed that the fonts in an included .svg are slightly different in the finished PDF and the .svg in Inkscape but I haven't tried to solve the problem yet. I take it that this is what PSFrag is for? No. psfrag enables you to put formulas in your figure, and it makes it possible to use the same font in the figure as in the main text. If the font in the figure in the final pdf is different than in inkscape, and you did not use psfrags, then it is a bug in inkscape. Georg
Re: LyX, SVG and PSFrag: case report [UPDATED]
Urtzi Jauregi wrote: 1. The info in [1] is wrong; to convert SVG to EPS, you have to disable the convert text to path function in Inkscape or your text will be exported as a picture, as explained in [2]. Do *not* use the--export-text-to-path switch with Inkscape. I don't know why this instruction is in the wiki. 2. Automatic inclusion of LaTeX code via PSFrag fails, and I don't know why. Inkscape converts SVG to EPS correctly; if you insert manually these EPS files in your LyX document, PSFrag works perfectly. The problem is when you insert the original SVG in LyX and expect it to handle the conversion by itself (which is the whole point of doing all this!); in this case, the final document shows the text anchors instead of the LaTeX code whatever I do. I am still looking into this. [UPDATE: I solved it! The trick is to declare the packages graphicx and color in your preamble, *even if you don't use any color at all*. Just declare them and wham! SVG previews + autoEPS + PSFrag. Took me a while to solve this one!] This looks like a bug in LyX. You should not need to load any package in the preamble manually. Can you please file this at http://bugzilla.lyx.org, together with a minimal example .lyx file (with .svg file), and a screenshot of the correct and incorrect preview? 3. A minor but annoying issue is that, while the PS documentis OK, when using Veiw-PDF, the figures look very degraded (and no PSFrag, of course). I am still looking into this. [UPDATE: Still doesn't work. The only PDF export that works roughly OK is ps2pdf, and the images still look worse on screen than on the PS. I haven't tried to print them though, so maybe the printed version will look better] No need to look further. psfrags does not work with pdflatex, only with latex, so you need to use dvi2ps or dvipdfm to produce your pdf. This is documented. Hope all this is useful to somebody. Has anybody tried to do this? Did it work? Why not add your information to the wiki (especially the bit about the text-to-path switch)? Georg
Re: LyX, SVG and PSFrag: case report [UPDATED]
On Monday 05 March 2007 17:25, Georg Baum wrote: killermike wrote: I had noticed that the fonts in an included .svg are slightly different in the finished PDF and the .svg in Inkscape but I haven't tried to solve the problem yet. I take it that this is what PSFrag is for? No. psfrag enables you to put formulas in your figure, and it makes it possible to use the same font in the figure as in the main text. If the font in the figure in the final pdf is different than in inkscape, and you did not use psfrags, then it is a bug in inkscape. Thanks. I googled but it's one of those subjects where google isn't very forthcoming. -- http://www.unmusic.co.uk - about me, music, geek sitcom etc. http://www.unmusic.co.uk/amhs/ - alt.music.home-studio
Re: How to use PSfrag within LyX?
On Sunday 04 March 2007 15:04:31 Georg Baum wrote: > Am Freitag, 2. März 2007 18:13 schrieb Urtzi Jauregi: > > Where exacty do you insert the ERT? I've tried several places, but > > without > > > success. > > Directly before the figure you put the ERT in an own paragraph with > standard alignment (not centered - that will not work). > > If the figure is not in a float or not in a minipage it might be a good > idea to enclose the psfrag commands and the figure in a psfrags > environment (also in ERT). Strange. I've tried that in the past without success. Now it's working perfectly. Thank you, Georg! - Urtzi - -- Urtzi Jauregi Fakulteta za Matematiko in Fiziko, Univerza v Ljubljani Jadranska 19, Si-1000 Ljubljana Slovenija Tel: ++386 01 540 13 53 e-mail: [EMAIL PROTECTED]
LyX, SVG and PSFrag: case report
Hi everybody! I want to report the results of my experiments in combining SVG figures and the PSFrag package in LyX, hoping that they will be useful to somebody. The point was to draw a SVG figure in, say, Inkscape and insert it directly into LyX without converting it to EPS first, to skip a step in producing a document while having an instant preview within LyX. I also wanted to be able to select View -> PostScript and have LyX automatically produce the EPS file from the SVG and include any LaTeX code I wanted via PSFrag. I followed the advice in these two pages: [1] http://wiki.lyx.org/Tips/UseInkscapeSVGImages [2] http://www.ma.utexas.edu/users/stirling/computergeek/latexgraphics.html Result: It works. Kind of. I managed to get LyX to accept SVG figures and SVG to EPS conversion without any problem by following the info in [1]. Everything works as advertised (although the PDF conversion gives ugly figures sometimes). The problem is when I want to use PSFrag. I found three problems: 1. The info in [1] is wrong; to convert SVG to EPS, you have to disable the "convert text to path" function in Inkscape or your text will be exported as a picture. Do *not* use the--export-text-to-path switch with Inkscape. 2. Automatic inclusion of LaTeX code via PSFrag fails, and I don't know why. Inkscape converts SVG to EPS correctly; if you insert manually these EPS files in your LyX document, PSFrag works perfectly. The problem is when you insert the original SVG in LyX and expect it to handle the conversion by itself (which is the whole point of doing all this!); in this case, the final document shows the text anchors instead of the LaTeX code whatever I do. I am still looking into this. 3. A minor but annoying issue is that, while the PS documentis OK, when using Veiw->PDF, the figures look very degraded (and no PSFrag, of course). I am still looking into this. Hope all this is useful to somebody. Has anybody tried to do this? Did it work? I am specially annoyed at problem (2), because I have the feeling that it'd work with just a little tweak somewhere. Am I missing something, or is there a problem with the interaction between LyX, PSFrag and Inkscape? Yours, - Urtzi - -- If you would know the value of money, go try to borrow some. -- Ben Franklin
LyX, SVG and PSFrag: case report [UPDATED]
Hi everybody! [I sent this message about an hour ago, but it looks like it got lost. In the meantime, I solved one of the problems I had, so I send an updated version of my original message hoping that it will be useful to somebody else]. I want to report the results of my experiments in combining SVG figures and the PSFrag package in LyX, hoping that they will be useful to somebody. The point was to draw a SVG figure in, say, Inkscape and insert it directly into LyX without converting it to EPS first, thus I skip a step in producing a document while having an instant preview within LyX. I also wanted to be able to select View -> PostScript and have LyX automatically produce the EPS file from the SVG and include any LaTeX code I wanted via PSFrag. I followed the advice in these two pages: [1] http://wiki.lyx.org/Tips/UseInkscapeSVGImages [2] http://www.ma.utexas.edu/users/stirling/computergeek/latexgraphics.html Result: It works. Kind of. [UPDATE: It works perfectly, with just a minor issue. See below] I managed to get LyX to accept SVG figures and SVG to EPS conversion without any problem by following the info in [1]. Everything works as advertised (although the PDF conversion gives ugly figures sometimes). The problem is when I want to use PSFrag. I found three problems: 1. The info in [1] is wrong; to convert SVG to EPS, you have to disable the "convert text to path" function in Inkscape or your text will be exported as a picture, as explained in [2]. Do *not* use the--export-text-to-path switch with Inkscape. 2. Automatic inclusion of LaTeX code via PSFrag fails, and I don't know why. Inkscape converts SVG to EPS correctly; if you insert manually these EPS files in your LyX document, PSFrag works perfectly. The problem is when you insert the original SVG in LyX and expect it to handle the conversion by itself (which is the whole point of doing all this!); in this case, the final document shows the text anchors instead of the LaTeX code whatever I do. I am still looking into this. [UPDATE: I solved it! The trick is to declare the packages "graphicx" and "color" in your preamble, *even if you don't use any color at all*. Just declare them and wham! SVG previews + autoEPS + PSFrag. Took me a while to solve this one!] 3. A minor but annoying issue is that, while the PS documentis OK, when using Veiw->PDF, the figures look very degraded (and no PSFrag, of course). I am still looking into this. [UPDATE: Still doesn't work. The only PDF export that works roughly OK is ps2pdf, and the images still look worse on screen than on the PS. I haven't tried to print them though, so maybe the printed version will look better] Hope all this is useful to somebody. Has anybody tried to do this? Did it work? Yours, - Urtzi - -- If you would know the value of money, go try to borrow some. -- Ben Franklin --- -- Urtzi Jauregi Fakulteta za Matematiko in Fiziko, Univerza v Ljubljani Jadranska 19, Si-1000 Ljubljana Slovenija Tel: ++386 01 540 13 53 e-mail: [EMAIL PROTECTED]
Re: LyX, SVG and PSFrag: case report [UPDATED]
On Monday 05 March 2007 13:16, Urtzi Jauregi wrote: > Hi everybody! > > [I sent this message about an hour ago, but it looks like it got lost. > In > the meantime, I solved one of the problems I had, so I send an updated > version of my original message hoping that it will be useful to somebody > else]. > > I want to report the results of my experiments in combining SVG figures > and the PSFrag package in LyX, hoping that they will be useful to somebody. I had noticed that the fonts in an included .svg are slightly different in the finished PDF and the .svg in Inkscape but I haven't tried to solve the problem yet. I take it that this is what PSFrag is for? I didn't bother with the instructions in the wiki as found that I was able to get it working without the script. I am able to create images in Inkscape and include them directly in LyX. The image in the PDF is a vector image as it should be. These are my converter strings: SVG>EPS: inkscape -z --file=$$i --export-eps=$$o SVG>PNG inkscape -z --file=$$i --export-png=$$o SVG>postscript inkscape -z --file=$$i --export-ep=$$o -- http://www.unmusic.co.uk - about me, music, geek sitcom etc. http://www.unmusic.co.uk/amhs/ - alt.music.home-studio
Re: LyX, SVG and PSFrag: case report [UPDATED]
killermike wrote: > I had noticed that the fonts in an included .svg are slightly different in > the finished PDF and the .svg in Inkscape but I haven't tried to solve the > problem yet. I take it that this is what PSFrag is for? No. psfrag enables you to put formulas in your figure, and it makes it possible to use the same font in the figure as in the main text. If the font in the figure in the final pdf is different than in inkscape, and you did not use psfrags, then it is a bug in inkscape. Georg
Re: LyX, SVG and PSFrag: case report [UPDATED]
Urtzi Jauregi wrote: > 1. The info in [1] is wrong; to convert SVG to EPS, you have to disable > the "convert text to path" function in Inkscape or your text will be > exported as a picture, as explained in [2]. Do *not* use > the--export-text-to-path switch with Inkscape. I don't know why this instruction is in the wiki. > 2. Automatic inclusion of LaTeX code via PSFrag fails, and I don't know > why. Inkscape converts SVG to EPS correctly; if you insert manually these > EPS files in your LyX document, PSFrag works perfectly. The problem is > when you insert the original SVG in LyX and expect it to handle the > conversion by itself (which is the whole point of doing all this!); in > this case, the final document shows the text anchors instead of the LaTeX > code whatever I do. I am still looking into this. > [UPDATE: I solved it! The trick is to declare the packages "graphicx" > and "color" in your preamble, *even if you don't use any color at all*. > Just declare them and wham! SVG previews + autoEPS + PSFrag. Took me a > while to solve this one!] This looks like a bug in LyX. You should not need to load any package in the preamble manually. Can you please file this at http://bugzilla.lyx.org, together with a minimal example .lyx file (with .svg file), and a screenshot of the correct and incorrect preview? > 3. A minor but annoying issue is that, while the PS documentis OK, when > using Veiw->PDF, the figures look very degraded (and no PSFrag, of > course). I am still looking into this. > [UPDATE: Still doesn't work. The only PDF export that works roughly OK is > ps2pdf, and the images still look worse on screen than on the PS. I > haven't tried to print them though, so maybe the printed version will look > better] No need to look further. psfrags does not work with pdflatex, only with latex, so you need to use dvi2ps or dvipdfm to produce your pdf. This is documented. > Hope all this is useful to somebody. Has anybody tried to do this? Did it > work? Why not add your information to the wiki (especially the bit about the text-to-path switch)? Georg
Re: LyX, SVG and PSFrag: case report [UPDATED]
On Monday 05 March 2007 17:25, Georg Baum wrote: > killermike wrote: > > I had noticed that the fonts in an included .svg are slightly different > > in the finished PDF and the .svg in Inkscape but I haven't tried to solve > > the problem yet. I take it that this is what PSFrag is for? > > No. psfrag enables you to put formulas in your figure, and it makes it > possible to use the same font in the figure as in the main text. > If the font in the figure in the final pdf is different than in inkscape, > and you did not use psfrags, then it is a bug in inkscape. Thanks. I googled but it's one of those subjects where google isn't very forthcoming. -- http://www.unmusic.co.uk - about me, music, geek sitcom etc. http://www.unmusic.co.uk/amhs/ - alt.music.home-studio
Re: How to use PSfrag within LyX?
Am Freitag, 2. März 2007 18:13 schrieb Urtzi Jauregi: Where exacty do you insert the ERT? I've tried several places, but without success. Directly before the figure you put the ERT in an own paragraph with standard alignment (not centered - that will not work). If the figure is not in a float or not in a minipage it might be a good idea to enclose the psfrag commands and the figure in a psfrags environment (also in ERT). Georg
Re: How to use PSfrag within LyX?
Am Freitag, 2. März 2007 18:13 schrieb Urtzi Jauregi: Where exacty do you insert the ERT? I've tried several places, but without success. Directly before the figure you put the ERT in an own paragraph with standard alignment (not centered - that will not work). If the figure is not in a float or not in a minipage it might be a good idea to enclose the psfrag commands and the figure in a psfrags environment (also in ERT). Georg
Re: How to use PSfrag within LyX?
Am Freitag, 2. März 2007 18:13 schrieb Urtzi Jauregi: > Where exacty do you insert the ERT? I've tried several places, but without > success. Directly before the figure you put the ERT in an own paragraph with standard alignment (not centered - that will not work). If the figure is not in a float or not in a minipage it might be a good idea to enclose the psfrag commands and the figure in a psfrags environment (also in ERT). Georg
How to use PSfrag within LyX?
HI everybody, I routinely use PSfrag to embed complex mathematical expressions in EPS figures. I'd like to use it under LyX too, but I can't find a place in the figure float dialogs to enter the tag-to-formula definitions PSfrag needs. So I usually have to export my documento to LaTeX and work with the code by hand. Not that I mind terribly, but I'd very much like to be able to produce the whole document with a single program. Can I do this under LyX? ERT insets would be OK, but I wonder if one can do it the LyX way, just with the GUI options. Cheers, - Urtzi - -- Urtzi Jauregi Fakulteta za Matematiko in Fiziko, Univerza v Ljubljani Jadranska 19, Si-1000 Ljubljana Slovenija Tel: ++386 01 540 13 53 e-mail: [EMAIL PROTECTED]
Re: How to use PSfrag within LyX?
Urtzi Jauregi wrote: HI everybody, I routinely use PSfrag to embed complex mathematical expressions in EPS figures. I'd like to use it under LyX too, but I can't find a place in the figure float dialogs to enter the tag-to-formula definitions PSfrag needs. So I usually have to export my documento to LaTeX and work with the code by hand. Not that I mind terribly, but I'd very much like to be able to produce the whole document with a single program. Can I do this under LyX? Unfortunately not. ERT insets would be OK, but I wonder if one can do it the LyX way, just with the GUI options. With ERT it works fine (I use it a lot), but there is no GUI yet. Georg
Re: How to use PSfrag within LyX?
On Friday 02 March 2007 17:25:54 Georg Baum wrote: ERT insets would be OK, but I wonder if one can do it the LyX way, just with the GUI options. With ERT it works fine (I use it a lot), but there is no GUI yet. Where exacty do you insert the ERT? I've tried several places, but without success. - Urtzi - -- Urtzi Jauregi Fakulteta za Matematiko in Fiziko, Univerza v Ljubljani Jadranska 19, Si-1000 Ljubljana Slovenija Tel: ++386 01 540 13 53 e-mail: [EMAIL PROTECTED]
How to use PSfrag within LyX?
HI everybody, I routinely use PSfrag to embed complex mathematical expressions in EPS figures. I'd like to use it under LyX too, but I can't find a place in the figure float dialogs to enter the tag-to-formula definitions PSfrag needs. So I usually have to export my documento to LaTeX and work with the code by hand. Not that I mind terribly, but I'd very much like to be able to produce the whole document with a single program. Can I do this under LyX? ERT insets would be OK, but I wonder if one can do it the LyX way, just with the GUI options. Cheers, - Urtzi - -- Urtzi Jauregi Fakulteta za Matematiko in Fiziko, Univerza v Ljubljani Jadranska 19, Si-1000 Ljubljana Slovenija Tel: ++386 01 540 13 53 e-mail: [EMAIL PROTECTED]
Re: How to use PSfrag within LyX?
Urtzi Jauregi wrote: HI everybody, I routinely use PSfrag to embed complex mathematical expressions in EPS figures. I'd like to use it under LyX too, but I can't find a place in the figure float dialogs to enter the tag-to-formula definitions PSfrag needs. So I usually have to export my documento to LaTeX and work with the code by hand. Not that I mind terribly, but I'd very much like to be able to produce the whole document with a single program. Can I do this under LyX? Unfortunately not. ERT insets would be OK, but I wonder if one can do it the LyX way, just with the GUI options. With ERT it works fine (I use it a lot), but there is no GUI yet. Georg
Re: How to use PSfrag within LyX?
On Friday 02 March 2007 17:25:54 Georg Baum wrote: ERT insets would be OK, but I wonder if one can do it the LyX way, just with the GUI options. With ERT it works fine (I use it a lot), but there is no GUI yet. Where exacty do you insert the ERT? I've tried several places, but without success. - Urtzi - -- Urtzi Jauregi Fakulteta za Matematiko in Fiziko, Univerza v Ljubljani Jadranska 19, Si-1000 Ljubljana Slovenija Tel: ++386 01 540 13 53 e-mail: [EMAIL PROTECTED]
How to use PSfrag within LyX?
HI everybody, I routinely use PSfrag to embed complex mathematical expressions in EPS figures. I'd like to use it under LyX too, but I can't find a place in the figure float dialogs to enter the tag-to-formula definitions PSfrag needs. So I usually have to export my documento to LaTeX and work with the code by hand. Not that I mind terribly, but I'd very much like to be able to produce the whole document with a single program. Can I do this under LyX? ERT insets would be OK, but I wonder if one can do it the LyX way, just with the GUI options. Cheers, - Urtzi - -- Urtzi Jauregi Fakulteta za Matematiko in Fiziko, Univerza v Ljubljani Jadranska 19, Si-1000 Ljubljana Slovenija Tel: ++386 01 540 13 53 e-mail: [EMAIL PROTECTED]
Re: How to use PSfrag within LyX?
Urtzi Jauregi wrote: > HI everybody, > > I routinely use PSfrag to embed complex mathematical expressions in EPS > figures. I'd like to use it under LyX too, but I can't find a place in the > figure float dialogs to enter the tag-to-formula definitions PSfrag needs. > So I usually have to export my documento to LaTeX and work with the code > by hand. Not that I mind terribly, but I'd very much like to be able to > produce the whole document with a single program. Can I do this under LyX? Unfortunately not. > ERT insets would be OK, but I wonder if one can do it the LyX way, just > with > the GUI options. With ERT it works fine (I use it a lot), but there is no GUI yet. Georg
Re: How to use PSfrag within LyX?
On Friday 02 March 2007 17:25:54 Georg Baum wrote: > > ERT insets would be OK, but I wonder if one can do it the LyX way, just > > with > > the GUI options. > > With ERT it works fine (I use it a lot), but there is no GUI yet. Where exacty do you insert the ERT? I've tried several places, but without success. - Urtzi - -- Urtzi Jauregi Fakulteta za Matematiko in Fiziko, Univerza v Ljubljani Jadranska 19, Si-1000 Ljubljana Slovenija Tel: ++386 01 540 13 53 e-mail: [EMAIL PROTECTED]
is it possible too use psfrag in lyx?
Ikarus GuardNT hat dieses eMail auf Viren und Trojaner untersucht. Nichts Verdächtiges gefunden. keine Anlagen gefunden --- Hello too everybody. Is it possible too use the advantages off psfrag in lyx? If yes, how??? thanks, Rafael
Re: is it possible too use psfrag in lyx?
Rafael Sabaini wrote: Ikarus GuardNT hat dieses eMail auf Viren und Trojaner untersucht. Nichts Verdächtiges gefunden. keine Anlagen gefunden Please fix your virus scanner. Is it possible too use the advantages off psfrag in lyx? Yes, but native support is not available. If yes, how??? Add \usepackage{psfrags} to the preamble, and write the \psfrag commands in ERT. Georg
is it possible too use psfrag in lyx?
Ikarus GuardNT hat dieses eMail auf Viren und Trojaner untersucht. Nichts Verdächtiges gefunden. keine Anlagen gefunden --- Hello too everybody. Is it possible too use the advantages off psfrag in lyx? If yes, how??? thanks, Rafael
Re: is it possible too use psfrag in lyx?
Rafael Sabaini wrote: Ikarus GuardNT hat dieses eMail auf Viren und Trojaner untersucht. Nichts Verdächtiges gefunden. keine Anlagen gefunden Please fix your virus scanner. Is it possible too use the advantages off psfrag in lyx? Yes, but native support is not available. If yes, how??? Add \usepackage{psfrags} to the preamble, and write the \psfrag commands in ERT. Georg
is it possible too use psfrag in lyx?
Ikarus GuardNT hat dieses eMail auf Viren und Trojaner untersucht. Nichts Verdächtiges gefunden. keine Anlagen gefunden --- Hello too everybody. Is it possible too use the advantages off psfrag in lyx? If yes, how??? thanks, Rafael
Re: is it possible too use psfrag in lyx?
Rafael Sabaini wrote: > Ikarus GuardNT hat dieses eMail auf Viren und Trojaner untersucht. > Nichts Verdächtiges gefunden. > > keine Anlagen gefunden Please fix your virus scanner. > Is it possible too use the advantages off psfrag in lyx? Yes, but native support is not available. > If yes, how??? Add \usepackage{psfrags} to the preamble, and write the \psfrag commands in ERT. Georg
Re: laprint psfrag
On Friday 27 May 2005 22:26, Richard Wang wrote: In case that someone knows a2ping, the line 1681 is: o_force_papersize: die if is_page1_stop(); # vvv ($llx,$lly,$urx,$ury)=(0,0,$papersize_x,$papersize_y); Thanks. Well, a2ping has tendency to die a lot. I took me some time to get it to do what I wanted. Try to play with it in command line and see when it works for you. The problem above has something to do with papersize. Are you still using scaling factor 2? It might produce pictures larger than pagesize. Does it work with 1? Vasek -- - Ing. Vaclav Smidl, Ph.D.tel: +420 26605 2420 AS department, Institute web: http://www.utia.cas.cz/AS/smidl/ of Information Theory and Automation, fax: +420 26605 2068 Prague, Czech Republic
Re: laprint psfrag
On Friday 27 May 2005 22:26, Richard Wang wrote: In case that someone knows a2ping, the line 1681 is: o_force_papersize: die if is_page1_stop(); # vvv ($llx,$lly,$urx,$ury)=(0,0,$papersize_x,$papersize_y); Thanks. Well, a2ping has tendency to die a lot. I took me some time to get it to do what I wanted. Try to play with it in command line and see when it works for you. The problem above has something to do with papersize. Are you still using scaling factor 2? It might produce pictures larger than pagesize. Does it work with 1? Vasek -- - Ing. Vaclav Smidl, Ph.D.tel: +420 26605 2420 AS department, Institute web: http://www.utia.cas.cz/AS/smidl/ of Information Theory and Automation, fax: +420 26605 2068 Prague, Czech Republic
Re: laprint & psfrag
On Friday 27 May 2005 22:26, Richard Wang wrote: > In case that someone knows a2ping, the line 1681 is: > >o_force_papersize: >die if is_page1_stop(); ># vvv ($llx,$lly,$urx,$ury)=(0,0,$papersize_x,$papersize_y); > > Thanks. > Well, a2ping has tendency to die a lot. I took me some time to get it to do what I wanted. Try to play with it in command line and see when it works for you. The problem above has something to do with papersize. Are you still using scaling factor 2? It might produce pictures larger than pagesize. Does it work with 1? Vasek -- - Ing. Vaclav Smidl, Ph.D.tel: +420 26605 2420 AS department, Institute web: http://www.utia.cas.cz/AS/smidl/ of Information Theory and Automation, fax: +420 26605 2068 Prague, Czech Republic
Re: laprint psfrag
Hi, I do, indirectly. I have a matlab .m file that runs latex on background and produce a .pdf file. Attached. It is also using a2ping script, which is too big for mailinglist, google for it, or I can send it in private e-mail. Vasek On Friday 27 May 2005 10:08, Richard Wang wrote: Hi, Anyone use laprint, a matlab function, successfully in lyx? Richard -- - Ing. Vaclav Smidl, Ph.D.tel: +420 26605 2420 AS department, Institute web: http://www.utia.cas.cz/AS/smidl/ of Information Theory and Automation, fax: +420 26605 2068 Prague, Czech Republic function monoprint(figno,name,scale); % function prints figure fig to pdf file name % It is using laprint to complete the job % settings for Springer Mono latex class set(0,'defaulttextinterpreter','none'); laprint(figno,'/tmp/laprint_out',... 'width',scale*11.8,... 'factor',0.6,... 'scalefonts','off',... 'keepfontprops','on',... 'asonscreen','on',... 'printcmd',['print(''-ffigurenumber'',' ... '''-depsc2'',''filename.eps'')'],... 'mathticklabels','on'); if 1 fprintf(1,' Compiling: LaTeX - dvips - pdf ...\r'); latextmp=fopen(['/tmp/pcttmp.tex'],'w'); fprintf(latextmp,'\\documentclass[10pt]{article}\n'); fprintf(latextmp,'\\usepackage[margin=0mm]{geometry}\n'); fprintf(latextmp,'\\usepackage{graphicp,psfrag}\n'); fprintf(latextmp,'\\input{mono-pre.tex}\n'); fprintf(latextmp,'\\begin{document}\n'); fprintf(latextmp,'\\thispagestyle{empty}\n'); fprintf(latextmp,'\\input{%s.tex}\n\\end{document}\n','laprint_out'); fclose(latextmp); end curpath = pwd; eval('!cd /tmp; latex pcttmp.tex /dev/null;'); if (exist('/tmp/pcttmp.dvi') == 2) eval(['!cd /tmp; dvips -q pcttmp.dvi -o laprint_out.ps']); eval(['!cd /tmp; ~/bin/a2ping.pl laprint_out.ps']); eval(['!cp /tmp/laprint_out.pdf ' curpath '/' name '.pdf']); end
Re: laprint psfrag
Hi Vasek, Thanks for the message. I tried to run monoprint with the following code, x=0:0.1:1 plot(x,sin(x)) monoprint(1,'test4',2) But the system hung... Did I use it incorrectly? I have a2ping installed in my system. Richard On May 27, 2005, at 2:15 AM, Vaclav Smidl wrote: Hi, I do, indirectly. I have a matlab .m file that runs latex on background and produce a .pdf file. Attached. It is also using a2ping script, which is too big for mailinglist, google for it, or I can send it in private e-mail. Vasek On Friday 27 May 2005 10:08, Richard Wang wrote: Hi, Anyone use laprint, a matlab function, successfully in lyx? Richard -- --- -- Ing. Vaclav Smidl, Ph.D.tel: +420 26605 2420 AS department, Institute web: http://www.utia.cas.cz/AS/smidl/ of Information Theory and Automation, fax: +420 26605 2068 Prague, Czech Republic monoprint.m
laprint psfrag
it hangs on line 33 in monoprint.m : eval('!cd /tmp; latex pcttmp.tex /dev/null;'); any suggestions? Richard Begin forwarded message: From: Richard Wang [EMAIL PROTECTED] Date: May 27, 2005 10:40:21 AM PDT To: Vaclav Smidl [EMAIL PROTECTED] Cc: lyx-users@lists.lyx.org Subject: Re: laprint psfrag Hi Vasek, Thanks for the message. I tried to run monoprint with the following code, x=0:0.1:1 plot(x,sin(x)) monoprint(1,'test4',2) But the system hung... Did I use it incorrectly? I have a2ping installed in my system. Richard On May 27, 2005, at 2:15 AM, Vaclav Smidl wrote: Hi, I do, indirectly. I have a matlab .m file that runs latex on background and produce a .pdf file. Attached. It is also using a2ping script, which is too big for mailinglist, google for it, or I can send it in private e-mail. Vasek On Friday 27 May 2005 10:08, Richard Wang wrote: Hi, Anyone use laprint, a matlab function, successfully in lyx? Richard -- -- --- Ing. Vaclav Smidl, Ph.D.tel: +420 26605 2420 AS department, Institute web: http://www.utia.cas.cz/AS/smidl/ of Information Theory and Automation, fax: +420 26605 2068 Prague, Czech Republic monoprint.m
Re: laprint psfrag
On Friday 27 May 2005 19:40, Richard Wang wrote: Hi Vasek, Thanks for the message. I tried to run monoprint with the following code, x=0:0.1:1 plot(x,sin(x)) monoprint(1,'test4',2) Strange. Works fine on my setup. (Linux, tetex) BTW, I would not use 2 as the third argument. The picture would be bigger than the page of article class. You would need to add a3paper to its options. But the system hung... Well, this happens when there is malformed latex code in the figure and latex runs in interactive mode. Do you have all the packages? graphicp,psfrag, geometry Actually, you do not need graphicp, change it to graphicx, it should also work. What happens if you go to /tmp and run: latex pcttmp.tex manually? Vasek -- - Ing. Vaclav Smidl, Ph.D.tel: +420 26605 2420 AS department, Institute web: http://www.utia.cas.cz/AS/smidl/ of Information Theory and Automation, fax: +420 26605 2068 Prague, Czech Republic
Re: laprint psfrag
that's exact what I did. I changed graphicp to graphicx, It runs well in the beginning, but the system could not find the file mono-pre.tex. There should be a way to fix it.. LaTeX2e 2003/12/01 Babel v3.8c and hyphenation patterns for american, french, german, ngerman, n ohyphenation, loaded. (/usr/local/teTeX/share/texmf.tetex/tex/latex/base/article.cls Document Class: article 2004/02/16 v1.4f Standard LaTeX document class (/usr/local/teTeX/share/texmf.tetex/tex/latex/base/size10.clo)) (/usr/local/teTeX/share/texmf.tetex/tex/latex/geometry/geometry.sty (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/keyval.sty) (/usr/local/teTeX/share/texmf.tetex/tex/latex/geometry/geometry.cfg)) (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/graphicx.sty (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/graphics.sty (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/trig.sty) (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/graphics.cfg) (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/dvips.def))) (/usr/local/teTeX/share/texmf.tetex/tex/latex/psfrag/psfrag.sty) ! LaTeX Error: File `mono-pre.tex' not found. Type X to quit or RETURN to proceed, or enter new name. (Default extension: tex) On May 27, 2005, at 11:10 AM, Vaclav Smidl wrote: On Friday 27 May 2005 19:40, Richard Wang wrote: Hi Vasek, Thanks for the message. I tried to run monoprint with the following code, x=0:0.1:1 plot(x,sin(x)) monoprint(1,'test4',2) Strange. Works fine on my setup. (Linux, tetex) BTW, I would not use 2 as the third argument. The picture would be bigger than the page of article class. You would need to add a3paper to its options. But the system hung... Well, this happens when there is malformed latex code in the figure and latex runs in interactive mode. Do you have all the packages? graphicp,psfrag, geometry Actually, you do not need graphicp, change it to graphicx, it should also work. What happens if you go to /tmp and run: latex pcttmp.tex manually? Vasek -- --- -- Ing. Vaclav Smidl, Ph.D.tel: +420 26605 2420 AS department, Institute web: http://www.utia.cas.cz/AS/smidl/ of Information Theory and Automation, fax: +420 26605 2068 Prague, Czech Republic
Re: laprint psfrag
! LaTeX Error: File `mono-pre.tex' not found. Oh, sorry, I did not noticed that. It is a file with my personal newcommands. :-). Remove it or replace with your own... Best, Vasek
Re: laprint psfrag
I see, I removed it. Now the line 36, ~/a2ping.pl part has problem, matlab shows: /Users/richardwang/a2ping.pl command does not exist. Then I replace ~/a2ping.pl by a2ping, but it shows: Compiling: LaTeX - dvips - pdf ... Died at /usr/local/teTeX/bin/powerpc-apple-darwin-current/a2ping line 1618, IN line 1. cd /tmp; a2ping laprint_out.ps: Signal 127 cp: /tmp/laprint_out.pdf: No such file or directory Any suggestions? Richard On May 27, 2005, at 12:43 PM, Vaclav Smidl wrote: ! LaTeX Error: File `mono-pre.tex' not found. Oh, sorry, I did not noticed that. It is a file with my personal newcommands. :-). Remove it or replace with your own... Best, Vasek
Re: laprint psfrag
In case that someone knows a2ping, the line 1681 is: o_force_papersize: die if is_page1_stop(); # vvv ($llx,$lly,$urx,$ury)=(0,0,$papersize_x,$papersize_y); Thanks. Richard On May 27, 2005, at 1:01 PM, Richard Wang wrote: I see, I removed it. Now the line 36, ~/a2ping.pl part has problem, matlab shows: /Users/richardwang/a2ping.pl command does not exist. Then I replace ~/a2ping.pl by a2ping, but it shows: Compiling: LaTeX - dvips - pdf ... Died at /usr/local/teTeX/bin/powerpc-apple-darwin-current/a2ping line 1618, IN line 1. cd /tmp; a2ping laprint_out.ps: Signal 127 cp: /tmp/laprint_out.pdf: No such file or directory Any suggestions? Richard On May 27, 2005, at 12:43 PM, Vaclav Smidl wrote: ! LaTeX Error: File `mono-pre.tex' not found. Oh, sorry, I did not noticed that. It is a file with my personal newcommands. :-). Remove it or replace with your own... Best, Vasek
Re: laprint psfrag
Hi, I do, indirectly. I have a matlab .m file that runs latex on background and produce a .pdf file. Attached. It is also using a2ping script, which is too big for mailinglist, google for it, or I can send it in private e-mail. Vasek On Friday 27 May 2005 10:08, Richard Wang wrote: Hi, Anyone use laprint, a matlab function, successfully in lyx? Richard -- - Ing. Vaclav Smidl, Ph.D.tel: +420 26605 2420 AS department, Institute web: http://www.utia.cas.cz/AS/smidl/ of Information Theory and Automation, fax: +420 26605 2068 Prague, Czech Republic function monoprint(figno,name,scale); % function prints figure fig to pdf file name % It is using laprint to complete the job % settings for Springer Mono latex class set(0,'defaulttextinterpreter','none'); laprint(figno,'/tmp/laprint_out',... 'width',scale*11.8,... 'factor',0.6,... 'scalefonts','off',... 'keepfontprops','on',... 'asonscreen','on',... 'printcmd',['print(''-ffigurenumber'',' ... '''-depsc2'',''filename.eps'')'],... 'mathticklabels','on'); if 1 fprintf(1,' Compiling: LaTeX - dvips - pdf ...\r'); latextmp=fopen(['/tmp/pcttmp.tex'],'w'); fprintf(latextmp,'\\documentclass[10pt]{article}\n'); fprintf(latextmp,'\\usepackage[margin=0mm]{geometry}\n'); fprintf(latextmp,'\\usepackage{graphicp,psfrag}\n'); fprintf(latextmp,'\\input{mono-pre.tex}\n'); fprintf(latextmp,'\\begin{document}\n'); fprintf(latextmp,'\\thispagestyle{empty}\n'); fprintf(latextmp,'\\input{%s.tex}\n\\end{document}\n','laprint_out'); fclose(latextmp); end curpath = pwd; eval('!cd /tmp; latex pcttmp.tex /dev/null;'); if (exist('/tmp/pcttmp.dvi') == 2) eval(['!cd /tmp; dvips -q pcttmp.dvi -o laprint_out.ps']); eval(['!cd /tmp; ~/bin/a2ping.pl laprint_out.ps']); eval(['!cp /tmp/laprint_out.pdf ' curpath '/' name '.pdf']); end
Re: laprint psfrag
Hi Vasek, Thanks for the message. I tried to run monoprint with the following code, x=0:0.1:1 plot(x,sin(x)) monoprint(1,'test4',2) But the system hung... Did I use it incorrectly? I have a2ping installed in my system. Richard On May 27, 2005, at 2:15 AM, Vaclav Smidl wrote: Hi, I do, indirectly. I have a matlab .m file that runs latex on background and produce a .pdf file. Attached. It is also using a2ping script, which is too big for mailinglist, google for it, or I can send it in private e-mail. Vasek On Friday 27 May 2005 10:08, Richard Wang wrote: Hi, Anyone use laprint, a matlab function, successfully in lyx? Richard -- --- -- Ing. Vaclav Smidl, Ph.D.tel: +420 26605 2420 AS department, Institute web: http://www.utia.cas.cz/AS/smidl/ of Information Theory and Automation, fax: +420 26605 2068 Prague, Czech Republic monoprint.m
laprint psfrag
it hangs on line 33 in monoprint.m : eval('!cd /tmp; latex pcttmp.tex /dev/null;'); any suggestions? Richard Begin forwarded message: From: Richard Wang [EMAIL PROTECTED] Date: May 27, 2005 10:40:21 AM PDT To: Vaclav Smidl [EMAIL PROTECTED] Cc: lyx-users@lists.lyx.org Subject: Re: laprint psfrag Hi Vasek, Thanks for the message. I tried to run monoprint with the following code, x=0:0.1:1 plot(x,sin(x)) monoprint(1,'test4',2) But the system hung... Did I use it incorrectly? I have a2ping installed in my system. Richard On May 27, 2005, at 2:15 AM, Vaclav Smidl wrote: Hi, I do, indirectly. I have a matlab .m file that runs latex on background and produce a .pdf file. Attached. It is also using a2ping script, which is too big for mailinglist, google for it, or I can send it in private e-mail. Vasek On Friday 27 May 2005 10:08, Richard Wang wrote: Hi, Anyone use laprint, a matlab function, successfully in lyx? Richard -- -- --- Ing. Vaclav Smidl, Ph.D.tel: +420 26605 2420 AS department, Institute web: http://www.utia.cas.cz/AS/smidl/ of Information Theory and Automation, fax: +420 26605 2068 Prague, Czech Republic monoprint.m
Re: laprint psfrag
On Friday 27 May 2005 19:40, Richard Wang wrote: Hi Vasek, Thanks for the message. I tried to run monoprint with the following code, x=0:0.1:1 plot(x,sin(x)) monoprint(1,'test4',2) Strange. Works fine on my setup. (Linux, tetex) BTW, I would not use 2 as the third argument. The picture would be bigger than the page of article class. You would need to add a3paper to its options. But the system hung... Well, this happens when there is malformed latex code in the figure and latex runs in interactive mode. Do you have all the packages? graphicp,psfrag, geometry Actually, you do not need graphicp, change it to graphicx, it should also work. What happens if you go to /tmp and run: latex pcttmp.tex manually? Vasek -- - Ing. Vaclav Smidl, Ph.D.tel: +420 26605 2420 AS department, Institute web: http://www.utia.cas.cz/AS/smidl/ of Information Theory and Automation, fax: +420 26605 2068 Prague, Czech Republic
Re: laprint psfrag
that's exact what I did. I changed graphicp to graphicx, It runs well in the beginning, but the system could not find the file mono-pre.tex. There should be a way to fix it.. LaTeX2e 2003/12/01 Babel v3.8c and hyphenation patterns for american, french, german, ngerman, n ohyphenation, loaded. (/usr/local/teTeX/share/texmf.tetex/tex/latex/base/article.cls Document Class: article 2004/02/16 v1.4f Standard LaTeX document class (/usr/local/teTeX/share/texmf.tetex/tex/latex/base/size10.clo)) (/usr/local/teTeX/share/texmf.tetex/tex/latex/geometry/geometry.sty (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/keyval.sty) (/usr/local/teTeX/share/texmf.tetex/tex/latex/geometry/geometry.cfg)) (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/graphicx.sty (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/graphics.sty (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/trig.sty) (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/graphics.cfg) (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/dvips.def))) (/usr/local/teTeX/share/texmf.tetex/tex/latex/psfrag/psfrag.sty) ! LaTeX Error: File `mono-pre.tex' not found. Type X to quit or RETURN to proceed, or enter new name. (Default extension: tex) On May 27, 2005, at 11:10 AM, Vaclav Smidl wrote: On Friday 27 May 2005 19:40, Richard Wang wrote: Hi Vasek, Thanks for the message. I tried to run monoprint with the following code, x=0:0.1:1 plot(x,sin(x)) monoprint(1,'test4',2) Strange. Works fine on my setup. (Linux, tetex) BTW, I would not use 2 as the third argument. The picture would be bigger than the page of article class. You would need to add a3paper to its options. But the system hung... Well, this happens when there is malformed latex code in the figure and latex runs in interactive mode. Do you have all the packages? graphicp,psfrag, geometry Actually, you do not need graphicp, change it to graphicx, it should also work. What happens if you go to /tmp and run: latex pcttmp.tex manually? Vasek -- --- -- Ing. Vaclav Smidl, Ph.D.tel: +420 26605 2420 AS department, Institute web: http://www.utia.cas.cz/AS/smidl/ of Information Theory and Automation, fax: +420 26605 2068 Prague, Czech Republic
Re: laprint psfrag
! LaTeX Error: File `mono-pre.tex' not found. Oh, sorry, I did not noticed that. It is a file with my personal newcommands. :-). Remove it or replace with your own... Best, Vasek
Re: laprint psfrag
I see, I removed it. Now the line 36, ~/a2ping.pl part has problem, matlab shows: /Users/richardwang/a2ping.pl command does not exist. Then I replace ~/a2ping.pl by a2ping, but it shows: Compiling: LaTeX - dvips - pdf ... Died at /usr/local/teTeX/bin/powerpc-apple-darwin-current/a2ping line 1618, IN line 1. cd /tmp; a2ping laprint_out.ps: Signal 127 cp: /tmp/laprint_out.pdf: No such file or directory Any suggestions? Richard On May 27, 2005, at 12:43 PM, Vaclav Smidl wrote: ! LaTeX Error: File `mono-pre.tex' not found. Oh, sorry, I did not noticed that. It is a file with my personal newcommands. :-). Remove it or replace with your own... Best, Vasek
Re: laprint psfrag
In case that someone knows a2ping, the line 1681 is: o_force_papersize: die if is_page1_stop(); # vvv ($llx,$lly,$urx,$ury)=(0,0,$papersize_x,$papersize_y); Thanks. Richard On May 27, 2005, at 1:01 PM, Richard Wang wrote: I see, I removed it. Now the line 36, ~/a2ping.pl part has problem, matlab shows: /Users/richardwang/a2ping.pl command does not exist. Then I replace ~/a2ping.pl by a2ping, but it shows: Compiling: LaTeX - dvips - pdf ... Died at /usr/local/teTeX/bin/powerpc-apple-darwin-current/a2ping line 1618, IN line 1. cd /tmp; a2ping laprint_out.ps: Signal 127 cp: /tmp/laprint_out.pdf: No such file or directory Any suggestions? Richard On May 27, 2005, at 12:43 PM, Vaclav Smidl wrote: ! LaTeX Error: File `mono-pre.tex' not found. Oh, sorry, I did not noticed that. It is a file with my personal newcommands. :-). Remove it or replace with your own... Best, Vasek
Re: laprint & psfrag
Hi, I do, indirectly. I have a matlab .m file that runs latex on background and produce a .pdf file. Attached. It is also using a2ping script, which is too big for mailinglist, google for it, or I can send it in private e-mail. Vasek On Friday 27 May 2005 10:08, Richard Wang wrote: > Hi, > > Anyone use laprint, a matlab function, successfully in lyx? > > Richard -- - Ing. Vaclav Smidl, Ph.D.tel: +420 26605 2420 AS department, Institute web: http://www.utia.cas.cz/AS/smidl/ of Information Theory and Automation, fax: +420 26605 2068 Prague, Czech Republic function monoprint(figno,name,scale); % function prints figure "fig" to pdf file "name" % It is using laprint to complete the job % settings for Springer Mono latex class set(0,'defaulttextinterpreter','none'); laprint(figno,'/tmp/laprint_out',... 'width',scale*11.8,... 'factor',0.6,... 'scalefonts','off',... 'keepfontprops','on',... 'asonscreen','on',... 'printcmd',['print(''-f'',' ... '''-depsc2'',)'],... 'mathticklabels','on'); if 1 fprintf(1,' Compiling: LaTeX -> dvips -> pdf ...\r'); latextmp=fopen(['/tmp/pcttmp.tex'],'w'); fprintf(latextmp,'\\documentclass[10pt]{article}\n'); fprintf(latextmp,'\\usepackage[margin=0mm]{geometry}\n'); fprintf(latextmp,'\\usepackage{graphicp,psfrag}\n'); fprintf(latextmp,'\\input{mono-pre.tex}\n'); fprintf(latextmp,'\\begin{document}\n'); fprintf(latextmp,'\\thispagestyle{empty}\n'); fprintf(latextmp,'\\input{%s.tex}\n\\end{document}\n','laprint_out'); fclose(latextmp); end curpath = pwd; eval('!cd /tmp; latex pcttmp.tex >/dev/null;'); if (exist('/tmp/pcttmp.dvi') == 2) eval(['!cd /tmp; dvips -q pcttmp.dvi -o laprint_out.ps']); eval(['!cd /tmp; ~/bin/a2ping.pl laprint_out.ps']); eval(['!cp /tmp/laprint_out.pdf ' curpath '/' name '.pdf']); end
Re: laprint & psfrag
Hi Vasek, Thanks for the message. I tried to run monoprint with the following code, x=0:0.1:1 plot(x,sin(x)) monoprint(1,'test4',2) But the system hung... Did I use it incorrectly? I have a2ping installed in my system. Richard On May 27, 2005, at 2:15 AM, Vaclav Smidl wrote: Hi, I do, indirectly. I have a matlab .m file that runs latex on background and produce a .pdf file. Attached. It is also using a2ping script, which is too big for mailinglist, google for it, or I can send it in private e-mail. Vasek On Friday 27 May 2005 10:08, Richard Wang wrote: Hi, Anyone use laprint, a matlab function, successfully in lyx? Richard -- --- -- Ing. Vaclav Smidl, Ph.D.tel: +420 26605 2420 AS department, Institute web: http://www.utia.cas.cz/AS/smidl/ of Information Theory and Automation, fax: +420 26605 2068 Prague, Czech Republic
laprint & psfrag
it hangs on line 33 in monoprint.m : eval('!cd /tmp; latex pcttmp.tex >/dev/null;'); any suggestions? Richard Begin forwarded message: From: Richard Wang <[EMAIL PROTECTED]> Date: May 27, 2005 10:40:21 AM PDT To: Vaclav Smidl <[EMAIL PROTECTED]> Cc: lyx-users@lists.lyx.org Subject: Re: laprint & psfrag Hi Vasek, Thanks for the message. I tried to run monoprint with the following code, x=0:0.1:1 plot(x,sin(x)) monoprint(1,'test4',2) But the system hung... Did I use it incorrectly? I have a2ping installed in my system. Richard On May 27, 2005, at 2:15 AM, Vaclav Smidl wrote: Hi, I do, indirectly. I have a matlab .m file that runs latex on background and produce a .pdf file. Attached. It is also using a2ping script, which is too big for mailinglist, google for it, or I can send it in private e-mail. Vasek On Friday 27 May 2005 10:08, Richard Wang wrote: Hi, Anyone use laprint, a matlab function, successfully in lyx? Richard -- -- --- Ing. Vaclav Smidl, Ph.D.tel: +420 26605 2420 AS department, Institute web: http://www.utia.cas.cz/AS/smidl/ of Information Theory and Automation, fax: +420 26605 2068 Prague, Czech Republic
Re: laprint & psfrag
On Friday 27 May 2005 19:40, Richard Wang wrote: > Hi Vasek, > > Thanks for the message. I tried to run monoprint with the following > code, > > x=0:0.1:1 > plot(x,sin(x)) > monoprint(1,'test4',2) > Strange. Works fine on my setup. (Linux, tetex) BTW, I would not use 2 as the third argument. The picture would be bigger than the page of article class. You would need to add a3paper to its options. > But the system hung... Well, this happens when there is malformed latex code in the figure and latex runs in interactive mode. Do you have all the packages? graphicp,psfrag, geometry Actually, you do not need graphicp, change it to graphicx, it should also work. What happens if you go to /tmp and run: latex pcttmp.tex manually? Vasek -- - Ing. Vaclav Smidl, Ph.D.tel: +420 26605 2420 AS department, Institute web: http://www.utia.cas.cz/AS/smidl/ of Information Theory and Automation, fax: +420 26605 2068 Prague, Czech Republic
Re: laprint & psfrag
that's exact what I did. I changed graphicp to graphicx, It runs well in the beginning, but the system could not find the file mono-pre.tex. There should be a way to fix it.. LaTeX2e <2003/12/01> Babel and hyphenation patterns for american, french, german, ngerman, n ohyphenation, loaded. (/usr/local/teTeX/share/texmf.tetex/tex/latex/base/article.cls Document Class: article 2004/02/16 v1.4f Standard LaTeX document class (/usr/local/teTeX/share/texmf.tetex/tex/latex/base/size10.clo)) (/usr/local/teTeX/share/texmf.tetex/tex/latex/geometry/geometry.sty (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/keyval.sty) (/usr/local/teTeX/share/texmf.tetex/tex/latex/geometry/geometry.cfg)) (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/graphicx.sty (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/graphics.sty (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/trig.sty) (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/graphics.cfg) (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/dvips.def))) (/usr/local/teTeX/share/texmf.tetex/tex/latex/psfrag/psfrag.sty) ! LaTeX Error: File `mono-pre.tex' not found. Type X to quit or to proceed, or enter new name. (Default extension: tex) On May 27, 2005, at 11:10 AM, Vaclav Smidl wrote: On Friday 27 May 2005 19:40, Richard Wang wrote: Hi Vasek, Thanks for the message. I tried to run monoprint with the following code, x=0:0.1:1 plot(x,sin(x)) monoprint(1,'test4',2) Strange. Works fine on my setup. (Linux, tetex) BTW, I would not use 2 as the third argument. The picture would be bigger than the page of article class. You would need to add a3paper to its options. But the system hung... Well, this happens when there is malformed latex code in the figure and latex runs in interactive mode. Do you have all the packages? graphicp,psfrag, geometry Actually, you do not need graphicp, change it to graphicx, it should also work. What happens if you go to /tmp and run: latex pcttmp.tex manually? Vasek -- --- -- Ing. Vaclav Smidl, Ph.D.tel: +420 26605 2420 AS department, Institute web: http://www.utia.cas.cz/AS/smidl/ of Information Theory and Automation, fax: +420 26605 2068 Prague, Czech Republic
Re: laprint & psfrag
> > ! LaTeX Error: File `mono-pre.tex' not found. > Oh, sorry, I did not noticed that. It is a file with my personal newcommands. :-). Remove it or replace with your own... Best, Vasek
Re: laprint & psfrag
I see, I removed it. Now the line 36, ~/a2ping.pl part has problem, matlab shows: /Users/richardwang/a2ping.pl command does not exist. Then I replace ~/a2ping.pl by a2ping, but it shows: Compiling: LaTeX -> dvips -> pdf ... Died at /usr/local/teTeX/bin/powerpc-apple-darwin-current/a2ping line 1618, line 1. cd /tmp; a2ping laprint_out.ps: Signal 127 cp: /tmp/laprint_out.pdf: No such file or directory Any suggestions? Richard On May 27, 2005, at 12:43 PM, Vaclav Smidl wrote: ! LaTeX Error: File `mono-pre.tex' not found. Oh, sorry, I did not noticed that. It is a file with my personal newcommands. :-). Remove it or replace with your own... Best, Vasek
Re: laprint & psfrag
In case that someone knows a2ping, the line 1681 is: o_force_papersize: die if is_page1_stop(); # vvv ($llx,$lly,$urx,$ury)=(0,0,$papersize_x,$papersize_y); Thanks. Richard On May 27, 2005, at 1:01 PM, Richard Wang wrote: I see, I removed it. Now the line 36, ~/a2ping.pl part has problem, matlab shows: /Users/richardwang/a2ping.pl command does not exist. Then I replace ~/a2ping.pl by a2ping, but it shows: Compiling: LaTeX -> dvips -> pdf ... Died at /usr/local/teTeX/bin/powerpc-apple-darwin-current/a2ping line 1618, line 1. cd /tmp; a2ping laprint_out.ps: Signal 127 cp: /tmp/laprint_out.pdf: No such file or directory Any suggestions? Richard On May 27, 2005, at 12:43 PM, Vaclav Smidl wrote: ! LaTeX Error: File `mono-pre.tex' not found. Oh, sorry, I did not noticed that. It is a file with my personal newcommands. :-). Remove it or replace with your own... Best, Vasek
Re: psfrag
Am Samstag, 29. Mai 2004 00:16 schrieb Jim Ragsdale: I am trying to get psfrag to insert a greek symbol in my eps figure. I made the eps in xfig and the included text says 10 G1m. I would like to replace the G1 with a greek mu. I added \usepackage{psfrag} to the preamble. Then in the figure float in ERT right before the graphic, i added \psfrag{G1}{$\mu$} in ERT. When I preview in ps nothing happens. Can anyone tell me the proper way to add greek symbols using psfrag? You can only replace the whole string, e.g. you should use \psfrag{10 G1m}{$10\mu m$} BTW, if you want to see the replacement in lyx you can do \psfrag{10 G1m}{ in ERT, then write the replacement in normal text or math, and then } in ERT again. Since this looks like 10 micrometer you could also have a look at the siunits package. Georg