Changing layout temporarily

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Changing layout temporarily

Jacques Menu Muzhic
Hello folks,

MusicXML allows for margins and other layout elements to be placed in so-called ‘print' element, inside measures, to change the settings for a given system:

        When used in the layout element, the system-layout element
        defines a default appearance for all systems in the score.

        When used in the print element, the system layout element
        affects the appearance of the current system only. All
        other systems use the default values provided in the
        defaults element. If any child elements are missing from
        the system-layout element in a print element, the values
        from the defaults element are used there as well.

<!ELEMENT system-layout
        (system-margins?, system-distance?,
         top-system-distance?, system-dividers?)>
<!ELEMENT system-margins (left-margin, right-margin)>
<!ELEMENT system-distance %layout-tenths;>
<!ELEMENT top-system-distance %layout-tenths;>


For example:

    <measure number="13" width="325">
      <print>
        <page-layout>
          <page-height>3560</page-height>
          <page-width>2797</page-width>
          <page-margins>
            <left-margin>177</left-margin>
            <right-margin>79</right-margin>
            <top-margin>64</top-margin>
            <bottom-margin>45</bottom-margin>
          </page-margins>
        </page-layout>
        <system-layout>
          <system-margins>
            <left-margin>150</left-margin>
            <right-margin>0</right-margin>
          </system-margins>
          <top-system-distance>191</top-system-distance>
        </system-layout>
      </print>
     … … … …

http://lsr.di.unimi.it/LSR/Item?id=1098 shows how to modify the indentation, both left and right, with /pseudoIndents.

Is there a way in LilyPond to change \paper variables such as  paper-height and paper-width temporarily to obtain such effects?

Thanks for your help!

JM