On 2011-12-06, Richard Heck wrote:
> On 12/06/2011 09:43 AM, Eric Weir wrote:
>> On Jul 17, 2011, at 12:52 PM, Liviu Andronic wrote:
>> I compose in Scrivener, then compile to LatTeX and import into LyX.
>> Within the constraints of the APA and Chicago styles I know what I
>> want documents to look like. It's pretty barebones: title bold in a
>> font only a little larger than text, sometimes centered, sometimes at
>> the left margin; headings bold at the left margin in a font the same
>> size as text; ability to switch between footnotes and footnotes at the
>> end/endnotes.
...
>> Getting in a little over my head here, but my naive user's sense is a
>> class would be required. I imagine it's not so easy to create a new
>> class, even building on an existing class. I wonder if there is a
>> class out there that would already provide what I'm looking for.
> 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).
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
...
Günter