Re: Best approach to using lyx with a university provided style file?

2008-04-04 Thread B. Bogart
Thanks Bob!

Indeed I've got my thesis formatting fine now just after a little more
tweaking and adding flags from the latex file into LyX. I suppose these
could be removed by making a template for the various parts?

So this fix just redefined maketitle to do nothing, correct?

Maybe a flag to change this could be nice in the future (in properties
of a title perhaps?)

Thanks for your help and getting me moving.

B. Bogart

Bob Lounsbury wrote:
 On Thu, Apr 3, 2008 at 10:58 AM, B. Bogart [EMAIL PROTECTED] wrote:
  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

 
 Well, I looked at your bbtest.tex file and the first thing I noticed
 is that it calls for report.cls. So you should create a
 sfuthesis.layout based on report not article.
 
 Anyways, when you insert a title or author field in LyX it
 automatically inserts a '\maketitle' command but your bbtest.tex does
 not do this.
 
 Long story short. Inserting '\renewcommand\maketitle{}' in the
 preamble of bbtest.tex eliminated the errors in the file and produced
 good output.
 
 Cheers,
 /Bob
 
 



Re: Best approach to using lyx with a university provided style file?

2008-04-04 Thread Bob Lounsbury
On Fri, Apr 4, 2008 at 5:51 PM, B. Bogart [EMAIL PROTECTED] wrote:
 Thanks Bob!

  Indeed I've got my thesis formatting fine now just after a little more
  tweaking and adding flags from the latex file into LyX. I suppose these
  could be removed by making a template for the various parts?

  So this fix just redefined maketitle to do nothing, correct?

This is my impression. When you generate a pdf/dvi it 'redefines' thus
eliminating the maketitle call in the file.

  Maybe a flag to change this could be nice in the future (in properties
  of a title perhaps?)

This would be a question for the developers. I just searched the LyX
mail archive and found that renew maketitle command, but there were
other people with similar issues so I agree it would be nice if there
were a 'switch' in the document settings to not use the \maketitle
command.

This may be harder to implement than we know.

  Thanks for your help and getting me moving.

  B. Bogart

Cheers,
/Bob


Re: Best approach to using lyx with a university provided style file?

2008-04-04 Thread B. Bogart
Thanks Bob!

Indeed I've got my thesis formatting fine now just after a little more
tweaking and adding flags from the latex file into LyX. I suppose these
could be removed by making a template for the various parts?

So this fix just redefined maketitle to do nothing, correct?

Maybe a flag to change this could be nice in the future (in properties
of a title perhaps?)

Thanks for your help and getting me moving.

B. Bogart

Bob Lounsbury wrote:
 On Thu, Apr 3, 2008 at 10:58 AM, B. Bogart [EMAIL PROTECTED] wrote:
  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

 
 Well, I looked at your bbtest.tex file and the first thing I noticed
 is that it calls for report.cls. So you should create a
 sfuthesis.layout based on report not article.
 
 Anyways, when you insert a title or author field in LyX it
 automatically inserts a '\maketitle' command but your bbtest.tex does
 not do this.
 
 Long story short. Inserting '\renewcommand\maketitle{}' in the
 preamble of bbtest.tex eliminated the errors in the file and produced
 good output.
 
 Cheers,
 /Bob
 
 



Re: Best approach to using lyx with a university provided style file?

2008-04-04 Thread Bob Lounsbury
On Fri, Apr 4, 2008 at 5:51 PM, B. Bogart [EMAIL PROTECTED] wrote:
 Thanks Bob!

  Indeed I've got my thesis formatting fine now just after a little more
  tweaking and adding flags from the latex file into LyX. I suppose these
  could be removed by making a template for the various parts?

  So this fix just redefined maketitle to do nothing, correct?

This is my impression. When you generate a pdf/dvi it 'redefines' thus
eliminating the maketitle call in the file.

  Maybe a flag to change this could be nice in the future (in properties
  of a title perhaps?)

This would be a question for the developers. I just searched the LyX
mail archive and found that renew maketitle command, but there were
other people with similar issues so I agree it would be nice if there
were a 'switch' in the document settings to not use the \maketitle
command.

This may be harder to implement than we know.

  Thanks for your help and getting me moving.

  B. Bogart

Cheers,
/Bob


Re: Best approach to using lyx with a university provided style file?

2008-04-04 Thread B. Bogart
Thanks Bob!

