Ben Outram wrote:
Hello
I'm having trouble using document classes in Lyx. I create a new document and
then go to the document settings. The only classes which are available for
selection from the drop down list are article, book, letter, and report. The
others are marked as unavailable e.g. 'Unavailable: broadway'.
I've tried reconfiguring Lyx and restarting it, as well as running 'sh
reconfigure' from the Lyx resources directory but neither of these have made any
difference.
Also I've tried copying the class files such as broadway.cls and cv.cls from the
Lyx\Resources\tex directory to the MiKTeX path directory C:\texmf\miktex\bin and
the LaTeX base directory C:\texmf\tex\latex\base but neither of these work. They
do show up in Lyx as LaTeX classes (Tools -> TeX Information) but are not
available for use!
Lyx was installed using the Windows installer (lyx-1.4.1_win32_setup_v1.exe).
Before doing this I installed mysys 1.0.10, Python 2.4.3, MiKTeX Basic 2.4.2207,
Ghostscript, and ImageMagick.
The following was added to my Windows PATH variable:
C:\texmf\miktex\bin;C:\msys\1.0\bin;c:\program files\imagemagick-6.2.7-q16.
Lyx uses the following settings:
Document templates: C:\Program Files\LyX141\Resources\templates\
PATH prefix: C:\msys\1.0\bin;C:\Python24;C:\texmf\miktex\bin;C:\Program
Files\gs\gs8.53\bin;C:\Program Files\ImageMagick-6.2.7-Q16
Any help greatly appreciated.
Thanks.
First off, congratulations on providing a clear question, a coherent
history of what you did, and potentially pertinent information. Not
every question posted here meets that standard.
IIRC, MiKTeX "Basic" contains a fairly minimal set of classes (to
conserve on disk space), so it's entirely possible you lack class files
for a number of the unavailable classes. The broadway and cv classes
are not available as MiKTeX packages, hence their inclusion with LyX.
Your intent was correct in trying to install broadway and cv, but
possibly your execution was off. You did not indicate whether you
updated the MiKTeX file database after you installed them (but if they
show up in the LyX TeX configuration widget, you probably did). FWIW,
it's probably a better idea to install them under your localtexmf tree
than in C:\texmf\tex\latex\base, since that directory could get thumped
if you do an upgrade or reinstallation. The Roots tab of the MiKTeX
Options program will tell you where your localtexmf tree is; you can
just create one or more folders under it (say
C:\localtexmf\tex\latex\lyx) and store the .cls files there. Then click
Refresh Now on the General tab of MiKTeX Options.
The other step is to use Tools->Reconfigure to reconfigure LyX, then
exit and restart LyX. I suspect that's the step you missed.
For other unavailable classes, use the MiKTeX Package Manager to
download and install them (which will automatically include refreshing
the file database), then Tools->Reconfigure in LyX to bring LyX up to speed.
If that doesn't do it, check back here.
/Paul