Hello,

Thanks for the response Bob, this is the only was I was able to reply,
so I hope you get the this message.

> Also, you say your layout file is called sfuthesis.sty this is not
> correct, it should be sfuthesis.layout, since it's a LyX layout file
> not a LaTeX style file. I'm surprised that LyX is recognizing this
> layout if it does not have the proper extension '.layout.

Ah, I apologize, that is a typo I believe (or I renamed the file after
attaching it). My layout file is named sfuthesis.layout. The style file
(provided by the University) is named csthesis.sty.

>>  I also added and texhashed the sty file so that lyx could find it.
> 
> Where did you place the csthesis.sty?

$HOME/texmf/tex/csthesis.sty

texhash created a ls-R file in that directory, and csthesis.sty is
listed in the LyX "Show Tex Information"

>>  I confirm that article(csthesis) is listed as a document class in Lyx.
> 
> This doesn't make sense since you have:
> \DeclareLaTeXClass[article,csthesis.sty]{article (sfuthesis)} in some
> sort of layout file.
>
> This means in LyX it should be 'article (sfuthesis)' not 'article (csthesis)'

Corrected, Lyx shows "article (sfuthesis)", not "article (csthesis)" (my
mistake)

I'll recap the main issues here since I'm having trouble with the
mailing list:

The layout file simply controls how the document appears in Lyx, and
does not have any effect on the output, correct?

Even though LyX seems to be using my style file, the output is
different. The titlepage is missing, and the title font is different.

In order to test I imported the latex example file, included with the
csthesis.sty package, into lyx and tried to generate output.

First problem was that I got the following error:

LaTeX Error: There's no line here to end.

Lyx highlights the first \qualification{} command.

All the google references I found talked about this error in terms of
using \\, which is not in the document (no manual line-breaks).

Aside: I did notice that just before the qualification a \maketitle
command in the view-source window. What I don't understand is that
command is not visible as ERT or in any way in the normal lyx view. (and
certainly not in the original LaTeX file I'm importing.)

So I did the logical thing of commenting out (with a preceding % sign)
both the \qualification{} commands. Once that is done Lyx will generate
output, the style of the title is incorrect. (but there is a title page!)

So I exported a second latex file from this document, and commented out
the \maketitle command.

Once that is done I can generate a proper looking document using latex
directly on that tex document.

I'm happy that I've been able to get something to work at all, but how
can I use the proper style in LyX directly without having to manually
edit the tex file after exporting?

Why does the \maketitle command get added when I import the tex?

Why does output bail on the \qualification{} commands?

Why does the output of the document using the layout that uses the
thesis style file not generate output that resembles the sample file?

Thanks for your time,
B. Bogart

Reply via email to