prepmx - Man Page

preprocessor for PMX, easy music typesetting program


prepmx [options] jobname [outdir/] [stylefile]


M-Tx is an easy to use preprocessor language for the PMX music typesetting program, aimed at people who are not experts.  For an easy example, have a look at the following example:

 c2+       e4    g   | b4d-  c1 d c2        |
 c8 g+ e g c- g+ e g | d g f g    c- g+ e g |

For syntax reference, please look at the M-Tx manual written by Dirk Laurie, the creator of the M-Tx language and the author of prepmx(1), its command-line utility.

prepmx processes the file jobname.mtx to generate jobname.pmx. You can then process this file using the pmxab(1) command, which is a preprocessor for MusiXTeX.

outdir/ is the directory where `pmx' will put the final .tex file. Note that the trailing slash is mandatory. You can provide a stylefile for M-Tx. If omitted, the file `mtxstyle.txt' in the current directory is used, if there is one.


Options can also be specified in a `Options:' line in the preamble, which takes precedence over the command line.


disable unbeamVocal


disable doChords


enable debugMode


enable solfaNoteNames


enable ignoreErrors


disable doLyrics


enable instrumentNames


disable doUptext


disable uptextOnRests


enable beVerbose


enable pedanticWarnings


select Special Case n


print enabled status of all options

Exit Status

If no error was found, prepmx exits with return code 0.  In case of an error, the line number of the processed line is returned. This may not always be the line containing the actual error. A return status of 10000 means that the input file was empty or could not be opened.

See Also

M-Tx User's Guide (mtxdoc.pdf)
pmxab(1), musixtex(1)


prepmx was written by Dirk Laurie <>. This manual page was written by Roland Stigge <> for the Debian project. It was revised and extended by Nis Martensen <> and Bob Tennent <>.

Referenced By


08 January 2018 M-Tx Version 0.63 prepmx Manual Page