diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/latex4musicians/Figures/sample-all.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/latex4musicians/Figures/sample-all.tex | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/latex4musicians/Figures/sample-all.tex b/Master/texmf-dist/doc/latex/latex4musicians/Figures/sample-all.tex new file mode 100644 index 00000000000..507de59454e --- /dev/null +++ b/Master/texmf-dist/doc/latex/latex4musicians/Figures/sample-all.tex @@ -0,0 +1,36 @@ +\documentclass{article} +\thispagestyle{empty} +\usepackage[generate,ps2eps]{abc} + +% --- M-Tx support +\newenvironment{mtx}[1][] +{\renewcommand{\normalabcoutputfile}{out-mtx}% +\abc[program=musixtex,options={-g},extension=mtx,#1]} +{\endabc} +\newcommand{\mtxinput}[2][]{% +\abcinput[program=musixtex,options={-g},extension=mtx,#1]{#2}} + +% --- PMW support +\newenvironment{pmw}[1][] +{\renewcommand{\normalabcoutputfile}{out-pmw}% +\abc[program=pmw,options={-includefont},extension=pmw,#1]} +{\endabc} +\newcommand{\pmwinput}[2][]{% +\abcinput[program=pmw,options={-includefont},extension=pmw,#1]{#2}} + +\begin{document} + +This document includes music excerpts written in different formats. It +uses \texttt{abc.sty} and defines new environments. + +This is a short piece, typeset by M-Tx: + +\mtxinput{sample-mtx} + +The same piece, typeset by PMW: + +\pmwinput{sample-pmw} + +End of document. + +\end{document} |