Re: Conforming to a style manal

2008-08-27 Thread Richard Heck

Louis A. Turk wrote:

This is my first post. I'm using the memoir class to set type for a
book. I would like to make a few changes that I think are going to
require changes to a file someplace. I want to make the changes just
once, so that everyone in our office can get the same results
(uniformity) without having to know LaTeX. Here are the needed changes:

  
The easiest way to do this is going to be to create your own layout file 
that will automatically include the needed customizations in the 
document preamble. Layout files are detailed in the LyX customization 
manual. Yours can start like this:


#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[memoir]{Our Book (Memoir)}
Format 4
Input memoir.layout

Preamble
#Most of you customizations will go here
EndPreamble

1. CHANGES TO THE TITLE

We want to use the demo3 title style used in the Memoir Manual
(memman.pdf) on page 147-148.

  

For this, you just to to include:
   \chapterstyle{demo3}
in the Preamble/EndPreamble part of the layout file. That's where most 
of this stuff will go. You'll end up with one



2. CHANGES TO PAGE HEADERS

We want to modify the default header in the following manner:

   --- Place a rule across the page under it.
   --- Make the font slightly smaller and boldfaced.

  
Figure out how to create this using the memoir customization (section 
11.3), and then put it all in the Preamble/EndPreamble block. To make 
them accessible from LyX, you might need to redefine the headings style 
or something like that. LyX doesn't know about arbitrary page styles.



3. CHANGES TO THE QUOTE PARAGRAPH STYLE

   --- Do not want the right margin indented.
   --- Use a different, smaller font.

  

Something like:
\renewenvironment{quote}
{\small\list{}{}%
\item[]}
{\endlist}
in the Preamble. Note that I've just stolen and then modified what's in 
memoir.cls.



4. CHANGES TO THE TITLE AND SECTION HEADERS

   --- Use a sans serif font.

  
Do you mean in LyX or in the output? The font used in the output is 
controlled by memoir.cls, and the default chapter style does precisely 
what you say here:



Concerning fonts, I was surprised that my installation of Lyx (version
1.5.5) does not use a sans serif font at all when printing a page, in
spite of the fact that in document/fonts I have 


Default Family: Roman
Roman : Latin Modern Roman
Sans Serif: Latin Modern Sans
Typewriter: Latin Modern Typewriter

Instead Lyx uses the exact same serif font in the exact same size for
both Standard and Quote paragraph styles. The same serif font (but sized
bigger) is also used for chapter titles and section headers. This
doesn't seem right to me. Have I not set Lyx up properly?

  
As I said, memoir.cls controls the output, not LyX. If you use a 
different chapter style, then you'll see a sans serif font, or whatever.


If you want to change how it looks in LyX, you can do that, too, in the 
layout file, thus:

Style Chapter
   Font
  Family Sans
   EndFont
End
You can do whatever else you want to do, too.

On title pages, see here: http://wiki.lyx.org/LyX/UsingMemoirInLyX#toc5.

rh



Re: Conforming to a style manal

2008-08-27 Thread Richard Heck

Louis A. Turk wrote:

This is my first post. I'm using the memoir class to set type for a
book. I would like to make a few changes that I think are going to
require changes to a file someplace. I want to make the changes just
once, so that everyone in our office can get the same results
(uniformity) without having to know LaTeX. Here are the needed changes:

  
The easiest way to do this is going to be to create your own layout file 
that will automatically include the needed customizations in the 
document preamble. Layout files are detailed in the LyX customization 
manual. Yours can start like this:


#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[memoir]{Our Book (Memoir)}
Format 4
Input memoir.layout

Preamble
#Most of you customizations will go here
EndPreamble

1. CHANGES TO THE TITLE

We want to use the demo3 title style used in the Memoir Manual
(memman.pdf) on page 147-148.

  

For this, you just to to include:
   \chapterstyle{demo3}
in the Preamble/EndPreamble part of the layout file. That's where most 
of this stuff will go. You'll end up with one



2. CHANGES TO PAGE HEADERS

We want to modify the default header in the following manner:

   --- Place a rule across the page under it.
   --- Make the font slightly smaller and boldfaced.

  
Figure out how to create this using the memoir customization (section 
11.3), and then put it all in the Preamble/EndPreamble block. To make 
them accessible from LyX, you might need to redefine the headings style 
or something like that. LyX doesn't know about arbitrary page styles.