Indeed I've got my thesis formatting fine now just after a little more
tweaking and adding flags from the latex file into LyX. I suppose these
could be removed by making a template for the various parts?

So this fix just redefined maketitle to do nothing, correct?

Maybe a flag to change this could be nice in the future (in properties
of a title perhaps?)

Thanks for your help and getting me moving.

B. Bogart

Bob Lounsbury wrote:
> On Thu, Apr 3, 2008 at 10:58 AM, B. Bogart <[EMAIL PROTECTED]> wrote:
>>  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
>>
> 
> Well, I looked at your bbtest.tex file and the first thing I noticed
> is that it calls for report.cls. So you should create a
> sfuthesis.layout based on report not article.
> 
> Anyways, when you insert a title or author field in LyX it
> automatically inserts a '\maketitle' command but your bbtest.tex does
> not do this.
> 
> Long story short. Inserting '\renewcommand\maketitle{}' in the
> preamble of bbtest.tex eliminated the errors in the file and produced
> good output.
> 
> Cheers,
> /Bob
> 
> 



Re: Best approach to using lyx with a university provided style file?

2008-04-04 Thread Bob Lounsbury
On Fri, Apr 4, 2008 at 5:51 PM, B. Bogart <[EMAIL PROTECTED]> wrote:
> Thanks Bob!
>
>  Indeed I've got my thesis formatting fine now just after a little more
>  tweaking and adding flags from the latex file into LyX. I suppose these
>  could be removed by making a template for the various parts?
>
>  So this fix just redefined maketitle to do nothing, correct?

This is my impression. When you generate a pdf/dvi it 'redefines' thus
eliminating the maketitle call in the file.

>  Maybe a flag to change this could be nice in the future (in properties
>  of a title perhaps?)

This would be a question for the developers. I just searched the LyX
mail archive and found that renew maketitle command, but there were
other people with similar issues so I agree it would be nice if there
were a 'switch' in the document settings to not use the \maketitle
command.

This may be harder to implement than we know.

>  Thanks for your help and getting me moving.
>
>  B. Bogart

Cheers,
/Bob


Re: Best approach to using lyx with a university provided style file?

2008-04-03 Thread B. Bogart
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


Re: Best approach to using lyx with a university provided style file?

2008-04-03 Thread Bob Lounsbury
On Thu, Apr 3, 2008 at 10:58 AM, B. Bogart [EMAIL PROTECTED] wrote:
  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


Well, I looked at your bbtest.tex file and the first thing I noticed
is that it calls for report.cls. So you should create a
sfuthesis.layout based on report not article.

Anyways, when you insert a title or author field in LyX it
automatically inserts a '\maketitle' command but your bbtest.tex does
not do this.

Long story short. Inserting '\renewcommand\maketitle{}' in the
preamble of bbtest.tex eliminated the errors in the file and produced
good output.

Cheers,
/Bob


Re: Best approach to using lyx with a university provided style file?

2008-04-03 Thread B. Bogart
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


Re: Best approach to using lyx with a university provided style file?

2008-04-03 Thread Bob Lounsbury
On Thu, Apr 3, 2008 at 10:58 AM, B. Bogart [EMAIL PROTECTED] wrote:
  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


Well, I looked at your bbtest.tex file and the first thing I noticed
is that it calls for report.cls. So you should create a
sfuthesis.layout based on report not article.

Anyways, when you insert a title or author field in LyX it
automatically inserts a '\maketitle' command but your bbtest.tex does
not do this.

Long story short. Inserting '\renewcommand\maketitle{}' in the
preamble of bbtest.tex eliminated the errors in the file and produced
good output.

Cheers,
/Bob


Re: Best approach to using lyx with a university provided style file?

2008-04-03 Thread B. Bogart
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


Re: Best approach to using lyx with a university provided style file?

2008-04-03 Thread Bob Lounsbury
On Thu, Apr 3, 2008 at 10:58 AM, B. Bogart <[EMAIL PROTECTED]> wrote:
>  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
>

Well, I looked at your bbtest.tex file and the first thing I noticed
is that it calls for report.cls. So you should create a
sfuthesis.layout based on report not article.

Anyways, when you insert a title or author field in LyX it
automatically inserts a '\maketitle' command but your bbtest.tex does
not do this.

Long story short. Inserting '\renewcommand\maketitle{}' in the
preamble of bbtest.tex eliminated the errors in the file and produced
good output.

