Re: Adding a custom class template

2011-08-01 Thread Paul Rubin
Maxim Lobovsky  gmail.com> writes:

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

That link gets me their version of a 404 error ("The requested topic does not
exist.").  Did your dog by any chance eat the post?

> Additionally, when the compiled directly
> through pdflatex, it seems to work fine.

Does this mean you export the document from LyX to a .tex file, and that
compiles?  Or do you mean that you created a test file outside LyX (in TeXWorks)
and that file compiled?

> 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"

Without access to the layout file, it's hard to say what caused this.  Two
questions: (1) what name did you give to the layout file; and (2) what is the
second line of the layout file (should contain \DeclareLaTeXClass)?

Paul



Adding a custom class template

2011-07-30 Thread Maxim Lobovsky
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