Description
Page margins are specified either for both even and odd pages, or via separate odd and even page number values.
Derived By
Type page-margins
Attributes
Name |
Type |
Required? |
Default |
Description |
type |
margin-type |
No |
|
The type attribute is not needed when used as part of a print element. If omitted when the page-margins type is used in the defaults element, "both" is the default value.
|
Content Model
Contains elements as defined in the following table.
Component |
Type |
Occurs |
Default |
Description |
|
|
1..1 |
|
|
left-margin |
tenths |
1..1 |
|
The left-right-margins group specifies horizontal margins in tenths.
|
right-margin |
tenths |
1..1 |
|
The left-right-margins group specifies horizontal margins in tenths.
|
top-margin |
tenths |
1..1 |
|
|
bottom-margin |
tenths |
1..1 |
|
Margins, page sizes, and distances are all measured in tenths to keep MusicXML data in a consistent coordinate system as much as possible. The translation to absolute units is done in the scaling element, which specifies how many millimeters are equal to how many tenths. For a staff height of 7 mm, millimeters would be set to 7 while tenths is set to 40. The ability to set a formula rather than a single scaling factor helps avoid roundoff errors.
|
|
|
|
|
|
Referenced By
Example
<page-layout>
<page-height>1545</page-height>
<page-width>1194</page-width>
<page-margins type="both">
<left-margin>105</left-margin>
<right-margin>70</right-margin>
<top-margin>70</top-margin>
<bottom-margin>70</bottom-margin>
</page-margins>
</page-layout>
Definition
See page-layout