Format parameters ================= The general layout of the printed scores may be changed in four ways: 1- at compilation time setting the values in abc2ps.h, 2- at running time in a 'format' file, 3- at startup time in the command line, 4- by pseudo-comments inside the tunes. For more about 3), have a look at options.txt. A format file contains lines giving the parameters values, format: parameter [parameter list] In a format file, empty lines and lines starting with '#' are ignored. The pseudo-comments used for formatting have the format: %%parameter [parameter list] Format parameters may appear in the command line by: --parameter [parameter list] Some pseudo-comments are treated while being parsed and cannot appear in a format file nor in the command line. These ones are listed at the end of this file and are fully described in the file features.txt. List of the format parameters ----------------------------- autoclef Default: 1 Compilation: none Command line: none Description: Adjust the clefs when not defined in K: or V:. barsperstaff Default: 0 Compilation: none Command line: -B Description: Try to typeset with bars on each line. botmargin Default: 1cm Compilation: none Command line: none Description: Set the bottom margin to . composerfont Default: Times-Italic 14 Compilation: none Command line: none Description: Set the composer font to with a size . composerspace Default: 0.2cm Compilation: none Command line: none Description: Set the vertical space before the composer to . continueall Default: 0 Compilation: none Command line: -c Description: Ignore the line breaks in tune if true. deco [] Default: none Compilation: none Command line: none Description: Define a decoration. !! this is an experimental feature which is subject to change in next releases and asks for a good knowledge of the internals of abcm2ps - see deco.abc for examples !! The actual arguments are: : name of the decoration. If it is the name of an existing decoration, this one is redefined. : index of a C function (defined in deco.c). The possible values are: 0, 1, 2: decoration near the note, inside the staff. 0: 'dot' and 'tenuto' 1: 'slide' 2: 'arpeggio' 3, 4, 5: decoration near the note, outside the staff, generally printed above the staff. 3: general 4: below the staff 5: long 'trill' (with start and stop) 6, 7: decoration tied to the staff, generally printed below the staff. 6: general 7: long dynamic (with start and stop) : postscript function name or '-' if start of a long decoration. : decoration height. and : left and right widths (not used actually). : text to display (for some postscript functions - see code). encoding Default: 0 Compilation: none Command line: -L Description: Set the language encoding to ISO-Latin. may take values from '0' to '6'. The value '0' is the same as '1', but the PostScript encoding table is not output. exprabove Default: 0 Compilation: none Command line: none Description: Draw the expression decorations above the staff. If neither 'exprabove' nor 'exprbelow' are true, the expression decorations are drawn above the staff if there are lyrics on the staff, and below otherwise. 'exprabove' takes precedence over 'exprbelow'. exprbelow Default: 0 Compilation: none Command line: none Description: Draw the expression decorations below the staff. If neither 'exprabove' nor 'exprbelow' are true, the expression decorations are drawn above the staff if there are lyrics on the staff, and below otherwise. 'exprabove' takes precedence over 'exprbelow'. flatbeams Default: 0 Compilation: none Command line: -f Description: Have flat beams in bagpipe tunes. footer Default: none Compilation: none Command line: none Description: Define the text printed at the bottom of each page. There may be one or two lines. When 2 lines, these ones must be separated by the 2 characters "\n" (not a real 'newline'). In each lines 3 areas may be defined: left, center and right. These areas are separated by tabulations (real TABs, not '\t') and may be empty (if the left area is empty, quote the string - see sample3.abc for example). The character '$' introduces variable expansion: - '$D' is the current date and time, - '$F' is the current input file name, - '$P' is the current page number, - '$P0' and '$P1' are also the page number, but only when this one is even ('0') or odd ('1'), - '$T' is the current tune title, - '$V' is 'abcm2ps-' followed by the program version. For example, the command line option '-N3' is the same as: %%header "$P0 $P1" (note the 2 TABs). footerfont Default: Times-Roman 12 Compilation: none Command line: none Description: Set the footer font to with a size . Note that the footer is not scaled. freegchord Default: 0 Compilation: none Command line: none Description: Prevent the characters '#', 'b' and '=' to be displayed as sharp, flat and natural sign in guitar chords. When this flag is set, displaying accidental may be forced escaping the characters ('\#', '\b' and '\='). gchordbox Default: 0 Compilation: none Command line: none Description: Draw a box around the guitar chords. This value may be set to 'true' by %%gchordfont. gchordfont [box] Default: Helvetica 12 Compilation: none Command line: none Description: Set the guitar chord font to with a size . If 'box' is present, draw a box around the guitar chords. graceslurs Default: 1 Compilation: none Command line: -G Description: Draw slurs on grace notes. header Default: none Compilation: none Command line: none Description: Set the text printed at the top of each page. See 'footer' above for the header syntax. headerfont Default: Times-Roman 12 Compilation: none Command line: none Description: Set the header font to with a size . Note that the header is not scaled. indent Default: 0 Compilation: none Command line: -I Description: Indent the first line of the tune by . infofont Default: Times-Italic 14 Compilation: none Command line: none Description: Set the infoline font to with a size . infoline Default: 0 Compilation: none Command line: none Description: Display the rhythm and the origin on the same line. infospace Default: 0 Compilation: none Command line: none Description: Set the vertical space before the infoline to . landscape Default: 0 Compilation: none Command line: -l Description: Set the page orientation to landscape. leftmargin Default: 1.8cm Compilation: none Command line: -m Description: Set the left margin to . lineskipfac Default: 1.1 Compilation: none Command line: none Description: Set the factor for spacing between lines of text to . maxshrink Default: 0.65 Compilation: none Command line: -a Description: Set how much to compress horizontally when staff breaks are chosen automatically. must be between 0 and 1. measurebox Default: 0 Compilation: none Command line: trailing 'b' at end of -j or -k - see measurenb. Description: Draw a box around the measure numbers. This value may be set to 'true' by %%measurefont. measurefirst Default: 1 Compilation: none Command line: -b Description: Start measure numbering of the tune at . If the measure number needs to be changed inside a tune, use '%%setbarnb' (see features.txt). measurefont [box] Default: Times-Italic 14 Compilation: none Command line: none Description: Set the measure font to with a size . If 'box' is present, draw a box around the measure number. measurenb Default: -1 Compilation: none Command line: -j[b] or -k[b] Description: Draw the measure number each bars. If = 0, the measure number appears only on the left of each staff. On the command line, if a trailing 'b' is present, a box is drawn around the measure numbers. musiconly Default: 0 Compilation: none Command line: -M Description: Don't output the lyrics if true. musicspace Default: 0.2cm Compilation: none Command line: none Description: Set the vertical space before the first staff to . notespacingfactor Default: 1.414 Compilation: none Command line: none Description: Set the note spacing factor to . This value is used to compute the natural space of the notes. The base space of the crotchet is always 40 pts. When the duration of a note type is twice the one of an other note type, its space is multiplied by this factor. The default value makes a note space to be multiplied by 2 when its duration is multiplied by 4, i.e. the space of the semibreve is 80 pts and the space of the semiquaver is 20 pts. Setting this value to 1 sets all note spaces to 40 pts. oneperpage Default: 0 Compilation: none Command line: -1 Description: Output one tune per page. pageheight Default: PAGEHEIGHT Compilation: PAGEHEIGHT= (A4: 29.7cm - US: 11in) Command line: none Description: Set the page height to . pagewidth Default: PAGEWIDTH Compilation: PAGEWIDTH= (A4: 21.0cm - US: 8.5in) Command line: none Description: Set the page width to . parskipfac Default: 0.4 Compilation: none Command line: none Description: Set the factor for spacing between parts to . partsbox Default: 0 Compilation: none Command line: none Description: Draw a box around the part names. This value may be set to 'true' by %%partsfont. partsfont [box] Default: Times-Roman 15 Compilation: none Command line: none Description: Set the part font to with a size . If 'box' is present, draw a box around the part names. partsspace Default: 0.3cm Compilation: none Command line: none Description: Set the vertical space before a new part to . postscript Default: none Compilation: none Command line: none Description: Define a postscript sequence to be included in the header of the output file. This format may be used to override any postscript function or to define new functions for use in the 'deco' format. Such commands should be parsed before any output occurs, that is in a format file or at the beginning of the first ABC file. printparts Default: 1 Compilation: none Command line: none Description: Print the part indications (P:). printtempo Default: 1 Compilation: none Command line: -Q (on) / +Q (off) Description: Print the tempo indications (Q:). repeatfont Default: Times-Roman 13 Compilation: none Command line: none Description: Set the repeat number/text font to with a size . rightmargin Default: 1.8cm Compilation: none Command line: none Description: Set the right margin to . scale Default: 0.75 Compilation: none Command line: -s Description: Set the page scale factor to . Note that the header and footer are not scaled. slurheight Default: 1.0 Compilation: none Command line: none Description: Set the slur height factor to . splittune Default: 0 Compilation: none Command line: -0 Description: If false, a tune starts on a new page if it does not fit in the current one. If true, there is no page checking, and the tune may be splitted. squarebreve Default: 0 Compilation: none Command line: none Description: Display the breve notes in square format. staffsep Default: 46pt Compilation: none Command line: -d Description: Set the vertical interstaff space to . staffwidth Default: none Compilation: none Command line: -w Description: Adjust the right margin so that the staff width is . straightflags Default: 0 Compilation: none Command line: none Description: Have straight flags on stems in bagpipe tunes. stretchlast Default: 0 Compilation: none Command line: none Description: Stretch the last staff of the tune when underfull. stretchstaff Default: 1 Compilation: none Command line: none Description: Stretch underfull staves across page. subtitlefont Default: Times-Roman 16 Compilation: none Command line: none Description: Set the subtitle font to with a size . subtitlespace Default: 0.1cm Compilation: none Command line: none Description: Set the vertical space before the subtitle to . sysstaffsep Default: 36pt Compilation: none Command line: none Description: Set the vertical system interstaff space to . tempofont Default: Times-Bold 15 Compilation: none Command line: none Description: Set the tempo font to with a size . textfont Default: Times-Roman 16 Compilation: none Command line: none Description: Set the text font to with a size . textspace Default: 0.5cm Compilation: none Command line: none Description: Set the vertical space before texts to . titlecaps Default: 0 Compilation: none Command line: none Description: Output the title in uppercase letters. titlefont Default: Times-Roman 20 Compilation: none Command line: none Description: Set the title font to with a size . titleleft Default: 0 Compilation: none Command line: none Description: Output the title on the left (instead of centered). titlespace Default: 0.2cm Compilation: none Command line: none Description: Set the vertical space before the title to . topmargin Default: 1cm Compilation: none Command line: none Description: Set the top margin to . topspace Default: 0.8cm Compilation: none Command line: none Description: Set the vertical space at the top of a tune to . vocalabove Default: 0 Compilation: none Command line: none Description: Set the vocals above the staff. vocalfont Default: Times-Bold 13 Compilation: none Command line: none Description: Set the font of the lyrics under staves to with a size . vocalspace Default: 23pt Compilation: none Command line: none Description: Set the vertical space before the lyrics under staves to . withxrefs Default: 0 Compilation: none Command line: -x Print the X: number in the title. wordsfont Default: Times-Roman 16 Compilation: none Command line: none Description: Set the font of the lyrics at end of tune to with a size . wordsspace Default: 0.5cm Compilation: none Command line: none Description: Set the vertical space before the lyrics at end of tune to . writehistory Default: 0 Compilation: none Command line: -n Description: Output notes, history... List of the pseudo-comments treated while parsed ------------------------------------------------ begintext [] Start printing a free text. The text appears on the next lines (starting with '%%' or not). The text ends on a line containing %%endtext 'parameter' may be: obeylines: keep lines as they are (default) align or justify: justify the lines ragged or fill: fill the lines skip: don't print the lines (same as comments) center Print one line of centered text. EPS Include the file 'eps_file'. endtext See 'begintext'. multicol Define multicolomn printing. 'command' may be: start: save the current vertical position and the left and right margins. Then, these margins may be changed to print music or text. new: reset the vertical offset at the place of the previous '%%multicol start', and restore the left and right margins. end: restore the left and right margins, and skip down to a safe place. (see 'sample3.abc' for example). newpage [] Continue printing on a new page and eventually restart page numbering from 'int'. sep [

] Print a separator of length 'len' with space 'h1' above and space 'h2' below (defaults: h1 = h2 = 0.5cm, len = 3.0cm). setbarnb Set the measure number to . staffbreak Have a break in the current staff. gives the width of the break (in points, inches or cm). As a side effect, when the width is bigger than 0.5 cm, the left side of the staff system is redrawn. When used in a multi-voice tune, a staff break must be inserted in each voice. staves See 'features.txt' for description. text Print one line of text. vskip Skip vertical space of height 'h'.