I'm trying to work with a custom .cls file and having trouble getting it working. This is under Lyx 2.0.0 and Windows 7

The relevant files can be found attached to this forum post: http://www.latex-community.org/forum/viewtopic.php?f=19&t=14360

I put the .cls under C:\Users\max\AppData\Roaming\MiKTeX\2.9\tex\latex and ran texhash
I put the .layout under C:\Program Files (x86)\LyX20\Resources\layouts

Note that I made this .layout file from instructions I found on the web, so it may be the problem.

When I compile under LyX, I get "Undefined control sequence" errors on basically every command defined in the .cls (\prevdegrees, \department, etc). But, I do believe LyX has found my .cls, because when the .cls wasn't in the right place, I got errors about not being able to find it. Additionally, when the compiled directly through pdflatex, it seems to work fine. When viewing the log output when compiled with TeXworks, I see the following line in the log
(C:\Users\max\AppData\Roaming\MiKTeX\2.9\tex\latex\mitthesis_mas.cls
Document Class: mitthesis_mas 1999/10/20
But when viewing the log output by LyX, I don't see that line there and I see this instead
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\report.cls"

Document Class: report 2007/10/19 v1.4h Standard LaTeX document class


Any ideas?

Thanks,
Max

Reply via email to