page-format int

Default Scope Available in
(undefined) tuneabc2svg >= 1.20.15

Set or unset page formatting.

When page formatting is set, abc2svg adds <div> elements around the SVG images of the tunes. This prevents tunes to be split on page boundaries.

When this parameter is not set, styling (CSS) may be applied to the tunes via (X)HTML containers.

 %abc-2.2
 %%singleline 1
 %%leftmargin 0
 %%rightmargin 0
 %%topspace 0
 %%titlespace 0
 %%musicspace 0
 %%composerspace 0
 %%staffsep 0
 %%bgcolor white

 <p>
 Inline music
 <span style="vertical-align:-12%">
 X:1
 %%scale 0.4
 K:none stafflines=0 clef=none
 V:1 stem=up
 |A2A4|

 </span>
 and more text.

 <p>
 Full tune:
 <span style="vertical-align:-50%">
 X:2
 %%singleline 0
 %%pagewidth 8cm
 %%leftmargin .5cm
 T:Scale of "C"
 M:4/4
 L:1/4
 K:C
 CDEF | GABc |

 </span>
%abc-2.2 %%singleline 1 %%leftmargin 0 %%rightmargin 0 %%topspace 0 %%titlespace 0 %%musicspace 0 %%composerspace 0 %%staffsep 0 %%bgcolor white

Inline music X:1 %%scale 0.4 K:none stafflines=0 clef=none V:1 stem=up |A2A4| and more text.

Full tune: X:2 %%singleline 0 %%pagewidth 8cm %%leftmargin .5cm T:Scale of "C" M:4/4 L:1/4 K:C CDEF | GABc |