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
LyX ⇒ New Layout for Existing Class
NEW: TikZ book now 40% off at Amazon.com for a short time.
-
- Posts: 4
- Joined: Sun Nov 01, 2009 5:03 am
Re: New Layout for Existing Class
I also need to know how to do this... see my thread here:
http://www.latex-community.org/forum/vi ... =19&t=6555
http://www.latex-community.org/forum/vi ... =19&t=6555
New Layout for Existing Class
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.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
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