[EMAIL PROTECTED] wrote:
Angus Lemming wrote:


[EMAIL PROTECTED] wrote:


Sorry, I can in fact see the user dir in the About menu; however,
placing my files there didn't fix the problem. Please help!


Hi all, I'm trying to install the algorithms layout (from
http://bgu.chez.tiscali.fr/). I followed the instructions exactly
as specified in the accompanying readme.txt (my HOME is my cygwin
home dir so I copied all the files to under my .lyx directory
there, I defined TEXINPUTS to point to the packages dir, and I ran
Reconfigure). I still don't see any algorithm style available. The
readme.txt mentioned that I could find out where the user directory
is located by looking under Help > Version, but I see no such menu
option
(Help > About LyX doesn't specify this).  I'm using LyX 1.3.6 and
MikTeX. Please help!! Thanks in advance.

LyX will look for .layout files in the ${LYX_USER_SUPPORT}/layouts
directory where
   LYX_USER_SUPPORT="$HOME/.lyx"
on *nix and, I guess, Cygwin and
   LYX_USER_SUPPORT="C:/Documents and Settings/USER/Application
Data/LyX"
on Windows.

So, question 1: you're using the Cygwin executable, right?


I'm not using the Cygwin exe (I wasn't aware there is one; how does it
compare to the native?), but rather the one downloaded straight from
the site.


If you install the LyX layout file correctly, you should be able to
find the thing in the Layouts->Document menu. If the LaTeX class is
not installed correctly, then the class will be marked as
"unavailable", meaning you can edit your .lyx document but you won't
be able to generate a .dvi file, etc.


Yes, I determined the possible locations, and the variable to set them
(LYX_USERDIR_136), but I've tried puting files in both locations to no
avail. I don't see the new layout at all.


I just installed the package successfully (LyX 1.3.7cvs, MiKTeX, Win XP). I deviated from the instructions a bit. My steps (after unpacking things) were as follows:

1. Copy algorithm.inc and article-algo.layout to C:\Documents and Settings\<my id>\Application Data\lyx\layouts.

2. Create a folder named algolyx (the name does not actually matter) under ...\localtexmf\tex\latex. I could have put it under the tex\latex folder in the MiKTeX tree, but this way it's less likely to get vaporized if I reinstall MiKTeX. Copy algolyx.sty there.

3. Update the MiKTeX file database (run the MiKTeX Options program, select the General tab, click Refresh Now under File name database).

4. From a DOS prompt, run 'kpsewhich algolyx.sty' and verify that it finds algolyx.sty. (I screwed up the installation the first time around by putting the algolyx folder, containing algolyx.sty, directly under localtexmf, hence the need to check that MiKTeX can find the style file.)

5.  Start LyX, Edit->Reconfigure, exit and restart.

This gave me a working Article (algo) choice for document class. (Note that this appears _above_ the default choice, article, in the drop-down list of document classes.)

HTH,

Paul

Reply via email to