On 07/16/2010 07:25 PM, Michael McNeil Forbes wrote:
Hi,I am trying to provide a .lyx option for the thesis class I maintain and have had great difficulty running tex2lyx. Below I provide some suggestions and outline my experience... Please let me know if you would like me to file bug reports/enhancement suggestions. (btw, If tex2lyx was python I would submit a patch but I am not going to dive into C++ code). Suggestions: 1) Provide an obvious way to see the error message from the GUI.
Please file enhancement request. Mark it as component tex2lyx.
I'd actually prefer myself to remove the option for LyX to use layout files from the current directory. It causes all kinds of problems. E.g.: Open such a file. Now do File>Save As... and save it to a new location. You can see what is about to happen.2) Provide command options for tex2lyx to use files in the current directory.
Layout files should be put in the system or user directory. That said...
This is again a sensible request. Please file a bug. (I don't know the tex2lyx code myself.)3) When tex2lyx can't find a file, have it say where it was looking (then I would have known where to put the layout files).
4) Have tex2lyx display the version number (so that when I past the output you know what version I am working with in case I forgot to tell you.
Simple enough, too.
This is less clear. You can always request this with -userdir, but we try to keep the defaults sensible on each platform. What I'd do, in your case, is symlink .lyx to whatever the default location is on Mac.5) Have LyX use ~/.lyx if it exists, even on Mac OS X (Like many users, I try to keep the same configuration files for Linux and Mac. It is a pain having to put these into different directories on each platform).
If you could tell us where this documentation is, we will update it. (There are places that the documentation is still Linux-centric.)My friend pointed me to some documentation that said layout files must be in ~/.lyx/layouts. Does not help.
Yes, this is the "local layout" feature, which is responsible for so many problems.I can open the ubcsamplelyx.lyx file (given to me by a more LyX competent friend which uses the ubcthesis.layout) using the lyx GUI so obviously some part of the program can find the layout file.
P.P.S. It would also be very helpful to have a way of disabling babel usage from the .lyx or .layout files because several users have had problems with a buggy version (not a LyX problem) and it seems that the only way to do this is with a custom preference setting.
I've just added this for 2.0:
Provides babel 1
rh
