Hi, On 09/23/2011 02:58 PM, Bob Tennent wrote: > >| >|In the Debian distribution I just run mtx file, and then run pmx > >| file.
Yes. Except that currently, "mtx" is called "prepmx" (/usr/bin/prepmx) in Debian. Might by a good idea to rename it to "mtx" /usr/bin/mtx), though. Any objections? > I just checked the Debian pmx repository and in fact the most recent > (February 2004!) package has a script that calls tex. The latest version in Debian is 2.6.15-1 from 2011 (and 2.5.21-1 from 2010 in the stable distribution), you can always check at http://packages.qa.debian.org/p/pmx.html > I've sent a note to the Debian maintainer. Thank you very much, the note was very appreciated! I'm attaching the proposed changes to Debian's "pmx" and the respective changes from the latest version in Debian in a patch. Any objections? I tried with several shipped example files from mtx and pmx in Debian and it seems to work well. Thanks in advance for comments, Roland PS: You proposed using the CTAN versions of mtx and pmx when pulling new versions to be released in Debian. Until now, I preferred the canonical location at WIMA as the reference source. What do the authors of pmx and mtx propose?
#!/bin/sh # # Script to run pmxab and all 3 passes of MusiXTeX # (courtesy of Jan Arne Fagertun, modified by Stefan Evert) # # Tue Feb 18 18:12:15 MET 1997 jan.a.fager...@energy.sintef.no # last modified: # Mon Jul 21 13:05:46 MET DST 1997 ev...@mathematik.uni-stuttgart.de # OPT="" FILE=$1 if [ " $FILE" = " -o" ] then OPT="-o" FILE=$2 fi if [ "$FILE" != "" ] then if [ ! -f $FILE ] then FILE=$FILE".pmx" fi BASE=`basename $FILE .pmx` if [ -f $FILE ] then TEX=$BASE".tex" # # Cleaning up in case of crash # if [ -f $TEX ] then echo "Deleting $TEX" rm -f $TEX fi MX1=$BASE".mx1" if [ -f $MX1 ] then echo "Deleting $MX1" rm -f $MX1 fi MX2=$BASE".mx2" if [ -f $MX2 ] then echo "Deleting $MX2" rm -f $MX2 fi LOG=$BASE".log" if [ -f $LOG ] then echo "Deleting $LOG" rm -f $LOG fi PML=$BASE".pml" if [ -f $PML ] then echo "Deleting $PML" rm -f $PML fi if [ -f pmxaerr.dat ] then echo "Deleting pmxaerr.dat" rm -f pmxaerr.dat fi # # Start of pmx - pmxab # echo "=== RUNNING PMX ===" pmxab $OPT $BASE || exit 1 # # Check if successful # if [ ! -f $TEX ] then exit 1 fi # # Cleaning up after pmx # echo "Cleaning up ..." if [ -f pmxaerr.dat ] then rm -f pmxaerr.dat fi # # Start MusiXTeX - tex # echo "=== RUNNING MUSIXTEX: 1st pass (tex) ===" pdfetex $BASE || exit 1 if [ ! -f $MX1 ] then exit 1 fi # # Discard .pdf created by first pass # PDF=$BASE".pdf" if [ -f $PDF ] then echo "Discarding $PDF" rm -f $PDF fi # # musixflx # echo "=== RUNNING MUSIXTEX: 2nd pass (musixflx) ===" musixflx $BASE || exit 1 if [ ! -f $MX2 ] then exit 1 fi # # tex again # echo "=== RUNNING MUSIXTEX: 3rd pass (tex) ===" pdfetex $BASE || exit 1 # # Check if we're successful # if [ ! -f $PDF ] then echo "*** PMX failed" exit 1 fi # # Cleaning up after MusiXTeX # echo "Cleaning up ..." if [ -f $MX1 ] then rm $MX1 fi if [ -f $MX2 ] then rm $MX2 fi echo "Done." else echo "Can't find either "$BASE" or "$FILE fi else echo "pmx: Convert .pmx input file into .pdf" echo "Usage: pmx [ -o ] <pmx_input_file>" fi
--- src/pmx 2004-02-17 15:17:57.000000000 +0100 +++ /home/rst/pmx 2011-09-23 16:01:10.000000000 +0200 @@ -85,19 +85,19 @@ # Start MusiXTeX - tex # echo "=== RUNNING MUSIXTEX: 1st pass (tex) ===" - tex $BASE || exit 1 + pdfetex $BASE || exit 1 if [ ! -f $MX1 ] then exit 1 fi # - # Discard .dvi created by first pass + # Discard .pdf created by first pass # - DVI=$BASE".dvi" - if [ -f $DVI ] + PDF=$BASE".pdf" + if [ -f $PDF ] then - echo "Discarding $DVI" - rm -f $DVI + echo "Discarding $PDF" + rm -f $PDF fi # # musixflx @@ -112,11 +112,11 @@ # tex again # echo "=== RUNNING MUSIXTEX: 3rd pass (tex) ===" - tex $BASE || exit 1 + pdfetex $BASE || exit 1 # # Check if we're successful # - if [ ! -f $DVI ] + if [ ! -f $PDF ] then echo "*** PMX failed" exit 1 @@ -138,6 +138,6 @@ echo "Can't find either "$BASE" or "$FILE fi else - echo "pmx: Convert .pmx input file into .dvi" + echo "pmx: Convert .pmx input file into .pdf" echo "Usage: pmx [ -o ] <pmx_input_file>" fi
------------------------------- TeX-music@tug.org mailing list If you want to unsubscribe or look at the archives, go to http://tug.org/mailman/listinfo/tex-music