pageheight unit

Default Scope Available in
11in
(none)
page
generation
abcm2ps
abc2svg >= 1.19.0

pagewidth unit

Default Scope Available in
8.5in
21cm
pageabcm2ps
abc2svg

pageheight and pagewidth define the size of the output pages.

With abc2svg:

There are 2 modes:
block mode
This is the default mode when pageheight is not defined.
In this mode, each music line or text block is output as a SVG image.
Page formatting is possible using the batch commands of abc2svg, and a web browser for (X)HTML output.
page mode
The page mode is activated when pageheight is defined.
The images are wrapped in SVG containers. There is one container per page, each one containing also the page header and footer.
In this mode the markup sequences (%%beginml...) are ignored.
The result is close to the one of abcm2ps.

With abcm2ps:

The page mode is the default formatting mode.
The music and the text blocks are formatted in PostScript pages or SVG images, one per page, with the header/footer.
A block mode is possible with SVG output (option -z).

%abc-2.2 %%musicfont url(../js/abc2svg.ttf) %%pageheight 6cm %%pagewidth 10cm %%topmargin 0 %%botmargin 0 %%leftmargin 1cm %%rightmargin 1cm %%header "Example page: $P" %%footer " $T" %%gutter .5cm
X:1 T:First tune M:C L:1/4 K:C C4|] %%begintext fill The second tune goes to a new page because the page height is small enough. %%endtext X:2 T:Second tune M:C L:1/4 K:C C4|]