LyXNew Layout for Existing Class

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
chaff
Posts: 2
Joined: Mon Oct 19, 2009 10:26 am

New Layout for Existing Class

Post by chaff »

I've built a working layout file (and includes) for a latex cls/sty. The latex class was a very dated version of a thesis template for my school, and it is based on report.cls...but with heavy modifications to style.

Is it possible to build a LyX layout without the old latex class, simply by referring to the report.cls directly and putting all the style customization in an "AddToPreamble...EndPreamle" section? I think it should be fine, but I don't quite understand the syntax for the \DeclareLaTeXClass of the layout. All the existing layouts seem to have their own class and style files; is there a way to avoid this?

Thanks!

chaff

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

skibum1981
Posts: 4
Joined: Sun Nov 01, 2009 5:03 am

Re: New Layout for Existing Class

Post by skibum1981 »

I also need to know how to do this... see my thread here:
http://www.latex-community.org/forum/vi ... =19&t=6555
chaff
Posts: 2
Joined: Mon Oct 19, 2009 10:26 am

New Layout for Existing Class

Post by chaff »

skibum1981 wrote:I also need to know how to do this... see my thread here:
http://www.latex-community.org/forum/vi ... =19&t=6555
Well, given a cls and sty file, I've created a layout for LyX following the guidance in the LyX Wiki. It can be either simple or complex, depending on how nice you want LyX to display your work as you type it.

My real question is how to accomplish this without a sty or cls file set. I want to make a pure LyX template without requiring a custom LaTeX class. More accurately, I only want to rely on the standard LaTeX classes, putting all adaptation and customization of the existing classes in the Preamble section of the layout file. I can see how this will work, except for how to not declare a custom latex style sheet at the top of the layout file. This is probably very easy, but I haven't stumbled across an answer that doesn't throw errors.

Thanks.

chaff
Post Reply