[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Flaw in note-by-number, how to catch paper in \book ?
From: |
Ben Rudiak-Gould |
Subject: |
Re: Flaw in note-by-number, how to catch paper in \book ? |
Date: |
Sun, 27 Jan 2019 21:27:26 -0800 |
On Sun, Jan 27, 2019 at 4:40 AM David Kastrup <address@hidden> wrote:
> layout-set-staff-size does not work properly anyway IIRC. This is
> probably only one symptom.
>
It may have problems inside \layout { ... } but in this example it's used
in \paper { ... }. It seems to work fine in \paper. In fact
set-global-staff-size simply calls layout-set-staff-size in a \paper
context. (More precisely it calls layout-set-absolute-staff-size-in-module
on a clone of $defaultpaper and then sets $defaultpaper to the clone.)
It seems like there should be a way of setting the staff size in a \book
context. \book { #(set-global-staff-size n) ... } doesn't work at all (and
doesn't warn either; it should probably either work or warn). But \book {
\paper { #(layout-set-staff-size n) } ... } has precisely the same
sizing/positioning effect as top-level #(set-global-staff-size n) on
absolutely everything in my score except the stems of notes produced by
\note-by-number. It is very very close to working perfectly already.