Cheers,
/Bob


Re: Best approach to using lyx with a university provided style file?

2008-03-29 Thread Bob Lounsbury
On 3/28/08, Bob Lounsbury [EMAIL PROTECTED] wrote:
 On Fri, Mar 28, 2008 at 12:12 PM, B. Bogart [EMAIL PROTECTED] wrote:
First I took the article.layout file, copied it into a new name, and
added \usepackage{csthesis.sty} in the preamble section as such:
  
Preamble
   \usepackage{csthesis}
EndPreamble


 You don't need to add this preamble stuff to your layout file. When
  you specify ' \DeclareLaTeXClass[article,csthesis.sty]{article
  (sfuthesis)}' you are already telling LyX that you want it to use
  csthesis.sty. I don't even know if you can add preamble stuff in this
  manner.

Just wanted to correct myself. Sorry, you're right, adding the
Preamble stuff to the layout file eliminates the need to specify the
package within LyX as is clearly stated in the LyX Help-Customization
Section 5.2.2.

Although your layout file should still end in '.layout'.

Cheers,
/Bob


Re: Best approach to using lyx with a university provided style file?

2008-03-29 Thread Bob Lounsbury
On 3/28/08, Bob Lounsbury [EMAIL PROTECTED] wrote:
 On Fri, Mar 28, 2008 at 12:12 PM, B. Bogart [EMAIL PROTECTED] wrote:
First I took the article.layout file, copied it into a new name, and
added \usepackage{csthesis.sty} in the preamble section as such:
  
Preamble
   \usepackage{csthesis}
EndPreamble


 You don't need to add this preamble stuff to your layout file. When
  you specify ' \DeclareLaTeXClass[article,csthesis.sty]{article
  (sfuthesis)}' you are already telling LyX that you want it to use
  csthesis.sty. I don't even know if you can add preamble stuff in this
  manner.

Just wanted to correct myself. Sorry, you're right, adding the
Preamble stuff to the layout file eliminates the need to specify the
package within LyX as is clearly stated in the LyX Help-Customization
Section 5.2.2.

Although your layout file should still end in '.layout'.

Cheers,
/Bob


Re: Best approach to using lyx with a university provided style file?

2008-03-29 Thread Bob Lounsbury
On 3/28/08, Bob Lounsbury <[EMAIL PROTECTED]> wrote:
> On Fri, Mar 28, 2008 at 12:12 PM, B. Bogart <[EMAIL PROTECTED]> wrote:
>  >  First I took the article.layout file, copied it into a new name, and
>  >  added \usepackage{csthesis.sty} in the preamble section as such:
>  >
>  >  Preamble
>  > \usepackage{csthesis}
>  >  EndPreamble
>
>
> You don't need to add this preamble stuff to your layout file. When
>  you specify ' \DeclareLaTeXClass[article,csthesis.sty]{article
>  (sfuthesis)}' you are already telling LyX that you want it to use
>  csthesis.sty. I don't even know if you can add preamble stuff in this
>  manner.

Just wanted to correct myself. Sorry, you're right, adding the
Preamble stuff to the layout file eliminates the need to specify the
package within LyX as is clearly stated in the LyX Help->Customization
Section 5.2.2.

Although your layout file should still end in '.layout'.

Cheers,
/Bob


Best approach to using lyx with a university provided style file?

2008-03-28 Thread B. Bogart
Hello all,

I'm just starting to work on my thesis and thought I would take a closer
look at getting the appropriate style to work.

I have to warn you all I've only made simple use of latex, and have been
using LyX for most of my writing.

When using an external format before I've simply exported the lyx file
to latex, applied the new style for the conference, and edited by hand
where needed, which has been a headache.

Now the format for my thesis (in the form of a .sty file) makes my other
 formats simplistic, and I'm having lots of trouble. I'll try to reduce
this to the central details.

First I took the article.layout file, copied it into a new name, and
added \usepackage{csthesis.sty} in the preamble section as such:

Preamble
\usepackage{csthesis}
EndPreamble

I also added and texhashed the sty file so that lyx could find it.

I confirm that article(csthesis) is listed as a document class in Lyx.

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

So I generated a few DVIs and noticed that the example thesis, that came
with the package, bears little resemblance to my own output.

In order to test I imported the latex example file, included with the
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.

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.

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

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?

