On 7/18/06, Andrea Censi <[EMAIL PROTECTED]> wrote:
I've updated from 1.4.1 to 1.4.2 (self-compiled, Mac OS X, latex contained in fink) and it doesn't find the IEEEtran class.+checking for document class IEEEtran [IEEEtran]... no However, if I change the line in textclass.lst "IEEEtran" "IEEEtran" "article (IEEEtran)" "false" to "true", all works as expected (the file gets latexed ok). So I guess that my latex configuration is OK. Any clues? What kind of test does Lyx do to search for classes?
Actually, If I do "export->latex" and then $ pdflatex from the command line, it works. If I do "export ->PDF(pdflatex)" it complains that it can't find IEEEtran.cls. So I found the problem. I have two latex installations: /usr/local/teTeX/bin /sw/bin LyX is trying to use "/usr/local/teTeX/bin" (which does not have IEEEtran) even though only /sw/bin is in my PATH and in the "preferences->paths". I found also the cause. When I was compiling, I had /usr/local/teTeX/bin in my PATH, and this information ended up in ./development/MacOSX/LyX.app/Contents/Resources/lyxrc.dist I did ./configure again, lyxrc.dist got the good PATH and all is working now. It seems that LyX ignores the path specified in the preferences, and it only uses those in lyxrc.dist. Is this the intended behavior? If it uses both (with priority for lyxrc.dist), there could be problems with multiple installations. As a final thought, debugging would be easier if in the "reconfigure" process, the full path of the latex executable had been shown. -- Andrea Censi Web: http://www.dis.uniroma1.it/~censi PGP key #569106B2 available on keyservers.
