| 1 |
\documentclass{article} |
| 2 |
\thispagestyle{empty} |
| 3 |
\usepackage[generate,ps2eps]{abc} |
| 4 |
|
| 5 |
% --- M-Tx support |
| 6 |
\newenvironment{mtx}[1][] |
| 7 |
{\renewcommand{\normalabcoutputfile}{out-mtx}% |
| 8 |
\abc[program=musixtex,options={-g},extension=mtx,#1]} |
| 9 |
{\endabc} |
| 10 |
\newcommand{\mtxinput}[2][]{% |
| 11 |
\abcinput[program=musixtex,options={-g},extension=mtx,#1]{#2}} |
| 12 |
|
| 13 |
% --- PMW support |
| 14 |
\newenvironment{pmw}[1][] |
| 15 |
{\renewcommand{\normalabcoutputfile}{out-pmw}% |
| 16 |
\abc[program=pmw,options={-includefont},extension=pmw,#1]} |
| 17 |
{\endabc} |
| 18 |
\newcommand{\pmwinput}[2][]{% |
| 19 |
\abcinput[program=pmw,options={-includefont},extension=pmw,#1]{#2}} |
| 20 |
|
| 21 |
\begin{document} |
| 22 |
|
| 23 |
This document includes music excerpts written in different formats. It |
| 24 |
uses \texttt{abc.sty} and defines new environments. |
| 25 |
|
| 26 |
This is a short piece, typeset by M-Tx: |
| 27 |
|
| 28 |
\mtxinput{sample-mtx} |
| 29 |
|
| 30 |
The same piece, typeset by PMW: |
| 31 |
|
| 32 |
\pmwinput{sample-pmw} |
| 33 |
|
| 34 |
End of document. |
| 35 |
|
| 36 |
\end{document} |