I've attached a few files to make things more clear:

csthesis.sty is the University provided style file.

sfuthesis.sty is a copy of article.layout with the csthesis package used.

bbtest.tex is a shorted version of the sample text file that came with
the university style file, without any hand-changes. Note it does not
include a \makeletter command, but generates a nice title according to
the university specs when using latex by hand.

I may be the first person to use LyX with this style at my University,
and considering how happy I am with LyX in general, I hope solving these
issues will encourage students in the future to use LyX.

Thanks for your time,
any pointers or suggestions appreciated.

B. Bogart

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[article,csthesis.sty]{article (sfuthesis)}

Preamble
\usepackage{csthesis}
EndPreamble

Format 4
Input stdclass.inc

SecNumDepth 3
TocDepth3

NoStyle Chapter
NoStyle Chapter*


Style Part
Align Left
AlignPossible Left
TopSep2
BottomSep 1.5
Font
  SizeLarger
EndFont
End


Style Part*
Align Left
AlignPossible Left
TopSep2
BottomSep 1.5
Font
  SizeLarger
EndFont
End

%%
%% This is file `csthesis.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% csthesis.dtx  (with options: `package')
%% 
%% IMPORTANT NOTICE:
%% 
%% For the copyright see the source file.
%% 
%% Any modified versions of this file must be renamed
%% with new filenames distinct from csthesis.sty.
%% 
%% For distribution of the original source see the terms
%% for copying and modification in the file csthesis.dtx.
%% 
%% This generated file may be distributed as long as the
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
%%
%% Comp. Science, SFU thesis style `csthesis', to be used with LaTeX2e
%% Copyright (C) 1998 Petr Pp Kubon
%%
%% History:
%%   1) 1989: Created by Stephen Chan (CSS) from Stanford PhD Thesis style
%%   2) 1996: Modifications and additions by Margaret Sharon (ACS)
%%   3) 

Re: Best approach to using lyx with a university provided style file?

2008-03-28 Thread Ryan Cross
I didn't read your whole post (also writing my thesis) but found this
highly helpful 
http://www.threewordslong.com/blog/entry/63/A_LyX_Thesis_Layout_for_UNSW_T

It helps that I am a student at UNSW, but it might give you the right idea.

-Ryan

On Sat, Mar 29, 2008 at 5:12 AM, B. Bogart [EMAIL PROTECTED] wrote:
 Hello all,

  I'm just starting to work on my thesis and thought I would take a closer
  look at getting the appropriate style to work.

  I have to warn you all I've only made simple use of latex, and have been
  using LyX for most of my writing.

  When using an external format before I've simply exported the lyx file
  to latex, applied the new style for the conference, and edited by hand
  where needed, which has been a headache.

  Now the format for my thesis (in the form of a .sty file) makes my other
   formats simplistic, and I'm having lots of trouble. I'll try to reduce
  this to the central details.

  First I took the article.layout file, copied it into a new name, and
  added \usepackage{csthesis.sty} in the preamble section as such:

  Preamble
 \usepackage{csthesis}
  EndPreamble

  I also added and texhashed the sty file so that lyx could find it.

  I confirm that article(csthesis) is listed as a document class in Lyx.

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

  So I generated a few DVIs and noticed that the example thesis, that came
  with the package, bears little resemblance to my own output.

  In order to test I imported the latex example file, included with the
  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.

  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.

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

  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?

  I've attached a few files to make things more clear:

  csthesis.sty is the University provided style file.

  sfuthesis.sty is a copy of article.layout with the csthesis package used.

  bbtest.tex is a shorted version of the sample text file that came with
  the university style file, without any hand-changes. Note it does not
  include a \makeletter command, but generates a nice title according to
  the university specs when using latex by hand.

  I may be the first person to use LyX with this style at my University,
  and considering how happy I am with LyX in general, I hope solving these
  issues will encourage students in the future to use LyX.

  Thanks for your time,
  any pointers or suggestions appreciated.

  B. Bogart


 #% Do not delete the line below; configure depends on this
  #  \DeclareLaTeXClass[article,csthesis.sty]{article (sfuthesis)}

  Preamble
 \usepackage{csthesis}
  EndPreamble

  Format 4
  Input stdclass.inc

  SecNumDepth 3
  TocDepth3

  NoStyle Chapter
  NoStyle Chapter*


  Style Part
 Align Left
 AlignPossible Left
 TopSep2
 BottomSep 1.5
 Font
   SizeLarger
 EndFont
  End


  Style Part*
 Align Left
 AlignPossible Left
 TopSep2
 BottomSep 1.5
 Font
   SizeLarger
 EndFont
  End





Re: Best approach to using lyx with a university provided style file?

2008-03-28 Thread Bob Lounsbury
On Fri, Mar 28, 2008 at 12:12 PM, B. Bogart [EMAIL PROTECTED] wrote:
 Hello all,

  I'm just starting to work on my thesis and thought I would take a closer
  look at getting the appropriate style to work.

  I have to warn you all I've only made simple use of latex, and have been
  using LyX for most of my writing.

  When using an external format before I've simply exported the lyx file
  to latex, applied the new style for the conference, and edited by hand
  where needed, which has been a headache.

  Now the format for my thesis (in the form of a .sty file) makes my other
   formats simplistic, and I'm having lots of trouble. I'll try to reduce
  this to the central details.

  First I took the article.layout file, copied it into a new name, and
  added \usepackage{csthesis.sty} in the preamble section as such:

  Preamble
 \usepackage{csthesis}
  EndPreamble

You don't need to add this preamble stuff to your layout file. When
you specify ' \DeclareLaTeXClass[article,csthesis.sty]{article
(sfuthesis)}' you are already telling LyX that you want it to use
csthesis.sty. I don't even know if you can add preamble stuff in this
manner.

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.


  I also added and texhashed the sty file so that lyx could find it.

Where did you place the csthesis.sty?

  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)'

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

Before we worry about errors. Let's be sure you've set things up
correctly. It seems you're on the right track, but I'm still confused
how you set everything up.

The csthesis.sty should be placed in a localtexmf directory where
LaTeX recognizes it. Then you should create your sfuthesis.layout
where LyX recognizes it and delete the preamble stuff you have in the
file.

I think these changes may eliminate some of the errors. It's also
helpful to know what operating system you're using.

Cheers,
/Bob


Best approach to using lyx with a university provided style file?

2008-03-28 Thread B. Bogart
Hello all,

I'm just starting to work on my thesis and thought I would take a closer
look at getting the appropriate style to work.

I have to warn you all I've only made simple use of latex, and have been
using LyX for most of my writing.

When using an external format before I've simply exported the lyx file
to latex, applied the new style for the conference, and edited by hand
where needed, which has been a headache.

Now the format for my thesis (in the form of a .sty file) makes my other
 formats simplistic, and I'm having lots of trouble. I'll try to reduce
this to the central details.

First I took the article.layout file, copied it into a new name, and
added \usepackage{csthesis.sty} in the preamble section as such:

Preamble
\usepackage{csthesis}
EndPreamble

I also added and texhashed the sty file so that lyx could find it.

I confirm that article(csthesis) is listed as a document class in Lyx.

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

So I generated a few DVIs and noticed that the example thesis, that came
with the package, bears little resemblance to my own output.

In order to test I imported the latex example file, included with the
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.

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.

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

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?

I've attached a few files to make things more clear:

csthesis.sty is the University provided style file.

sfuthesis.sty is a copy of article.layout with the csthesis package used.

bbtest.tex is a shorted version of the sample text file that came with
the university style file, without any hand-changes. Note it does not
include a \makeletter command, but generates a nice title according to
the university specs when using latex by hand.

I may be the first person to use LyX with this style at my University,
and considering how happy I am with LyX in general, I hope solving these
issues will encourage students in the future to use LyX.

Thanks for your time,
any pointers or suggestions appreciated.

B. Bogart

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[article,csthesis.sty]{article (sfuthesis)}

Preamble
\usepackage{csthesis}
EndPreamble

Format 4
Input stdclass.inc

SecNumDepth 3
TocDepth3

NoStyle Chapter
NoStyle Chapter*


Style Part
Align Left
AlignPossible Left
TopSep2
BottomSep 1.5
Font
  SizeLarger
EndFont
End


Style Part*
Align Left
AlignPossible Left
TopSep2
BottomSep 1.5
Font
  SizeLarger
EndFont
End

%%
%% This is file `csthesis.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% csthesis.dtx  (with options: `package')
%% 
%% IMPORTANT NOTICE:
%% 
%% For the copyright see the source file.
%% 
%% Any modified versions of this file must be renamed
%% with new filenames distinct from csthesis.sty.
%% 
%% For distribution of the original source see the terms
%% for copying and modification in the file csthesis.dtx.
%% 
%% This generated file may be distributed as long as the
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
%%
%% Comp. Science, SFU thesis style `csthesis', to be used with LaTeX2e
%% Copyright (C) 1998 Petr Pp Kubon
%%
%% History:
%%   1) 1989: Created by Stephen Chan (CSS) from Stanford PhD Thesis style
%%   2) 1996: Modifications and additions by Margaret Sharon (ACS)
%%   3) 