3. CHANGES TO THE QUOTE PARAGRAPH STYLE

   --- Do not want the right margin indented.
   --- Use a different, smaller font.

  

Something like:
\renewenvironment{quote}
{\small\list{}{}%
\item[]}
{\endlist}
in the Preamble. Note that I've just stolen and then modified what's in 
memoir.cls.



4. CHANGES TO THE TITLE AND SECTION HEADERS

   --- Use a sans serif font.

  
Do you mean in LyX or in the output? The font used in the output is 
controlled by memoir.cls, and the default chapter style does precisely 
what you say here:



Concerning fonts, I was surprised that my installation of Lyx (version
1.5.5) does not use a sans serif font at all when printing a page, in
spite of the fact that in document/fonts I have 


Default Family: Roman
Roman : Latin Modern Roman
Sans Serif: Latin Modern Sans
Typewriter: Latin Modern Typewriter

Instead Lyx uses the exact same serif font in the exact same size for
both Standard and Quote paragraph styles. The same serif font (but sized
bigger) is also used for chapter titles and section headers. This
doesn't seem right to me. Have I not set Lyx up properly?

  
As I said, memoir.cls controls the output, not LyX. If you use a 
different chapter style, then you'll see a sans serif font, or whatever.


If you want to change how it looks in LyX, you can do that, too, in the 
layout file, thus:

Style Chapter
   Font
  Family Sans
   EndFont
End
You can do whatever else you want to do, too.

On title pages, see here: http://wiki.lyx.org/LyX/UsingMemoirInLyX#toc5.

rh



Re: Conforming to a style manal

2008-08-27 Thread Richard Heck

Louis A. Turk wrote:

This is my first post. I'm using the memoir class to set type for a
book. I would like to make a few changes that I think are going to
require changes to a file someplace. I want to make the changes just
once, so that everyone in our office can get the same results
(uniformity) without having to know LaTeX. Here are the needed changes:

  
The easiest way to do this is going to be to create your own layout file 
that will automatically include the needed customizations in the 
document preamble. Layout files are detailed in the LyX customization 
manual. Yours can start like this:


#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[memoir]{Our Book (Memoir)}
Format 4
Input memoir.layout

Preamble
#Most of you customizations will go here
EndPreamble

1. CHANGES TO THE TITLE

We want to use the demo3 title style used in the Memoir Manual
(memman.pdf) on page 147-148.

  

For this, you just to to include:
   \chapterstyle{demo3}
in the Preamble/EndPreamble part of the layout file. That's where most 
of this stuff will go. You'll end up with one



2. CHANGES TO PAGE HEADERS

We want to modify the default header in the following manner:

   --- Place a rule across the page under it.
   --- Make the font slightly smaller and boldfaced.

  
Figure out how to create this using the memoir customization (section 
11.3), and then put it all in the Preamble/EndPreamble block. To make 
them accessible from LyX, you might need to redefine the headings style 
or something like that. LyX doesn't know about arbitrary page styles.



3. CHANGES TO THE QUOTE PARAGRAPH STYLE

   --- Do not want the right margin indented.
   --- Use a different, smaller font.

  

Something like:
\renewenvironment{quote}
{\small\list{}{}%
\item[]}
{\endlist}
in the Preamble. Note that I've just stolen and then modified what's in 
memoir.cls.



4. CHANGES TO THE TITLE AND SECTION HEADERS

   --- Use a sans serif font.

  
Do you mean in LyX or in the output? The font used in the output is 
controlled by memoir.cls, and the default chapter style does precisely 
what you say here:



Concerning fonts, I was surprised that my installation of Lyx (version
1.5.5) does not use a sans serif font at all when printing a page, in
spite of the fact that in document/fonts I have 


Default Family: Roman
Roman : Latin Modern Roman
Sans Serif: Latin Modern Sans
Typewriter: Latin Modern Typewriter

Instead Lyx uses the exact same serif font in the exact same size for
both Standard and Quote paragraph styles. The same serif font (but sized
bigger) is also used for chapter titles and section headers. This
doesn't seem right to me. Have I not set Lyx up properly?

  
As I said, memoir.cls controls the output, not LyX. If you use a 
different chapter style, then you'll see a sans serif font, or whatever.


If you want to change how it looks in LyX, you can do that, too, in the 
layout file, thus:

Style Chapter
   Font
  Family Sans
   EndFont
End
You can do whatever else you want to do, too.

On title pages, see here: http://wiki.lyx.org/LyX/UsingMemoirInLyX#toc5.

rh