Hi. I'm having problems adding my own text class. The layout file is writen according to the documentation (and along the lines of typical layout files) and is recognized by lyx (after rescanning for new tex classes, reconfiguring and restarting,) but whenever I choose it as the document class, I get the error "LyX: could not change class; The document could not be converted into the document class MyClass."
I don't see what the problem is, even though my example is very minimalistic First I have a tex class file called "MyClass.cls" which contains the following: \ProvidesClass{MyClass} \newcommand{\hello}{Hello} This file is placed under a latex tree, and I did texhash so that tex would find where it is. In LyX I do a rescan in the TeX info dialog and it finds it. Then the layout file MyClass.layout, which is located in my ~/.lyx/layouts directory contains the following: #% Do not delete the line below; configure depends on this # \DeclareLaTeXClass[MyClass]{MyClass} Format 2 Columns 1 Sides 2 PageStyle Headers Input stdclass.inc MaxCounter Counter_Section SecNumDepth 4 TocDepth 3 Preamble \usepackage[dvips]{geometry} EndPreamble I do a reconfigure and restart. The new class does appear in the "document class" list but if I choose it, I get the error, even on a new (empty) file. What am I doing wrong? Why is it not working? Thanks. -- Ernesto Posse Modelling, Simulation and Design Lab - School of Computer Science McGill University - Montreal, Quebec, Canada url: http://moncs.cs.mcgill.ca/people/eposse