Re: Best approach to using lyx with a university provided style file?

2008-03-28 Thread Ryan Cross
I didn't read your whole post (also writing my thesis) but found this
highly helpful 
http://www.threewordslong.com/blog/entry/63/A_LyX_Thesis_Layout_for_UNSW_T

It helps that I am a student at UNSW, but it might give you the right idea.

-Ryan

On Sat, Mar 29, 2008 at 5:12 AM, B. Bogart [EMAIL PROTECTED] wrote:
 Hello all,

  I'm just starting to work on my thesis and thought I would take a closer
  look at getting the appropriate style to work.

  I have to warn you all I've only made simple use of latex, and have been
  using LyX for most of my writing.

  When using an external format before I've simply exported the lyx file
  to latex, applied the new style for the conference, and edited by hand
  where needed, which has been a headache.

  Now the format for my thesis (in the form of a .sty file) makes my other
   formats simplistic, and I'm having lots of trouble. I'll try to reduce
  this to the central details.

  First I took the article.layout file, copied it into a new name, and
  added \usepackage{csthesis.sty} in the preamble section as such:

  Preamble
 \usepackage{csthesis}
  EndPreamble

  I also added and texhashed the sty file so that lyx could find it.

  I confirm that article(csthesis) is listed as a document class in Lyx.

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

  So I generated a few DVIs and noticed that the example thesis, that came
  with the package, bears little resemblance to my own output.

  In order to test I imported the latex example file, included with the
  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.

  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.

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

  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?

  I've attached a few files to make things more clear:

  csthesis.sty is the University provided style file.

  sfuthesis.sty is a copy of article.layout with the csthesis package used.

  bbtest.tex is a shorted version of the sample text file that came with
  the university style file, without any hand-changes. Note it does not
  include a \makeletter command, but generates a nice title according to
  the university specs when using latex by hand.

  I may be the first person to use LyX with this style at my University,
  and considering how happy I am with LyX in general, I hope solving these
  issues will encourage students in the future to use LyX.

  Thanks for your time,
  any pointers or suggestions appreciated.

  B. Bogart


 #% Do not delete the line below; configure depends on this
  #  \DeclareLaTeXClass[article,csthesis.sty]{article (sfuthesis)}

  Preamble
 \usepackage{csthesis}
  EndPreamble

  Format 4
  Input stdclass.inc

  SecNumDepth 3
  TocDepth3

  NoStyle Chapter
  NoStyle Chapter*


  Style Part
 Align Left
 AlignPossible Left
 TopSep2
 BottomSep 1.5
 Font
   SizeLarger
 EndFont
  End


  Style Part*
 Align Left
 AlignPossible Left
 TopSep2
 BottomSep 1.5
 Font
   SizeLarger
 EndFont
  End





