Thanks again. I got mixed results but ultimately successful. I tried
making the changes you suggested, reconfigured, restarted and I got the same
error. I then downloaded the file you included and it worked. When I
opened your file in notepad to see what was different I noticed that yours
showed the formatting characters. For example where there should be line
returns there were boxes and the next word didn't start on the next line. I
wonder if notepad was putting control characters in that were causing the
error.
I'd also like to understand why that fixed my problem. From my
understanding the arguments in the [ ] are the necessary classes and the { }
is what is displayed in LyX. Inside my msuthesis.cls there is a line
\LoadClass[letterpaper,12pt,oneside,onecolumn,openany,final,titlepage]{book}
so I thought it was derived from the book class and thus needed the
[msuthesis,book]. This is almost exactly the case in 5.2.4. Did I
misunderstand the help file? Thanks again for all your help. It's much
appreciated.
Danny
On Fri, Jun 19, 2009 at 10:20 AM, rgheck <[email protected]> wrote:
> Danny Parker wrote:
>
>> Thanks for the reply. I appreciate the help.
>>
>> I see now that my example was too simplistic but I'm still having the same
>> problem. I'm actually trying to do what is in 5.2.4 and my layout file is
>> msuthesis.layout and is save in C:\Program Files (x86)\LyX
>> 1.6.3\Resources\layouts
>>
>> I took the book.layout and changed the \Declare line to include the
>> msuthesis.cls and to report the name to LyX as msuthesis. I also added the
>> Preamble as described in 5.2.3. I wasn't sure that I needed that with a
>> class so I tried it with and without the Preable. I still get the same
>> errors I described earlier. Also, I've checked to make sure MikTeX has
>> msuthesis.cls by compiling the example document from the command line. It
>> created the .ps file correctly. My layout file is below.
>>
>> I'm sorry the errors are not very informative. I should fix that.
>
> #% Do not delete the line below; configure depends on this
>> # \DeclareLaTeXClass[msuthesis,book]{msuthesis}
>>
>> Try taking out what is in the square brackets, thus:
>
> # \DeclareLaTeXClass{msuthesis}
>
> and then make sure you save it as msuthesis.layout. I think this is your
> problem now.
>
> # Book textclass definition file. Taken from initial LyX source code
>> # Author : Matthias Ettrich <[email protected] <mailto:
>> [email protected]>>
>> # Transposed by Pascal André <[email protected] <mailto:[email protected]>>
>> # Heavily modifed and enhanced by serveral developers.
>>
>>
>> Format 11
>> Input stdclass.inc
>> Input numreport.inc
>>
>>
>> Sides 2
>> PageStyle Headings
>>
>>
>> NoStyle Abstract
>>
>>
>> Style Bibliography
>> TopSep 4
>> LabelString "Bibliography"
>> LabelFont
>> Series Bold
>> Size Huge
>> EndFont
>> End
>>
>> Preamble
>>
>> I'd use AddToPreamble here. Otherwise, you overwrite the preamble.
>
> \usepackage{msuthesis}
>> EndPreamble
>>
>> Otherwise, it looks as if it should be fine. What I'm attaching works for
> me, though I do get errors about not having the msuthesis file.
>
> Richard
>
>
> #% Do not delete the line below; configure depends on this
> # \DeclareLaTeXClass{msuthesis}
> # Book textclass definition file. Taken from initial LyX source code
> # Author : Matthias Ettrich <[email protected]>
> # Transposed by Pascal André <[email protected]>
> # Heavily modifed and enhanced by serveral developers.
>
>
> Format 11
> Input stdclass.inc
> Input numreport.inc
>
>
> Sides 2
> PageStyle Headings
>
>
> NoStyle Abstract
>
>
> Style Bibliography
> TopSep 4
> LabelString "Bibliography"
> LabelFont
> Series Bold
> Size Huge
> EndFont
> End
>
> Preamble
> \usepackage{msuthesis}
> EndPreamble
>
>
>