On Thu, 13 Apr 2000, Joseph Zitt wrote:

> OK, maybe I'm missing something here.

Maybe the line I added below

> ===== begin scores.layout ====
> #% Do not delete the line below; configure depends on this
> #  \DeclareLaTeXClass[book]{Book with score lines}
> # Author: Joseph Zitt <[EMAIL PROTECTED]>

Input book.layout

> Style score0
>   CopyStyle Paragraph
>   Margin Static
>   LeftMargin ""
>   Align left
> END
> 
> Style score1
>   CopyStyle Paragraph
>   Margin Static
>   LeftMargin "MM"
>   Align left
> END
> 
> Style score2
>   CopyStyle Paragraph 
>   Margin Static
>   LeftMargin "MMMM"
>   Align left
> END
> 
> Style score3
>   CopyStyle Paragraph
>   Margin Static
>   LeftMargin "MMMMMM"
>   Align left
> END
> 
> ==== end scores.layout ====
> 
> I did Options->Reconfigure, reopened LyX, created a new document, and
> set it to the scores layout. I found two problems:
> 
> 1) The document now had *only* those four styles, whereas I had
> expected that it would have the new styles plus those in this file.

I'm surprized even this worked since you don define Paragraph anywhere.

> 2) They formatted as I expected onscreen, but when I output them to
> DVI all the indenting was gone.

The layout file just tells LyX what it should look like on screen and what
latex commands it should output when that Style is used.  All your Styles
produce the exact same LaTeX so they all look the same.

> Have I misunderstood something?

The other half of the problem:  defining the appropriate LaTeX.  Either in
a new LaTeX .cls or .sty file or explicitly using LaTeXName and other
entries in the layout file.  Take another look at Customization.lyx (get
the latest from 1.1.4 or from cvs if you haven already got it)

Allan. (ARRae)


Reply via email to