Re: Best approach to using lyx with a university provided style file?

2008-03-28 Thread Bob Lounsbury
On Fri, Mar 28, 2008 at 12:12 PM, B. Bogart [EMAIL PROTECTED] wrote:
 Hello all,

  I'm just starting to work on my thesis and thought I would take a closer
  look at getting the appropriate style to work.

  I have to warn you all I've only made simple use of latex, and have been
  using LyX for most of my writing.

  When using an external format before I've simply exported the lyx file
  to latex, applied the new style for the conference, and edited by hand
  where needed, which has been a headache.

  Now the format for my thesis (in the form of a .sty file) makes my other
   formats simplistic, and I'm having lots of trouble. I'll try to reduce
  this to the central details.

  First I took the article.layout file, copied it into a new name, and
  added \usepackage{csthesis.sty} in the preamble section as such:

  Preamble
 \usepackage{csthesis}
  EndPreamble

You don't need to add this preamble stuff to your layout file. When
you specify ' \DeclareLaTeXClass[article,csthesis.sty]{article
(sfuthesis)}' you are already telling LyX that you want it to use
csthesis.sty. I don't even know if you can add preamble stuff in this
manner.

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.


  I also added and texhashed the sty file so that lyx could find it.

Where did you place the csthesis.sty?

  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)'

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

