Well, if eTeX isn't detected (deTeXted?) and you \setmaxinstruments >12, I think you'll get a TeX error anyhow. But I agree it would be more user friendly to print out a cleaner, more explicit message. So I guess PMX should do this:
write(11,'(a19,i2,a2))'\setmaxinstruments{',nv,'}%' if (nv .gt. 12) write(11,'(a)')'\ifx\undefined\eTeXversion [something] \fi' where [something] prints out a message like say 'You must use eTeX if you have more than 12 instrumnets', and then stops the TeX'ing. Or maybe [something] should even pause the TeX'ing in case this is being run from within a batch file. Could one of the TeXperts tell me what [something] is? PMX should probably also write '\input musixmad' if nv<13 --Don >-----Original Message----- >From: icking-music-archive.org-tex-music-boun...@mailman.nfit.au.dk >[mailto:icking-music-archive.org-tex-music-boun...@mailman.nfit.au.dk] >On Behalf Of Dirk Laurie >Sent: Thursday, June 24, 2010 8:24 AM >To: Werner Icking Music Archive >Subject: Re: [TeX-Music] PMX upgrade philosophy > >On Thu, Jun 24, 2010 at 02:30:09PM +0200, Bodo Meissner wrote: >> >> Or would it be possible to check for the TeX version and insert >> \setmaxinstruments{24} only if eTeX is detected? >> >Well, this is actually trivial. > >\ifx\undefined\eTeXversion\setmaxinstruments{12} > \else\setmaxinstruments{24} \fi > >Even better: pmxa counts the number of instruments and pmxb inserts >TeX code to give an error message if there are more than 12 and >eTeX is not detected. > >Thanks for the idea, Bodo! > >Dirk > >_______________________________________________ >tex-mu...@icking-music-archive.org mailing list >If you want to unsubscribe or look at the archives, go to >http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex- >music _______________________________________________ tex-mu...@icking-music-archive.org mailing list If you want to unsubscribe or look at the archives, go to http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music