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
%%musicfont url(../js/abc2svg.ttf)
%%singleline 1
%%leftmargin 0
%%rightmargin 0
%%topspace 0
%
%%titlespace 0
%%musicspace 0
%%composerspace 0
%%staffsep 0

<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:-80%">
X:2
%%singleline 0
%%pagewidth 8cm
%%leftmargin .5cm
T:Scale of "C"
M:4/4
L:1/4
K:C
CDEF | GABc |

</span>

Inline music and more text.

Full tune:

abc2svg documentation source author - page hosted by Free