The new beta version 2.146 at http://icking-music-archive.org/software/pmx/pmx2416.zip has a hack at enabling include files. Please do some testing of these capabilities, including purposely introducing errors in syntax, file names, or file locations. The length of the following description is a small clue about how many twists and turns I encountered in trying to code this up.
Include files are separate text files containing arbitrary (but contextually appropriate) sequences of valid PMX commands. The commands will be inserted at a particular place in the virtual PMX file that the code processes. They will always be syntax-checked. There are two types, "global" and "normal". There can only be one global include file and it must be named pmx.mod. If activated, its contents will always be inserted right after the setup data. To activate it, two conditions must be met: (1) an environment variable PMXMIDDIR must be defined to contain a valid path, ending with "/" or "\"; (2) a file named pmx.mod must be present in the directory so defined. If PMXMODDIR is not set, or if it is defined but there is no file pmx.mod, then processing will proceed as usual. Normal include files can have any name and do not require any environment variable to be set. They are activated by the PMX command AR[filename] , placed in the .pmx file at the location where the included lines are to go. PMX will first check for the file as pointed to by [filename], which may contain a complete or partial pathname preceding the actual file name. If [filename] is not found, then PMX will look for %PMXMODDIR[filename], i.e., it will check the directory defined by PMXMODDIR if PMXMODDIR has been set. However, it is not necessary to define PMXMODDIR to use a normal include file. There may be any number of normal include files. The same file may be used multiple times. Include files cannot contain references to other include files via the "AR" command; if you do that your computer will explode. The following information regarding all activated include files will be printed both to the screen and to the .pml file: notice of opening or closing, echo of the contents, error messages pertaining to syntax errors in the included PMX commands, and an error message if PMX cannot find a referenced normal include file. In the latter two cases PMX will stop. _______________________________________________ Tex-music mailing list [EMAIL PROTECTED] http://icking-music-archive.org/mailman/listinfo/tex-music

