Berthold Metz (PH-Freiburg) wrote:
hi,

i have a - very basal - problem for which i couldn't find any solution neither on the web nor in the documentation. and pease sorry: i am very new to lyx/tex.

i startet writing an longer document using koma-book. i would like to change some attributes for specific textclasses/environments (e.g. for the environment "quote" a smaller font-size), and i am not able to do this. how/where can i change them?

Do you want to change them on-screen? or in the compiled document?

Let me first assume it's the latter.

Since you are new to LyX and LaTeX: LaTeX isn't really designed to make this kind of change easy, and so neither is LyX. The size of the quotation font was chosen by the designers of the koma-book class, and (no offense) LaTeX assumes the authors of such classes know more about typography than authors do. It is possible to change this sort of thing, to be sure. But there's no way to do it from within LyX itself, because LyX leaves that kind of thing to LaTeX. That's kind of the idea behind LyX: You do the writing, and leave the formatting to LaTeX. And if you don't like koma-book, try book, or book (AMS), or....

So to change this, you have to get your hands dirty with LaTeX. It /may/ be that koma-book itself provides a way to configure the font size: It's very configurable. Look at the koma-script documentation to see. You'll find it in scrguide.pdf, which ought to have come with your TeX distribution. If not, you can find it on ctan.org. Direct LaTeX changes are entered into the document preamble, under Document>Settings. If you wanted the title to be Huge for example, you could add this to the preamble:
   \addtokomafont{title}{\Huge}
See section 3.2.1 of the manual for this. But this doesn't work for quotations.

If koma-book doesn't provide a way to change this, then you have to get your hands dirty with LaTeX. One way to do it is to put this in the preamble:
\renewenvironment{quotation}
              {\list{}{\listparindent 1em%
                       \itemindent    \listparindent
                       \rightmargin   \leftmargin
                       \parsep        \z@ [EMAIL PROTECTED]@}%
               \item\small\relax}
              {\endlist}
\renewenvironment{quote}
              {\list{}{\rightmargin\leftmargin}%
               \item\small\relax}
              {\endlist}
I think that'll work. I just stole it from the scrbook.cls class file, and added the "\small".

OK, so second: If you want to change the font size on-screen, then you need to modify the layout file. Copy scrbook.layout to your local LyX directory ($HOME/.lyx, on Linux), and then add these two lines to the end of it:
Style Quote
   Font
      Size small
   EndFont
End
Style Quotation
   Font
      Size small
   EndFont
End
Look at section 5.2 of the Customization manual to read more about this.

Exercise: You can actually integrate the preamble stuff here by putting it into a "preamble" section of the layout file.

Richard

Reply via email to