% To be processed with
%
% erase/del/rm/ <...>.mx2
% big-latex2e   <...>      with MusiXTeX and PMX in the TeX-input path
% musixflx      <...>
% big-latex2e   <...>
%
% Date: Thu, 26 Jun 1997 15:10:19 -0500 (CDT)
% From: "Eric Petersen [Aero]" <epeterse@msi.umn.edu>
% Subject: Re: PMX/MusiXTeX-->LaTeX
% In-Reply-To: <l03010d02afd747aed7ef@[193.4.241.79]>
% Message-Id: <Pine.SGI.3.95.970626114203.321A-100000@i9.msi.umn.edu>
% 
% >>Don't combine PMX/MusiXTeX and LaTeX. 
% >>Use plain TeX to process the TeX-source generated by PMX -- Werner 
% 
% > Alright. Fair enough, but would you expand on that a bit, Werner? I 
% > was planning to do exactly that with a text with a number of musical 
% > examples. Is there a way around this other than using plain TeX? Or, 
% > does this warning only apply to LaTeX 2.09 and not LaTeX2e? -- David
%
% As I recall you are using OzTeX. Provided that you build a big format 
% for LaTeX (Building Big Formats in the OzTeX User Guide) you should 
% have no trouble extracting examples from the PMX-generated MusiXTeX 
% file and processing them in a LaTeX2e document. In case you need it, 
% here is a sample:
%
%%%%%%%%%%%%%%%%%%%% begin latex2e+pmx-musixtex.tex %%%%%%%%%%%%%%%%%%%%
%&LaTeX - requires a ``big'' format
\documentclass[12pt]{article}
\usepackage{musixtex}
\input pmx
\input musixmad

\newcommand{\boilerplate}{This document shows how to include a short 
musical extract created by PMX in a \LaTeXe{} document.  The PMX (1.1) 
file used was slightly modified to include some effects that PMX 
couldn't do, but that shouldn't alter the overall idea.}

\begin{document}

First, my apologies for the length of the extract.  I can't claim that 
this is the definative example --- I just hacked at it until it worked 
--- but it does show what's possible.

\boilerplate

\begin{center}
	\large String Quartet, Opus 33, No. 3 (The Bird)
\end{center}
\begin{flushright}
	Franz Joseph Haydn (1732-1809)
\end{flushright}