Before we worry about errors. Let's be sure you've set things up
correctly. It seems you're on the right track, but I'm still confused
how you set everything up.

The csthesis.sty should be placed in a localtexmf directory where
LaTeX recognizes it. Then you should create your sfuthesis.layout
where LyX recognizes it and delete the preamble stuff you have in the
file.

I think these changes may eliminate some of the errors. It's also
helpful to know what operating system you're using.

Cheers,
/Bob


Best approach to using lyx with a university provided style file?

2008-03-28 Thread B. Bogart
Hello all,

I'm just starting to work on my thesis and thought I would take a closer
look at getting the appropriate style to work.

I have to warn you all I've only made simple use of latex, and have been
using LyX for most of my writing.

When using an external format before I've simply exported the lyx file
to latex, applied the new style for the conference, and edited by hand
where needed, which has been a headache.

Now the format for my thesis (in the form of a .sty file) makes my other
 formats simplistic, and I'm having lots of trouble. I'll try to reduce
this to the central details.

First I took the article.layout file, copied it into a new name, and
added \usepackage{csthesis.sty} in the preamble section as such:

Preamble
\usepackage{csthesis}
EndPreamble

I also added and texhashed the sty file so that lyx could find it.

I confirm that article(csthesis) is listed as a document class in Lyx.

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

So I generated a few DVIs and noticed that the example thesis, that came
with the package, bears little resemblance to my own output.

In order to test I imported the latex example file, included with the
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.

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.

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

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?

I've attached a few files to make things more clear:

csthesis.sty is the University provided style file.

sfuthesis.sty is a copy of article.layout with the csthesis package used.

bbtest.tex is a shorted version of the sample text file that came with
the university style file, without any hand-changes. Note it does not
include a \makeletter command, but generates a nice title according to
the university specs when using latex by hand.

I may be the first person to use LyX with this style at my University,
and considering how happy I am with LyX in general, I hope solving these
issues will encourage students in the future to use LyX.

Thanks for your time,
any pointers or suggestions appreciated.

B. Bogart

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[article,csthesis.sty]{article (sfuthesis)}

Preamble
\usepackage{csthesis}
EndPreamble

Format 4
Input stdclass.inc

SecNumDepth 3
TocDepth3

NoStyle Chapter
NoStyle Chapter*


Style Part
Align Left
AlignPossible Left
TopSep2
BottomSep 1.5
Font
  SizeLarger
EndFont
End


Style Part*
Align Left
AlignPossible Left
TopSep2
BottomSep 1.5
Font
  SizeLarger
EndFont
End

