Hi all,

It seems to me that from the dawn of time (2001 for me), getting LyX to work 
with a layout file anywhere but /home/myuid/.lyx/layouts was extremely 
difficult, with no reproducible procedure. You'd create a symlink from where 
the file really existed to /home/myuid/.lyx/layouts, and then after about an 
hour of fiddling around, the document class would somehow magically show up 
in your list.

It got even worse in 1.5.x when they attempted to recognize layout files in 
the current directory. You could have duplicate copies with all sorts of 
environment-munching disasters, or none, or who knows what.

Yesterday I got a layout file to work the first time. What a refreshing 
difference. Here's what I did:

cd /home/myuid/mybook
Decided my document class should be called infacebook
Created a small layout file as infacebook_layout.src
ln -s /home/myuid/mybook/infacebook_layout.src 
/home/myuid/.lyx/layouts/infacebook.layout
lyx/reconfigure
lyx mybook.lyx
switch document class to infacebook, which is now listed.

The key here is that the actual physical file (as opposed to the symlink name) 
does not end with .layout, so LyX doesn't try to use it as a layout file. LyX 
relies only on the symlink copy in /home/myuid/.lyx/layouts.

HTH

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US

Reply via email to