Thank you for your response.  When you say:

> So, like I said you'll probably want to start with a blank document and
just modify it to match the thesis requirements.

Do you mean that I should use the approach of creating the layout file like
you suggested or just working with a blank report document.  If it is the
latter approach, my only worry is that they have redefined so many of the
latex settings (section, subsection, itemized list) that I would have to
place ERT all over the document to get it to conform to their
specifications.  Or am I misunderstanding this?  Thanks.

Adrian


-----Original Message-----
From: Bob Lounsbury [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 30, 2008 3:58 PM
To: Adrian Peter
Cc: lyx-users@lists.lyx.org
Subject: Re: Thesis template in Lyx

On Wed, Apr 30, 2008 at 12:23 PM, Adrian Peter <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi,
>
>
>
> I want to use Lyx to write my dissertation.  However, our university
already
> provides a LaTex template (cls file) that has to be followed exactly.
What
> is the easiest way to use Lyx to write my dissertation?

If you want to use LyX it could get quite involved, but you can always
start slow and build up to see if it will work.

> (1)    Should I try to create a layout file to use the latex cls file?  I
> have never created a Lyx layout file before so I don't know how difficult
> this is.  Any help on this or a if a tutorial exists on how to create a
> layout file for a cls file would be greatly appreciated.  I have attached
> the cls file.

The layout file is really just for LyX representation. I looked at
your .cls file and they use the report.cls so I just copied:

C:\Program Files\LyX15\Resources\layouts\report.layout
to
C:\Documents and Settings\username\Application
Data\lyx15\layouts\report.layout

I then renamed report.layout to ufthesis.layout and changed the first line
from:

\DeclareLaTeXClass{report}
to
\DeclareLaTeXClass{ufthesis}

And done. You now have a layout file for your ufthesis.cls file.

Next, you need to place the ufthesis.cls in your local texmf
directory. For me on XP with MiKTeX 2.6 this is located at:

C:\Documents and Settings\username\Application Data\MiKTeX\2.6\tex\latex

Then refresh the MiKTeX FNDB. In Start->All Programs->MiKTeX
2.6->Settings->General. After that you should start LyX and
Tools->Reconfigure (Important step). Then restart LyX and under
Document->Settings->Document Class you should see ufthesis and now
when you insert the toc, chapters, etc they should match the
formatting of the thesis when you export to pdf or dvi.

> (2)    Should I try to import a sample Tex file the university provides
into
> Lyx?  I tried to import it into Lyx but it failed.  Not sure what is going
> on.  I have attached the sample Tex file as well.

I was able to import the .tex with this new ufthesis.layout, but it
looks like it could be complicated. So, like I said you'll probably
want to start with a blank document and just modify it to match the
thesis requirements.

> I am not an advanced Lyx user so thank you very much in advance for the
> help.
>
>
>
> Adrian
>
>

Cheers,
/Bob

Reply via email to