If you were to write one, it would most likely go somewhere under your LaTeX 
tree: depending on distribution, /usr/share/texmf/tex/latex/misc, or 
something. Then texconfig rehash.

But really, all you need to do for simple things is modify the existing 
commands, or load extra packages, in the preamble of the layout file.

So: a myArticle.layout that changes section heading to bold looks like

Preamble
 \usepackage{sectsty}
 \sectionfont{\textbf}
EndPreamble.

after the input stuff, after the heading stuff, and before the style 
definitions.

A. to YourQuestion 2: myclass.layout. The idea is you start out with a 
functional layout file and make small modifications to it. So cp report, or 
anything.layout which does basically what you want, and then make 
modifications to the copy. 

On Sunday 19 August 2001 08:35 pm, you wrote:
> Thanks to all your help, I'm able to make layout files in my ~/.lyx/layouts
> directory to change just about anything I want in the Lyx environment. But
> of course layout file changes don't change the finished product (.dvi, .ps,
> .pdf etc).
>
> My understanding is I need to make a .sty file to change what I want in the
> finished product. First question: What would be in a myclass.sty file that
> does nothing but change the font size of the Author environment to Giant,
> otherwise keeping the Report text class as-is?
>
> Assuming I can make such a myclass.sty file, my other two questions concern
> what is not said in 6.22. Below I reproduce 6.22, interspersed with my
> twoquestions in angle brackets <>. Thanks in advance. Once I get this
> figured out I'll make a simple tutorial so nobody else will need to ask
> these silly questions again :-)
>
>
> 6.2.2 LaTeX2e sty file
>
> If your new document class is provided as a style file that is used in
> conjunction with an existing, supported document class, start by copying
> the existing class's layout file into your local directory. For the sake of
> example we'll assume that the style file is called myclass.sty and it is
> meant to be used with report.cls which is a standard class.
>
> <where do I put myclass.sty??>
>
> cp report.layout ~/.lyx/layouts/myclass.layout
>
> Then edit myclass.layout and change the line:
>
> \DeclareLaTeXClass{report}
>
> to read
>
> \DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
>
> Then add:
>
> Preamble     \usepackage{myclass}EndPreamble
>
> near the top of the file.
>
> <what file? myclass.layout, or something else??>

Reply via email to