Re: LyX png and eps
On May 8, 2006, at 5:38 PM, Maria Gouskova wrote: I cannot say that I understand what LyX does with the preferences file exactly, because the installer appears to copy the preferences on its own during the installation process. But it isn't clear which preferences file it copies. After poking around my hard drive, I realized that I now have at least *three* LyX preferences files: one in Library/Application Support/LyX (original 1.3.7 file), one in /Library/Application Support/LyX-1.4 (contents identical to the first one, from what I can see), and in Applications/LyX.app/Contents/Resources (different contents). The directory LyX-1.4 was installed by LyX 1.4.1, and the directory LyX (inside Lib/App Support) is leftover from LyX 1.3.7, apparently unchanged by the upgrade. Everything righted itself after I deleted the second file, Library/ Application Support/LyX-1.4. I am attaching all three files for your perusal. Maria Thanks. On the Mac, preference files within LyX.app are the default preferences; when you first change any preference setting, LyX creates a new preferences file in the User's directory using the defaults as a template. LyX-1.3.5+ used ~/Library/Application Support/ LyX for the User's directory; LyX-1.4.x uses ~/Library/Application Support/LyX-1.4 for the User's directory. (The change in location here is designed so that users can continue to use 1.3.x and 1.4.x simultaneously, if they so desire. Various settings or files in the User's directory are incompatible between the two versions.) The 1.4.x installer copies your 1.3.x directory to the new location and modifies some settings to reflect that change. However, the installer should not touch format/converter settings, and so the difficulty you've had in upgrading should not happen. Nonetheless, something went wrong. Unfortunately, the preferences files you sent don't reveal to me what the problem was. And I'm out of ideas for what else might have caused the problem. Bennett
Re: LyX png and eps
I cannot say that I understand what LyX does with the preferences file exactly, because the installer appears to copy the preferences on its own during the installation process. But it isn't clear which preferences file it copies. After poking around my hard drive, I realized that I now have at least *three* LyX preferences files: one in Library/Application Support/LyX (original 1.3.7 file), one in / Library/Application Support/LyX-1.4 (contents identical to the first one, from what I can see), and in Applications/LyX.app/Contents/ Resources (different contents). The directory LyX-1.4 was installed by LyX 1.4.1, and the directory LyX (inside Lib/App Support) is leftover from LyX 1.3.7, apparently unchanged by the upgrade. Everything righted itself after I deleted the second file, Library/ Application Support/LyX-1.4. I am attaching all three files for your perusal. Maria preferences_1_4_1 Description: Binary data preferences_inside_lyx Description: Binary data preferences1_3_7 Description: Binary data On May 8, 2006, at 11:57 AM, Stephen Harris wrote: Maria Gouskova wrote: Well, I am no pro at this, but it appears that ImageMagick was in fact installed on my machine, because deleting the preferences file (as per Bennett Helm's suggestion) fixed the problem. That was all I had to do. My guess is that the installer script somehow messed up in my case when it converted my 1.3.7 preferences/settings to 1.4.1. I had a couple of problems after conversion, including Instant Preview and this. My advice to anyone with the same setup (Mac OS 10.4.6, LyX 1.3 to 1.4 upgrade) is to reconfigure LyX and to delete the preferences file and reset preferences manually after upgrading. It won't hurt and it might fix a few things. Maria http://wiki.lyx.org/FAQ/MacInstall * "If you had a ~/.lyx/preferences file from a previous installation of another version of LyX, either delete it or make sure the entries for viewers do not override the LyX/Mac defaults." SH: For Windows one of the few advantages is that LyX1.3.7 and LyX1.4.1 can co-exist without any problem that I know of. I'm not sure how dual installations are worked out for Mac or Linux. I suppose the old Pref file isn't deleted by default because there may not be a backup file of modifications, key bindings or whatever. I used to get my 137 tex2lyx improvement to relyx erased all the time. Have a good day, Stephen
Re: LyX png and eps
Maria Gouskova wrote: Well, I am no pro at this, but it appears that ImageMagick was in fact installed on my machine, because deleting the preferences file (as per Bennett Helm's suggestion) fixed the problem. That was all I had to do. My guess is that the installer script somehow messed up in my case when it converted my 1.3.7 preferences/settings to 1.4.1. I had a couple of problems after conversion, including Instant Preview and this. My advice to anyone with the same setup (Mac OS 10.4.6, LyX 1.3 to 1.4 upgrade) is to reconfigure LyX and to delete the preferences file and reset preferences manually after upgrading. It won't hurt and it might fix a few things. Maria http://wiki.lyx.org/FAQ/MacInstall * "If you had a ~/.lyx/preferences file from a previous installation of another version of LyX, either delete it or make sure the entries for viewers do not override the LyX/Mac defaults." SH: For Windows one of the few advantages is that LyX1.3.7 and LyX1.4.1 can co-exist without any problem that I know of. I'm not sure how dual installations are worked out for Mac or Linux. I suppose the old Pref file isn't deleted by default because there may not be a backup file of modifications, key bindings or whatever. I used to get my 137 tex2lyx improvement to relyx erased all the time. Have a good day, Stephen
Re: LyX png and eps
On May 8, 2006, at 10:35 AM, Maria Gouskova wrote: Well, I am no pro at this, but it appears that ImageMagick was in fact installed on my machine, because deleting the preferences file (as per Bennett Helm's suggestion) fixed the problem. That was all I had to do. My guess is that the installer script somehow messed up in my case when it converted my 1.3.7 preferences/settings to 1.4.1. I had a couple of problems after conversion, including Instant Preview and this. My advice to anyone with the same setup (Mac OS 10.4.6, LyX 1.3 to 1.4 upgrade) is to reconfigure LyX and to delete the preferences file and reset preferences manually after upgrading. It won't hurt and it might fix a few things. Maria Well, I'd hope that's not the correct advice! User preferences should be respected on upgrading to a new version. If the installer somehow corrupted the preferences file, that should be fixed. Is it possible for you to send me copies of your old and new preferences files so that I can try to determine what went wrong? Thanks. Bennett
Re: LyX png and eps
Well, I am no pro at this, but it appears that ImageMagick was in fact installed on my machine, because deleting the preferences file (as per Bennett Helm's suggestion) fixed the problem. That was all I had to do. My guess is that the installer script somehow messed up in my case when it converted my 1.3.7 preferences/settings to 1.4.1. I had a couple of problems after conversion, including Instant Preview and this. My advice to anyone with the same setup (Mac OS 10.4.6, LyX 1.3 to 1.4 upgrade) is to reconfigure LyX and to delete the preferences file and reset preferences manually after upgrading. It won't hurt and it might fix a few things. Maria On May 8, 2006, at 10:22 AM, Stephen Harris wrote: Maria Gouskova wrote: I have the same exact problem, also on Mac OS 10.4.6--upgrading from 1.3x to 1.4 broke image support. I used JPEG images, and LyX says it cannot find a converter. Reconfiguring LyX didn't fix it. What is the converter for JPEG images, just so I can manually define it in Preferences>Converters? And should LyX maybe define one by default, since it used to work in LyX 1.3.7? Thanks, Maria http://wiki.lyx.org/LyX/LyXOnMac Prerequisites 2. Use the fink package management system to install tetex, ghostscript, and imagemagick. Imagemagick is the standard program used on all platforms for image conversion. The installer is supposed to check for the installation of Imagemagick and automatically use it, if found. pdflatex works on .png, jpeg, pdf, & gif files but an eps format needs to be converted in order for pdflatex to work. If you don't have (free) Imagemagick installed, install it and then reconfigure LyX. My solution only covers this possibility. But sometimes the LyX installer doesn't find the proper (Paths) converters and viewers even though they are on the hard drive. I think the troubleshooting order should start with ImageMagick. Regards, Stephen
Re: LyX png and eps
If you move aside your preferences file (~/Library/Application Support/LyX-1.4/preferences) and restart LyX, do things work? Yes! Maria
Re: LyX png and eps
Maria Gouskova wrote: I have the same exact problem, also on Mac OS 10.4.6--upgrading from 1.3x to 1.4 broke image support. I used JPEG images, and LyX says it cannot find a converter. Reconfiguring LyX didn't fix it. What is the converter for JPEG images, just so I can manually define it in Preferences>Converters? And should LyX maybe define one by default, since it used to work in LyX 1.3.7? Thanks, Maria http://wiki.lyx.org/LyX/LyXOnMac Prerequisites 2. Use the fink package management system to install tetex, ghostscript, and imagemagick. Imagemagick is the standard program used on all platforms for image conversion. The installer is supposed to check for the installation of Imagemagick and automatically use it, if found. pdflatex works on .png, jpeg, pdf, & gif files but an eps format needs to be converted in order for pdflatex to work. If you don't have (free) Imagemagick installed, install it and then reconfigure LyX. My solution only covers this possibility. But sometimes the LyX installer doesn't find the proper (Paths) converters and viewers even though they are on the hard drive. I think the troubleshooting order should start with ImageMagick. Regards, Stephen
Re: LyX png and eps
On May 8, 2006, at 7:51 AM, Maria Gouskova wrote: I have the same exact problem, also on Mac OS 10.4.6--upgrading from 1.3x to 1.4 broke image support. I used JPEG images, and LyX says it cannot find a converter. Reconfiguring LyX didn't fix it. What is the converter for JPEG images, just so I can manually define it in Preferences>Converters? And should LyX maybe define one by default, since it used to work in LyX 1.3.7? Thanks, Maria There is a known problem with image conversion using dvipdfm, though the symptom is merely the absence of images in the final output. I take it that's not the problem here. Using pdflatex and ps2pdf to generate output, I have no problems using .eps, .jpg, or .png on a stock installation of LyX-1.4.1. You must have ImageMagick installed to do the conversion, but LyX handles the settings for that automatically. If you move aside your preferences file (~/Library/Application Support/LyX-1.4/preferences) and restart LyX, do things work? Bennett
Re: LyX png and eps
I have the same exact problem, also on Mac OS 10.4.6--upgrading from 1.3x to 1.4 broke image support. I used JPEG images, and LyX says it cannot find a converter. Reconfiguring LyX didn't fix it. What is the converter for JPEG images, just so I can manually define it in Preferences>Converters? And should LyX maybe define one by default, since it used to work in LyX 1.3.7? Thanks, Maria On May 8, 2006, at 3:30 AM, Jose' Matos wrote: On Monday 08 May 2006 03:11, Angus Wallace wrote: Any pointers appreciated! Could you run Reconfigure: Tools->Reconfigure and then exit and restart lyx. Does the problem remains? Cheers, -Angus -- José Abílio
Re: LyX png and eps
On Monday 08 May 2006 03:11, Angus Wallace wrote: > Any pointers appreciated! Could you run Reconfigure: Tools->Reconfigure and then exit and restart lyx. Does the problem remains? > Cheers, > -Angus -- José Abílio
Re: LyX png and eps
Angus Wallace wrote: Howdy all, Sorry to join the list with a question.. I've just upgraded LyX from 1.3.4 to 1.4.1. I ran the installer script, and all appeared well. However, I seem to have lost support for my figures. I have a document with a mixture of eps and png figures, that rendered fine (pdflatex) under 1.3.4, but doesn't under 1.4.1 - it complains that it has 'No information for converting png format to eps. Define a convertor in the Preferences'. I'm a little confused about this, because my understanding was that LyX has 'built-in' support for both of these formats, and that they don't need to be converted, as such..? Also, all my png figures preview fine within LyX (although the eps files don't, and never have). I've had a bit of a look through the mail archives, and haven't found this problem, although there seem to be many similar problems. One mail mentioned a bug.. I'm not sure if that's relevant.. I'm running LyX 1.4.1 on MacOS 10.4.6. I can't remember off-hand how I installed TeX - I think it was via fink. Any pointers appreciated! Cheers, -Angus http://wiki.lyx.org/LyX/FiguresInLyX pdflatex doesn't process eps images. LyX can use a converter like epstopdf, ps2pdf or ImageMagick for changing eps to pdf so that pdflatex can use it (pdf png) In 1.4.1 the Preferences with file formats and converters are now found under Tools.
LyX png and eps
Howdy all, Sorry to join the list with a question.. I've just upgraded LyX from 1.3.4 to 1.4.1. I ran the installer script, and all appeared well. However, I seem to have lost support for my figures. I have a document with a mixture of eps and png figures, that rendered fine (pdflatex) under 1.3.4, but doesn't under 1.4.1 - it complains that it has 'No information for converting png format to eps. Define a convertor in the Preferences'. I'm a little confused about this, because my understanding was that LyX has 'built-in' support for both of these formats, and that they don't need to be converted, as such..? Also, all my png figures preview fine within LyX (although the eps files don't, and never have). I've had a bit of a look through the mail archives, and haven't found this problem, although there seem to be many similar problems. One mail mentioned a bug.. I'm not sure if that's relevant.. I'm running LyX 1.4.1 on MacOS 10.4.6. I can't remember off-hand how I installed TeX - I think it was via fink. Any pointers appreciated! Cheers, -Angus