Re: Problems with jpg-quality with ps2pdf
Hallo Robert, actually, this is not the problem of LyX nor LaTeX, but the problem of selected type of figure format. You made a vector figure but you save as a loosy compressed raster format. If you want the same figure as in Corel, either you use eps format (as suggested by Yago), or you use tiff with 450 or 600 dpi resolution (or you may compress as PNG). I prefer 600 dpi tiff format. You have only 10 figure, I think no problem with 600 dpi. Some eps from Corel may not be opened by some eps rendering program (like gv or epstopdf). If so, you can remove unneeded part of eps file (using text editor), for example the unknown text befor %!PS-Adobe-3.0 EPSF-3.0 and after %%EOF (the newer Corel may not produce it). Wayan --- On Fri, 5/22/09, Yago diazd...@ono.com wrote: If you use Coreldraw, don't export to jpg you graphic, but directly to eps type 2 and you will have best quality and no pixelated contours. - Original Message - From: Robert Neumann ro.neum...@web.de To: lyx-users@lists.lyx.org Sent: Friday, May 22, 2009 10:32 AM Subject: Problems with jpg-quality with ps2pdf Hello, I have a problem with the quality of jpg-images. I have a jpg image with best quality, made with coreldraw (actually I use coreldraw to to work on the existing jpg-file, which contains function-graphs and other curves) When I open it, the quality is good, there are no little dots from the compression around the numbers. Them I create a pdf with ps2pdf and I get lots of these little dots. So the jpg quality seems to be reduced by lyx during the export process, because the dvi is fine. I just need to use ps2pdf, because the pdf is processed at another place and they can only deal with pdfs made with ps2pdf I' using Lyx 1.3.4 on a Suse Linux (and I dont want to update, because all new lyx are slower it has to to with the latex) Thanks Robert
Table of Content in Book-document style
Hi!, 1. Why is my Table of Content page empty?(I've inserted TOC in my main.lyx file among the other files) 2. On some of my pages, the page number apear on top of the page, and there is also added CONTENTS on top of the same page. Any ideas? Thanks so much! //ole from Norway
Re: Problems with jpg-quality with ps2pdf
What I do not understand is:If you compare LyX 1.3 and LyX 1.6 on the same system (using the same LaTeX installation), do you see a delay then? As far as I remember: no. But I remember that it was extremly difficult to install 1.4 on the SuSE Linux, because of YAST, which sticks to the lyx, that came with the distribution. (And I'm not such a Linux Pro that I could override this). I just installed a newer Linux with a newer Lyx and was very surprised to find out, that everything was slow suddenly.
Re: Problems with jpg-quality with ps2pdf
Robert Neumann wrote: As far as I remember: no. But I remember that it was extremly difficult to install 1.4 on the SuSE Linux, because of YAST, which sticks to the lyx, that came with the distribution. (And I'm not such a Linux Pro that I could override this). It will certainly be difficult to install LyX 1.6 on such an old system, since the requirements (compiler, Qt 4 etc.) changed too much, especially if you don't want to compile yourself. Jürgen
Re: Problems with jpg-quality with ps2pdf
Robert Neumann wrote: What I do not understand is:If you compare LyX 1.3 and LyX 1.6 on the same system (using the same LaTeX installation), do you see a delay then? As far as I remember: no. But I remember that it was extremly difficult to install 1.4 on the SuSE Linux, because of YAST, which sticks to the lyx, that came with the distribution. (And I'm not such a Linux Pro that I could override this). I just installed a newer Linux with a newer Lyx and was very surprised to find out, that everything was slow suddenly. Hi Robert, You should try nevetheless 1.6.x because it could well be that it is much faster now than 1.3 thanks to the converter cache. Basically, LyX now store and reuse any converted graphics. Abdel.
Re: Problems with jpg-quality with ps2pdf
Hi Steve, thanks for the shell skript. I will work with this later, unfortunately I have only my old Lyx 1.3.4 on an old Suse Linux 9.1 and because of YAST I could not install a newer Lyx on the same machine. But I have a Lyx 1.5 on a Suse Linux 11. It is a strange situation now: - I tried with Lyx 1.5 (Suse 11): no pixels - I checked the ps-File on Lyx 1.3 (Suse 9.1): no pixels So I figured out that the problem would be with ps2pdf on the old linux. I replaced the ps2pdf on the Suse 9.1 with the one from the Linux 11: still pixels. So this seems really strange to me, cause I can see no other source for the pixelation than the ps2pdf, if the ps is ok... Regards Robert
Re: Problems with jpg-quality with ps2pdf
Hello Wayan, I usually use eps for all my vektordrawings, but once in a while I have to include an jpg, but the funny thing is, that it works with Lyx 1.5 on a Suse 11,so it seems to be possible. The ps-File on my old Suse with Lyx 1.3 has no pixels either when I export to ps(as I just posted in reply to Steve) but when I use the ps2pdf from the new Linux on the old Linux, it still has pixels. So it is very odd to figure out where the problem lies. Regards Robert
Fwd: .tex to LyX (attached file)
-- Forwarded message -- From: Daniel Pereira danielreispere...@gmail.com Date: Wed, May 20, 2009 at 11:47 PM Subject: Re: .tex to LyX (attached file) To: rgheck rgh...@bobjweil.com, lyx-users lyx-users@lists.lyx.org On Tue, May 19, 2009 at 8:09 AM, rgheck rgh...@bobjweil.com wrote: Daniel Pereira wrote: OK, I guess I should mention the fact that I started using LyX two weeks ago, and that I have no programming background. Although I am very willing to do this. That's fine, and if it weren't for the fact that you wanted to use a specialized LaTeX class, you'd probably be sailing along. But you've jumped right into the deep end. What I could do from what you said was: 1. to import the .sty, .cls.. LyX now recognizes the ufthesis.layout ! =) Good. 2. By compiling you mean import the main TEX file (ufsampleETD.tex)? By compiling, I mean processing your document to produce output. You can do this to the LaTeX document itself. If you try to do it to chapter1.tex, you will get errors. When I import the ufsampleETD.tex, I am getting not many ERTs. Most of them are %comments. The commands that LyX appears to not recognize are: \makecopyright, \phantomsection, \addtocontents{TOC} , \protect, \addvspace{10pt} {CHAPTER} {\ \protect} (this last one in order to add the word CHAPTER to the table of contents) I cannot generate an output, because of the following errors: LaTeX Error: Option clash for package graphicx; description: \usepackage {amsmath} The package graphicx has already been loaded with options: [] There has now been an attempt to load it with options [dvipdfm] Adding the global options: ,dvipdfm to your \documentclass declaration may fix this. LaTeX Error: Something's wrong--perhaps a missing \item. ...S AND DISSERTATION TEMPLATE}}{9}{chapter.1} Try typing return to proceed. If that doesn't work, type X return to quit.Try typing return to proceed. Package inputenc Error: Keyboard character used is undefined This is an example of a {}``short’ ’ list. Not because there's only You need to provide a definition with \DeclareInputText or \DeclareInputMath before using this key. I suspect this is because of various packages that are being loaded in the preamble of the document, that LyX is automatically loading earlier. Maybe the simplest thing to do is to post the imported file, and I can have a look at it. If explained in more detail, I can try to do the bash part.( I am on a Mac, OS X 10.5). Are you talking about running that code in a terminal? Sorry about this, I have zero experience with programming. Yes, run it in a terminal. To do the conversion, open a terminal and get yourself to whatever directory contains the thesis template. Let's say that's /users/you/template. Then you'll do: # cd /users/you/template # for i in *tex; do tex2lyx -c ufthesis $i; done And the LyX files will be in that directory now. Richard Thanks again for the help. Here is my progress: 1. I imported *all* the .tex files into .lyx files. I am still getting the errors when trying to compile the main file ufsampleETD.lyx file. 2. the bash on Mac does not recognize the tex2lyx. I reinstalled the latest version (1.6.2) twice, and I still cannot get the tex2lyx to work. If I try to to do an import manually (LyX Import (plain Tex) ) I get the same error, saying that LyX could not access tex2lyx. This does NOThappen in a Windows environment. I am attaching a zipped version of the folder containing the lyx, tex and companion files. Thanks again for the help. Here is my progress: 1. I imported *all* the .tex files into .lyx files, but I am still getting the errors when trying to compile the main file ufsampleETD.lyx file. 2. the bash on Mac does not recognize the tex2lyx. I reinstalled the latest version (1.6.2) twice, and I still cannot get the tex2lyx to work. If I try to to do an import manually (LyX Import (plain Tex) ) I get the same error, saying that LyX could not access tex2lyx. This does NOT happen in a Windows environment. The attachment is too large to be sent to this list. I will be glad to provide anyone with the folder containing the lyx, tex and companion files. (drpereira(at)ufl.edu)
Re: Is PDF the best graphic format for LyX?
Steve Litt wrote: Hi all, Is it my imagination, or do things go MUCH better when graphics included in a LyX diagram are PDFs? That's what I've found. I've found them infinitely and continuously scalable, and if I create the PDF with embed fonts, I think they work anywhere. for simple diagrams i found fig or dia pictures to be better alternative, because you can still edit them even if included into lyx document, internal conversion inside lyx doesn't break their vector-like nature inside output pdf. if used with version control you can even see comprehensible diffs for these pictures if small bits change... pavel
Re: Is PDF the best graphic format for LyX?
On Saturday 23 May 2009 06:25:23 pm Pavel Sanda wrote: Steve Litt wrote: Hi all, Is it my imagination, or do things go MUCH better when graphics included in a LyX diagram are PDFs? That's what I've found. I've found them infinitely and continuously scalable, and if I create the PDF with embed fonts, I think they work anywhere. for simple diagrams i found fig or dia pictures to be better alternative, because you can still edit them even if included into lyx document, internal conversion inside lyx doesn't break their vector-like nature inside output pdf. if used with version control you can even see comprehensible diffs for these pictures if small bits change... pavel That's good information. A couple years ago I directly used inkscape drawings (after vacuuming the .svg), and things didn't go well at all. I don't remember the specfics. I'll try it again. The less versions of the same diagram, the better. I really hate having a .svg and a .pdf and having to remember they're really the same and the .svg is the source. Thanks SteveT Steve Litt Recession Relief Package http://www.recession-relief.US Twitter: http://www.twitter.com/stevelitt
Re: Problems with jpg-quality with ps2pdf
Hallo Robert, actually, this is not the problem of LyX nor LaTeX, but the problem of selected type of figure format. You made a vector figure but you save as a loosy compressed raster format. If you want the same figure as in Corel, either you use eps format (as suggested by Yago), or you use tiff with 450 or 600 dpi resolution (or you may compress as PNG). I prefer 600 dpi tiff format. You have only 10 figure, I think no problem with 600 dpi. Some eps from Corel may not be opened by some eps rendering program (like gv or epstopdf). If so, you can remove unneeded part of eps file (using text editor), for example the unknown text befor %!PS-Adobe-3.0 EPSF-3.0 and after %%EOF (the newer Corel may not produce it). Wayan --- On Fri, 5/22/09, Yago diazd...@ono.com wrote: If you use Coreldraw, don't export to jpg you graphic, but directly to eps type 2 and you will have best quality and no pixelated contours. - Original Message - From: Robert Neumann ro.neum...@web.de To: lyx-users@lists.lyx.org Sent: Friday, May 22, 2009 10:32 AM Subject: Problems with jpg-quality with ps2pdf Hello, I have a problem with the quality of jpg-images. I have a jpg image with best quality, made with coreldraw (actually I use coreldraw to to work on the existing jpg-file, which contains function-graphs and other curves) When I open it, the quality is good, there are no little dots from the compression around the numbers. Them I create a pdf with ps2pdf and I get lots of these little dots. So the jpg quality seems to be reduced by lyx during the export process, because the dvi is fine. I just need to use ps2pdf, because the pdf is processed at another place and they can only deal with pdfs made with ps2pdf I' using Lyx 1.3.4 on a Suse Linux (and I dont want to update, because all new lyx are slower it has to to with the latex) Thanks Robert
Table of Content in Book-document style
Hi!, 1. Why is my Table of Content page empty?(I've inserted TOC in my main.lyx file among the other files) 2. On some of my pages, the page number apear on top of the page, and there is also added CONTENTS on top of the same page. Any ideas? Thanks so much! //ole from Norway
Re: Problems with jpg-quality with ps2pdf
What I do not understand is:If you compare LyX 1.3 and LyX 1.6 on the same system (using the same LaTeX installation), do you see a delay then? As far as I remember: no. But I remember that it was extremly difficult to install 1.4 on the SuSE Linux, because of YAST, which sticks to the lyx, that came with the distribution. (And I'm not such a Linux Pro that I could override this). I just installed a newer Linux with a newer Lyx and was very surprised to find out, that everything was slow suddenly.
Re: Problems with jpg-quality with ps2pdf
Robert Neumann wrote: As far as I remember: no. But I remember that it was extremly difficult to install 1.4 on the SuSE Linux, because of YAST, which sticks to the lyx, that came with the distribution. (And I'm not such a Linux Pro that I could override this). It will certainly be difficult to install LyX 1.6 on such an old system, since the requirements (compiler, Qt 4 etc.) changed too much, especially if you don't want to compile yourself. Jürgen
Re: Problems with jpg-quality with ps2pdf
Robert Neumann wrote: What I do not understand is:If you compare LyX 1.3 and LyX 1.6 on the same system (using the same LaTeX installation), do you see a delay then? As far as I remember: no. But I remember that it was extremly difficult to install 1.4 on the SuSE Linux, because of YAST, which sticks to the lyx, that came with the distribution. (And I'm not such a Linux Pro that I could override this). I just installed a newer Linux with a newer Lyx and was very surprised to find out, that everything was slow suddenly. Hi Robert, You should try nevetheless 1.6.x because it could well be that it is much faster now than 1.3 thanks to the converter cache. Basically, LyX now store and reuse any converted graphics. Abdel.
Re: Problems with jpg-quality with ps2pdf
Hi Steve, thanks for the shell skript. I will work with this later, unfortunately I have only my old Lyx 1.3.4 on an old Suse Linux 9.1 and because of YAST I could not install a newer Lyx on the same machine. But I have a Lyx 1.5 on a Suse Linux 11. It is a strange situation now: - I tried with Lyx 1.5 (Suse 11): no pixels - I checked the ps-File on Lyx 1.3 (Suse 9.1): no pixels So I figured out that the problem would be with ps2pdf on the old linux. I replaced the ps2pdf on the Suse 9.1 with the one from the Linux 11: still pixels. So this seems really strange to me, cause I can see no other source for the pixelation than the ps2pdf, if the ps is ok... Regards Robert
Re: Problems with jpg-quality with ps2pdf
Hello Wayan, I usually use eps for all my vektordrawings, but once in a while I have to include an jpg, but the funny thing is, that it works with Lyx 1.5 on a Suse 11,so it seems to be possible. The ps-File on my old Suse with Lyx 1.3 has no pixels either when I export to ps(as I just posted in reply to Steve) but when I use the ps2pdf from the new Linux on the old Linux, it still has pixels. So it is very odd to figure out where the problem lies. Regards Robert
Fwd: .tex to LyX (attached file)
-- Forwarded message -- From: Daniel Pereira danielreispere...@gmail.com Date: Wed, May 20, 2009 at 11:47 PM Subject: Re: .tex to LyX (attached file) To: rgheck rgh...@bobjweil.com, lyx-users lyx-users@lists.lyx.org On Tue, May 19, 2009 at 8:09 AM, rgheck rgh...@bobjweil.com wrote: Daniel Pereira wrote: OK, I guess I should mention the fact that I started using LyX two weeks ago, and that I have no programming background. Although I am very willing to do this. That's fine, and if it weren't for the fact that you wanted to use a specialized LaTeX class, you'd probably be sailing along. But you've jumped right into the deep end. What I could do from what you said was: 1. to import the .sty, .cls.. LyX now recognizes the ufthesis.layout ! =) Good. 2. By compiling you mean import the main TEX file (ufsampleETD.tex)? By compiling, I mean processing your document to produce output. You can do this to the LaTeX document itself. If you try to do it to chapter1.tex, you will get errors. When I import the ufsampleETD.tex, I am getting not many ERTs. Most of them are %comments. The commands that LyX appears to not recognize are: \makecopyright, \phantomsection, \addtocontents{TOC} , \protect, \addvspace{10pt} {CHAPTER} {\ \protect} (this last one in order to add the word CHAPTER to the table of contents) I cannot generate an output, because of the following errors: LaTeX Error: Option clash for package graphicx; description: \usepackage {amsmath} The package graphicx has already been loaded with options: [] There has now been an attempt to load it with options [dvipdfm] Adding the global options: ,dvipdfm to your \documentclass declaration may fix this. LaTeX Error: Something's wrong--perhaps a missing \item. ...S AND DISSERTATION TEMPLATE}}{9}{chapter.1} Try typing return to proceed. If that doesn't work, type X return to quit.Try typing return to proceed. Package inputenc Error: Keyboard character used is undefined This is an example of a {}``short’ ’ list. Not because there's only You need to provide a definition with \DeclareInputText or \DeclareInputMath before using this key. I suspect this is because of various packages that are being loaded in the preamble of the document, that LyX is automatically loading earlier. Maybe the simplest thing to do is to post the imported file, and I can have a look at it. If explained in more detail, I can try to do the bash part.( I am on a Mac, OS X 10.5). Are you talking about running that code in a terminal? Sorry about this, I have zero experience with programming. Yes, run it in a terminal. To do the conversion, open a terminal and get yourself to whatever directory contains the thesis template. Let's say that's /users/you/template. Then you'll do: # cd /users/you/template # for i in *tex; do tex2lyx -c ufthesis $i; done And the LyX files will be in that directory now. Richard Thanks again for the help. Here is my progress: 1. I imported *all* the .tex files into .lyx files. I am still getting the errors when trying to compile the main file ufsampleETD.lyx file. 2. the bash on Mac does not recognize the tex2lyx. I reinstalled the latest version (1.6.2) twice, and I still cannot get the tex2lyx to work. If I try to to do an import manually (LyX Import (plain Tex) ) I get the same error, saying that LyX could not access tex2lyx. This does NOThappen in a Windows environment. I am attaching a zipped version of the folder containing the lyx, tex and companion files. Thanks again for the help. Here is my progress: 1. I imported *all* the .tex files into .lyx files, but I am still getting the errors when trying to compile the main file ufsampleETD.lyx file. 2. the bash on Mac does not recognize the tex2lyx. I reinstalled the latest version (1.6.2) twice, and I still cannot get the tex2lyx to work. If I try to to do an import manually (LyX Import (plain Tex) ) I get the same error, saying that LyX could not access tex2lyx. This does NOT happen in a Windows environment. The attachment is too large to be sent to this list. I will be glad to provide anyone with the folder containing the lyx, tex and companion files. (drpereira(at)ufl.edu)
Re: Is PDF the best graphic format for LyX?
Steve Litt wrote: Hi all, Is it my imagination, or do things go MUCH better when graphics included in a LyX diagram are PDFs? That's what I've found. I've found them infinitely and continuously scalable, and if I create the PDF with embed fonts, I think they work anywhere. for simple diagrams i found fig or dia pictures to be better alternative, because you can still edit them even if included into lyx document, internal conversion inside lyx doesn't break their vector-like nature inside output pdf. if used with version control you can even see comprehensible diffs for these pictures if small bits change... pavel
Re: Is PDF the best graphic format for LyX?
On Saturday 23 May 2009 06:25:23 pm Pavel Sanda wrote: Steve Litt wrote: Hi all, Is it my imagination, or do things go MUCH better when graphics included in a LyX diagram are PDFs? That's what I've found. I've found them infinitely and continuously scalable, and if I create the PDF with embed fonts, I think they work anywhere. for simple diagrams i found fig or dia pictures to be better alternative, because you can still edit them even if included into lyx document, internal conversion inside lyx doesn't break their vector-like nature inside output pdf. if used with version control you can even see comprehensible diffs for these pictures if small bits change... pavel That's good information. A couple years ago I directly used inkscape drawings (after vacuuming the .svg), and things didn't go well at all. I don't remember the specfics. I'll try it again. The less versions of the same diagram, the better. I really hate having a .svg and a .pdf and having to remember they're really the same and the .svg is the source. Thanks SteveT Steve Litt Recession Relief Package http://www.recession-relief.US Twitter: http://www.twitter.com/stevelitt
Re: Problems with jpg-quality with ps2pdf
Hallo Robert, actually, this is not the problem of LyX nor LaTeX, but the problem of selected type of figure format. You made a vector figure but you save as a loosy compressed raster format. If you want the same figure as in Corel, either you use eps format (as suggested by Yago), or you use tiff with 450 or 600 dpi resolution (or you may compress as PNG). I prefer 600 dpi tiff format. You have only 10 figure, I think no problem with 600 dpi. Some eps from Corel may not be opened by some eps rendering program (like gv or epstopdf). If so, you can remove unneeded part of eps file (using text editor), for example the unknown text befor %!PS-Adobe-3.0 EPSF-3.0 and after %%EOF (the newer Corel may not produce it). Wayan --- On Fri, 5/22/09, Yagowrote: > If you use Coreldraw, don't export to > jpg you graphic, but directly to eps type 2 and you will > have best quality and no pixelated contours. > > - Original Message - From: "Robert Neumann" > To: > Sent: Friday, May 22, 2009 10:32 AM > Subject: Problems with jpg-quality with ps2pdf > > > > Hello, > > I have a problem with the quality of jpg-images. > > I have a jpg image with best quality, made with > coreldraw (actually I use > > coreldraw to to work on the existing jpg-file, which > contains function-graphs > > and other curves) > > When I open it, the quality is good, there are no > "little dots" from the > > compression around the numbers. > > Them I create a pdf with ps2pdf and I get lots of > these little dots. > > So the jpg quality seems to be reduced by lyx during > the export process, because > > the dvi is fine. > > I just need to use ps2pdf, because the pdf is > processed at another place and > > they can only deal with pdfs made with ps2pdf > > I' using Lyx 1.3.4 on a Suse Linux (and I dont want to > update, because all new > > lyx are slower it has to to with the latex) > > Thanks Robert >
Table of Content in Book-document style
Hi!, 1. Why is my Table of Content page empty?(I've inserted TOC in my main.lyx file among the other files) 2. On some of my pages, the page number apear on top of the page, and there is also added "CONTENTS" on top of the same page. Any ideas? Thanks so much! //ole from Norway
Re: Problems with jpg-quality with ps2pdf
> What I do not understand is:If you compare LyX 1.3 and LyX 1.6 on the same > system (using the same LaTeX installation), do you see a delay then? As far as I remember: no. But I remember that it was extremly difficult to install 1.4 on the SuSE Linux, because of YAST, which sticks to the lyx, that came with the distribution. (And I'm not such a Linux Pro that I could override this). I just installed a newer Linux with a newer Lyx and was very surprised to find out, that everything was slow suddenly.
Re: Problems with jpg-quality with ps2pdf
Robert Neumann wrote: > As far as I remember: no. But I remember that it was extremly difficult to > install 1.4 on the SuSE Linux, because of YAST, which sticks to the lyx, > that came with the distribution. (And I'm not such a Linux Pro that I could > override this). It will certainly be difficult to install LyX 1.6 on such an old system, since the requirements (compiler, Qt 4 etc.) changed too much, especially if you don't want to compile yourself. Jürgen
Re: Problems with jpg-quality with ps2pdf
Robert Neumann wrote: What I do not understand is:If you compare LyX 1.3 and LyX 1.6 on the same system (using the same LaTeX installation), do you see a delay then? As far as I remember: no. But I remember that it was extremly difficult to install 1.4 on the SuSE Linux, because of YAST, which sticks to the lyx, that came with the distribution. (And I'm not such a Linux Pro that I could override this). I just installed a newer Linux with a newer Lyx and was very surprised to find out, that everything was slow suddenly. Hi Robert, You should try nevetheless 1.6.x because it could well be that it is much faster now than 1.3 thanks to the converter cache. Basically, LyX now store and reuse any converted graphics. Abdel.
Re: Problems with jpg-quality with ps2pdf
Hi Steve, thanks for the shell skript. I will work with this later, unfortunately I have only my old Lyx 1.3.4 on an old Suse Linux 9.1 and because of YAST I could not install a newer Lyx on the same machine. But I have a Lyx 1.5 on a Suse Linux 11. It is a strange situation now: - I tried with Lyx 1.5 (Suse 11): no pixels - I checked the ps-File on Lyx 1.3 (Suse 9.1): no pixels So I figured out that the problem would be with ps2pdf on the old linux. I replaced the ps2pdf on the Suse 9.1 with the one from the Linux 11: still pixels. So this seems really strange to me, cause I can see no other source for the pixelation than the ps2pdf, if the ps is ok... Regards Robert
Re: Problems with jpg-quality with ps2pdf
Hello Wayan, I usually use eps for all my vektordrawings, but once in a while I have to include an jpg, but the funny thing is, that it works with Lyx 1.5 on a Suse 11,so it seems to be possible. The ps-File on my old Suse with Lyx 1.3 has no pixels either when I export to ps(as I just posted in reply to Steve) but when I use the ps2pdf from the new Linux on the old Linux, it still has pixels. So it is very odd to figure out where the problem lies. Regards Robert
Fwd: .tex to LyX (attached file)
-- Forwarded message -- From: Daniel PereiraDate: Wed, May 20, 2009 at 11:47 PM Subject: Re: .tex to LyX (attached file) To: rgheck , lyx-users On Tue, May 19, 2009 at 8:09 AM, rgheck wrote: Daniel Pereira wrote: OK, I guess I should mention the fact that I started using LyX two weeks ago, and that I have no programming background. Although I am very willing to do this. That's fine, and if it weren't for the fact that you wanted to use a specialized LaTeX class, you'd probably be sailing along. But you've jumped right into the deep end. What I could do from what you said was: 1. to import the .sty, .cls.. LyX now recognizes the "ufthesis.layout" ! =) Good. 2. By "compiling" you mean import the main TEX file (ufsampleETD.tex"")? By "compiling", I mean processing your document to produce output. You can do this to the LaTeX document itself. If you try to do it to chapter1.tex, you will get errors. When I import the "ufsampleETD.tex", I am getting not many ERTs. Most of them are "%comments". The commands that LyX appears to not recognize are: \makecopyright, \phantomsection, \addtocontents{TOC} , \protect, \addvspace{10pt} {CHAPTER} {\ \protect} (this last one in order to add the word CHAPTER to the table of contents) I cannot generate an output, because of the following errors: LaTeX Error: Option clash for package graphicx; description: \usepackage {amsmath} The package graphicx has already been loaded with options: [] There has now been an attempt to load it with options [dvipdfm] Adding the global options: ,dvipdfm to your \documentclass declaration may fix this. LaTeX Error: Something's wrong--perhaps a missing \item. ...S AND DISSERTATION TEMPLATE}}{9}{chapter.1} Try typing to proceed. If that doesn't work, type X to quit.Try typing to proceed. Package inputenc Error: Keyboard character used is undefined This is an example of a {}``short’ ’ list. Not because there's only You need to provide a definition with \DeclareInputText or \DeclareInputMath before using this key. I suspect this is because of various packages that are being loaded in the preamble of the document, that LyX is automatically loading earlier. Maybe the simplest thing to do is to post the imported file, and I can have a look at it. If explained in more detail, I can try to do the "bash part".( I am on a Mac, OS X 10.5). Are you talking about running that code in a terminal? Sorry about this, I have zero experience with programming. Yes, run it in a terminal. To do the conversion, open a terminal and get yourself to whatever directory contains the thesis template. Let's say that's /users/you/template. Then you'll do: # cd /users/you/template # for i in *tex; do tex2lyx -c ufthesis $i; done And the LyX files will be in that directory now. Richard Thanks again for the help. Here is my progress: 1. I imported *all* the ".tex" files into ".lyx" files. I am still getting the errors when trying to compile the main file ufsampleETD.lyx file. 2. the bash on Mac does not recognize the "tex2lyx". I reinstalled the latest version (1.6.2) twice, and I still cannot get the tex2lyx to work. If I try to to do an import manually (LyX > Import (plain Tex) ) I get the same error, saying that LyX could not access tex2lyx. This does NOThappen in a Windows environment. I am attaching a zipped version of the folder containing the lyx, tex and companion files. Thanks again for the help. Here is my progress: 1. I imported *all* the ".tex" files into ".lyx" files, but I am still getting the errors when trying to compile the main file ufsampleETD.lyx file. 2. the bash on Mac does not recognize the "tex2lyx". I reinstalled the latest version (1.6.2) twice, and I still cannot get the tex2lyx to work. If I try to to do an import manually (LyX > Import (plain Tex) ) I get the same error, saying that LyX could not access tex2lyx. This does NOT happen in a Windows environment. The attachment is too large to be sent to this list. I will be glad to provide anyone with the folder containing the lyx, tex and companion files. (drpereira(at)ufl.edu)
Re: Is PDF the best graphic format for LyX?
Steve Litt wrote: > Hi all, > > Is it my imagination, or do things go MUCH better when graphics included in a > LyX diagram are PDFs? That's what I've found. I've found them infinitely and > continuously scalable, and if I create the PDF with "embed fonts", I think > they work anywhere. for simple diagrams i found fig or dia pictures to be better alternative, because you can still edit them even if included into lyx document, internal conversion inside lyx doesn't break their vector-like nature inside output pdf. if used with version control you can even see comprehensible diffs for these pictures if small bits change... pavel
Re: Is PDF the best graphic format for LyX?
On Saturday 23 May 2009 06:25:23 pm Pavel Sanda wrote: > Steve Litt wrote: > > Hi all, > > > > Is it my imagination, or do things go MUCH better when graphics included > > in a LyX diagram are PDFs? That's what I've found. I've found them > > infinitely and continuously scalable, and if I create the PDF with "embed > > fonts", I think they work anywhere. > > for simple diagrams i found fig or dia pictures to be better alternative, > because you can still edit them even if included into lyx document, > internal conversion inside lyx doesn't break their vector-like nature > inside output pdf. > > if used with version control you can even see comprehensible diffs for > these pictures if small bits change... > > pavel That's good information. A couple years ago I directly used inkscape drawings (after "vacuuming" the .svg), and things didn't go well at all. I don't remember the specfics. I'll try it again. The less versions of the same diagram, the better. I really hate having a .svg and a .pdf and having to remember they're really the same and the .svg is the source. Thanks SteveT Steve Litt Recession Relief Package http://www.recession-relief.US Twitter: http://www.twitter.com/stevelitt