To use a text processor other than plain TeX use one of the following commands:
To print the first five pages of an AMSTeX document, use the command: math joe % runtex -amstex -pages 1:5 testfile