%%
%% This is file `csthesis.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% csthesis.dtx  (with options: `package')
%% 
%% IMPORTANT NOTICE:
%% 
%% For the copyright see the source file.
%% 
%% Any modified versions of this file must be renamed
%% with new filenames distinct from csthesis.sty.
%% 
%% For distribution of the original source see the terms
%% for copying and modification in the file csthesis.dtx.
%% 
%% This generated file may be distributed as long as the
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
%%
%% Comp. Science, SFU thesis style `csthesis', to be used with LaTeX2e
%% Copyright (C) 1998 Petr Pp Kubon
%%
%% History:
%%   1) 1989: Created by Stephen Chan (CSS) from Stanford PhD Thesis style
%%   2) 1996: Modifications and additions by Margaret Sharon (ACS)
%%   3) 

Re: Best approach to using lyx with a university provided style file?

2008-03-28 Thread Ryan Cross
I didn't read your whole post (also writing my thesis) but found this
highly helpful 
http://www.threewordslong.com/blog/entry/63/A_LyX_Thesis_Layout_for_UNSW_T

It helps that I am a student at UNSW, but it might give you the right idea.

-Ryan

On Sat, Mar 29, 2008 at 5:12 AM, B. Bogart <[EMAIL PROTECTED]> wrote:
> Hello all,
>
>  I'm just starting to work on my thesis and thought I would take a closer
>  look at getting the appropriate style to work.
>
>  I have to warn you all I've only made simple use of latex, and have been
>  using LyX for most of my writing.
>
>  When using an external format before I've simply exported the lyx file
>  to latex, applied the new style for the conference, and edited by hand
>  where needed, which has been a headache.
>
>  Now the format for my thesis (in the form of a .sty file) makes my other
>   formats simplistic, and I'm having lots of trouble. I'll try to reduce
>  this to the central details.
>
>  First I took the article.layout file, copied it into a new name, and
>  added \usepackage{csthesis.sty} in the preamble section as such:
>
>  Preamble
> \usepackage{csthesis}
>  EndPreamble
>
>  I also added and texhashed the sty file so that lyx could find it.
>
>  I confirm that article(csthesis) is listed as a document class in Lyx.
>
>  The layout file simply controls how the document appears in Lyx, and
>  does not have any effect on the output, correct?
>
>  So I generated a few DVIs and noticed that the example thesis, that came
>  with the package, bears little resemblance to my own output.
>
>  In order to test I imported the latex example file, included with the
>  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.
>
>  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.
>
>  So I did the logical thing of commenting out (with a preceding % sign)
>  in front of both the \qualification{} commands. Once that is done Lyx
>  will generate output, the style of the title is incorrect.
>
>  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?
>
>  I've attached a few files to make things more clear:
>
>  csthesis.sty is the University provided style file.
>
>  sfuthesis.sty is a copy of article.layout with the csthesis package used.
>
>  bbtest.tex is a shorted version of the sample text file that came with
>  the university style file, without any hand-changes. Note it does not
>  include a \makeletter command, but generates a nice title according to
>  the university specs when using latex by hand.
>
>  I may be the first person to use LyX with this style at my University,
>  and considering how happy I am with LyX in general, I hope solving these
>  issues will encourage students in the future to use LyX.
>
>  Thanks for your time,
>  any pointers or suggestions appreciated.
>
>  B. Bogart
>
>
> #% Do not delete the line below; configure depends on this
>  #  \DeclareLaTeXClass[article,csthesis.sty]{article (sfuthesis)}
>
>  Preamble
> \usepackage{csthesis}
>  EndPreamble
>
>  Format 4
>  Input stdclass.inc
>
>  SecNumDepth 3
>  TocDepth3
>
>  NoStyle Chapter
>  NoStyle Chapter*
>
>
>  Style Part
> Align Left
> AlignPossible Left
> TopSep2
> BottomSep 1.5
> Font
>   SizeLarger
> EndFont
>  End
>
>
>  Style Part*
> Align Left
> AlignPossible Left
> TopSep2
> BottomSep 1.5
> Font
>   SizeLarger
> EndFont
>  End
>
>
>


Re: Best approach to using lyx with a university provided style file?

2008-03-28 Thread Bob Lounsbury
On Fri, Mar 28, 2008 at 12:12 PM, B. Bogart <[EMAIL PROTECTED]> wrote:
> Hello all,
>
>  I'm just starting to work on my thesis and thought I would take a closer
>  look at getting the appropriate style to work.
>
>  I have to warn you all I've only made simple use of latex, and have been
>  using LyX for most of my writing.
>
>  When using an external format before I've simply exported the lyx file
>  to latex, applied the new style for the conference, and edited by hand
>  where needed, which has been a headache.
>
>  Now the format for my thesis (in the form of a .sty file) makes my other
>   formats simplistic, and I'm having lots of trouble. I'll try to reduce
>  this to the central details.
>
>  First I took the article.layout file, copied it into a new name, and
>  added \usepackage{csthesis.sty} in the preamble section as such:
>
>  Preamble
> \usepackage{csthesis}
>  EndPreamble

You don't need to add this preamble stuff to your layout file. When
you specify ' \DeclareLaTeXClass[article,csthesis.sty]{article
(sfuthesis)}' you are already telling LyX that you want it to use
csthesis.sty. I don't even know if you can add preamble stuff in this
manner.

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.


>  I also added and texhashed the sty file so that lyx could find it.

Where did you place the csthesis.sty?

>  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)'

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

Before we worry about errors. Let's be sure you've set things up
correctly. It seems you're on the right track, but I'm still confused
how you set everything up.

The csthesis.sty should be placed in a localtexmf directory where
LaTeX recognizes it. Then you should create your sfuthesis.layout
where LyX recognizes it and delete the preamble stuff you have in the
file.

I think these changes may eliminate some of the errors. It's also
helpful to know what operating system you're using.

Cheers,
/Bob