On Dec 6, 2011, at 2:57 PM, Guenter Milde wrote:
>
> On 2011-12-06, Richard Heck wrote:
>>
>> Classes can be difficult or trivial, and if all you need is what you've
>> said, then it may be pretty trivial. Let's say you're otherwise happy
>> with the article class. Then the simplest thing to do is copy it over to
>> ericscls.cls and make the handful of changes you need to have it the way
>> you want it. Done.
>
> Actually, for small changes you do not even need a different LaTeX class but
> just a LyX layout (if you can tex2lyx from the command line with
> "-c myclass" and the -c switch operates as I suppose).
Thanks, Guenter. That reference to the command line is Greek to me. I used the
command line a fair bit the year I gave Linux a try, but don't use it much now
that I'm on a Mac. I imagine what you're suggesting is pretty simple, but I'm
not clear what I should do or what would be accomplished.
> If you base your layout on one of the more configurable document classes
> like memoir or the KOMA-script classes.
>
>> For the LyX layout, copy article.layout over to ericscls.layout.
>
> If you go for a custom layout for an unmodified latex class, the start of
> the layout file should read something like (watch the "[scrartcl]" in the
> second line):
>
> #% Do not delete the line below; configure depends on this
> # \DeclareLaTeXClass[scrartcl]{article (koma-script with roman headings)}
> # KOMA scrartcl textclass definition file.
> # Bernd Rellermeyer, 1998/7/11.
> # Modified by G.Milde for the use of roman headings 2001/4/9
>
> # the base layout
> Input scrartcl.layout
>
> # my customizations:
>
> # Roman font for section headings and description
> Preamble
> \renewcommand*{\sectfont}{\bfseries}
> \renewcommand*{\descfont}{\normalfont\bfseries}
> EndPreamble
I understand this a little better. When you say watch "[scrarticl]" in the
second line, do you mean emulate it with whatever I decide to call my layout?
Also a little puzzled how the code can have an effect when it's commented out.
------------------------------------------------------------------------------------------
Eric Weir
1111 Clairemont Avenue J3 ~ Decatur, GA 30030
404-636-6142 ~ [email protected]