Graham Percival <[EMAIL PROTECTED]> writes:

> Here's what I unsuccessfully tried,
>
> \score{
>    \relative c'' {
>      \repeat unfold 16 {a4 b c d}
>    }
>    \layout{
> %    left-margin = #(- 30 mm)
>      #(define line-width (- 30 mm))
>    }
> }

I don't know what exactly you're trying to do, but maybe this example may
help you:

\paper {
  left-margin = 15\mm
  right-margin = 15\mm
  #(define line-width (- paper-width (* 30 mm)))
}

This resizes the margins (15mm left and right), and then set accordingly
the line width.

Indeed, the paper width being set when the paper size is defined (using
set-default-paper-size for instance), the line width can be computed as
follow:
  line-width = paper-width - left-margin - right-margin
that is, in scheme:
  #(define line-width (- paper-width left-margin right-margin))

nicolas



_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to