LyX ⇒ New Layout for Existing Class
New Layout for Existing Class
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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
-
- Posts: 4
- Joined: Sun Nov 01, 2009 5:03 am
Re: New Layout for Existing Class
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