\begin{music}
% copied from pmx/musixtex file --- begin
\smallmusicsize%
%\nopagenumbers --- comment out
\tracingstats=2\relax
%\hsize=524pt --- comment out
%\vsize=740pt --- comment out
\def\nbinstruments{4}
\setstaffs11
\setclef16
\setname1{Cello}
\setstaffs21
\setclef23
\setname2{Viola}
\setstaffs31
\setclef30
\setname3{Violin II}
\setstaffs41
\setclef40
\setname4{Violin I}
\generalsignature{ 0}%
\generalmeter{\meterfrac{2}{4}}%
\parindent 36pt
\elemskip1pt\afterruleskip1.000pt\beforeruleskip0pt\relax
\stafftopmarg0pt\staffbotmarg5\Interligne\interstaff{10}\relax
\readmod{latex2e+pmx-musixtex}
\nobarnumbers%
\startmuflex\startpiece\addspace\afterruleskip
% bar  1
\def\NOtes{\vnotes2.00\elemskip}%
\def\NOtesp{\vnotes2.45\elemskip}%
\def\NOTes{\vnotes2.83\elemskip}%
\def\NOTesp{\vnotes3.46\elemskip}%
\def\NOTEs{\vnotes4.00\elemskip}%
\NOtes\zcharnote {C}{\ppff\f}\ibl1{''A}0\upz B\qb1B\upz{`G}\qb1G\upz{'B}%
\qb1B\upz{`G}\tbl1\qb1G&\zcharnote {F}{\ppff\f}\ibl2c0\upz d\qb2d\upz b%
\qb2b\upz d\qb2d\upz b\tbl2\qb2b&\zcharnote {a}{\ppff\f}\ql{'b}\sk\qp&%
\zcharnote{16}{\bigfont\kern-30pt %
{\smalltype Extract from the 4th movement}}\zcharnote {a}{\ppff\f}%
\ql{'g}\sk\qp\en%
% bar  2
\hardspace{ 0.5pt}%
\xbar
\NOtes&&\ibu3{'a}0\lpz{a}\qb3{b}\lpz{`f}\qb3{g}\lpz{'a}\qb3{b}%
\lpz{`f}\tbu3\qb3{g}&\ibl4{'c}0\upz e\qb4d\upz c\qb4b\upz e\qb4d\upz c%
\tbl4\qb4b\en%
\def\wbrest{\centerbar\hpause}%
\def\atnextbar{\znotes\wbrest&\wbrest&&\en}%
% bar  3
\hardspace{ 0.5pt}%
\xbar
\NOtes\ibl1{''C}0\upz D\qb1D\upz B\qb1B\upz D\qb1D\upz B\tbl1\qb1B&%
\ibl2{'a}0\upz b\qb2b\upz{`g}\qb2g\upz{'b}\qb2b\upz{`g}\tbl2\qb2g&&\en%
\def\wbrest{\centerbar\hpause}%
\def\atnextbar{\znotes&&\wbrest&\wbrest\en}%
% bar  4
\xbar
\NOtes&&\ibl3{''a}0\upz b\qb3b\upz{`g}\qb3g\upz{'b}\qb3b\upz{`g}%
\tbl3\qb3g&\ibl4{''b}0\upz d\qb4d\upz b\qb4b\upz d\qb4d\upz b\tbl4\qb4b%
\en%
\def\wbrest{\centerbar\hpause}%
\def\atnextbar{\znotes\wbrest&\wbrest&&\en}%
% bar  5
\xbar
\NOtes\ibl1{''C}0\upz D\qb1D\upz B\qb1B\upz D\qb1D\upz B\tbl1\qb1B&%
\ibl2e0\upz f\qb2f\upz d\qb2d\upz f\qb2f\upz d\tbl2\qb2d&&\en%
\def\wbrest{\centerbar\hpause}%
\def\atnextbar{\znotes&&\wbrest&\wbrest\en}%
% bar  6
\xbar
\NOtes&&\ibl3{'e}0\upz f\qb3f\upz e\qb3d\upz f\qb3f\upz e\tbl3\qb3d&%
\ibl4{'d}0\upz g\qb4g\upz c\qb4b\upz g\qb4g\upz c\tbl4\qb4b\en%
\def\wbrest{\centerbar\hpause}%
\def\atnextbar{\znotes\wbrest&\wbrest&&\en}%
% bar  7
\xbar
\NOtes\zcharnote {C}{\ppff\p}\ibl1{''C}{-4}\upz D\qb1D\upz B\tbl1\qb1B%
\qp&\zcharnote {I}{\ppff\p}\ibl2e{-4}\upz f\qb2f\upz d\tbl2\qb2d\qp&\qp%
\sk\zcharnote {a}{\ppff\p}\ibl3{'e}{-4}\upz f\qb3f\upz e\tbl3\qb3d&\qp%
\sk\zcharnote {a}{\ppff\p}\ibl4{'f}{-9}\upz g\qb4g\upz c\tbl4\qb4b\en%
% bar  8
\xbar
\NOtes\ibl1{''C}{-4}\upz D\qb1D\upz B\tbl1\qb1B\qp&\ibl2e{-4}\upz f\qb2f%
\upz d\tbl2\qb2d\qp&\qp\sk\ibl3{'e}{-4}\upz f\qb3f\upz e\tbl3\qb3d&\qp%
\sk\ibl4{'f}{-9}\upz g\qb4g\upz c\tbl4\qb4b\en%
% bar  9
\xbar
\NOTEs&&&\en%
\def\wbrest{\centerbar\hpause}%
\def\atnextbar{\znotes\wbrest&\wbrest&\wbrest&\wbrest\en}%
\let\Endpiece=\endpiece%
% bar 10
\xbar
\NOtes\zcharnote {C}{\ppff\p}\cu{'C}\ast{.33}\ds\qp&%
\zcharnote {I}{\ppff\p}\zq e\cu{`g}\ast{.33}\ds\qp&%
\zcharnote {a}{\ppff\p}\zq{'c}\cu{`e}\ast{.33}\ds\qp&%
\zcharnote{16}{\bigfont\kern-30pt {\smalltype\it Theme A returns \ldots}}%
\zcharnote {a}{\ppff\p}\ibl4{'f}0\upz g\qb4g\ast{.33}\upz e\qb4e\upz g%
\qb4g\upz e\tbl4\qb4e\en%
\Endpiece
% copied from pmx/musixtex file --- end
\end{music}

\boilerplate

\endmuflex
\end{document}
%%%%%%%%%%%%%%%%%%%%% end latex2e+musixtex.tex %%%%%%%%%%%%%%%%%%%%%
%
% +------------------------------------------------------------------------+
% | Eric Petersen, University of Minnesota             (Home) 612-533-2654 |
% | Dept of Aerospace Engineering and Mechanics               612-624-3516 |
% | Minnesota Supercomputer Institute                         612-624-7347 |
% | epeterse@aem.umn.edu, epeterse@msi.umn.edu, pete0960@maroon.tc.umn.edu |
% | http://www.aem.umn.edu/people/students/epeterse/                       |
% +------------------------------------------------------------------------+