Daniel Escamilla wrote:
> I'm using Lyx 1.3.7 with Ubuntu Linux and I wanna use a latex layout for a 
> thesis dissertation with Lyx.
>   
First, upgrade. That's an old version.
> I've followed the instructions included in the zip file and it says:
>
> - copy the class file to /usr/share/texmf/tex/latex/uw
> - next run texhash
> - Finally, Reconfigure Lyx.
>
> I've tried to import the example .tex file with Lyx but always it complains 
> the uwthesis doesn't exist.
>
> Is it the right way to work with any layout in Lyx? How can I use one as a 
> template?
>   
Besides the LaTeX class file, you also need a corresponding LyX layout
file. For example, the basic article.cls class has a corresponding
article.layout file that tells LyX how to display, etc, the environments
and such in the article.cls document class. The problem you are seeing
is due to your not having a layout file for uwthesis.cls, and so far as
I know no such layout file presently exists.

That's the bad news. The good news is that you can create a layout file
yourself and then post it on the wiki, or even submit it to the LyX
developers, so that others can use it. Moreover, since uwthesis is just
a modified version of the book layout, you'll probably be halfway there
is you just copy book.layout to uwthesis.layout and change the second
line from

# \DeclareLaTeXClass{book} 

to

# \DeclareLaTeXClass{uwthesis} 

Looking quickly through the uwthesis.cls file, it looks to me, in fact,
like the only thing you may need to add are fields to allow you to enter
the Title, Author, Year, Degree, Program, School, and the like. (Search
for "Title" in the class file. There are a few other things here, too.)
What else you'll need depends upon what else you're going to use.

Unfortunately, layout files are not the easiest thing in the world to
create, and the documentation concerning them is, I think all would
admit, neither complete nor user-friendly. The documentation there is is
in section 5.2 of the Customization part of the manual. There is a bit
more stuff on the wiki <http://wiki.lyx.org/Layouts/>, and there is a
lot more info on Steve Litt's site
<http://www.troubleshooters.com/lpm/200210/200210.htm>, and he is a
frequent contributor to the list with a lot of experience with layouts.
Some of the rest of us have played around with them, too, and so can
help answer questions and solve problems.

Best,
Richard


-- 
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto

Reply via email to