home *** CD-ROM | disk | FTP | other *** search
- /* This script is for previewing formulas with Post.
- It saves the current formula as a temporary PS-file, which is then showed by Post.
-
- *** ATTENTION: This script needs the PS-interpreter POST by Adrian Aylward ***/
-
- post="dh1:text/post/"
- /*** This variable has to be modified to the path of Post on your system !!! ***/
-
- ADDRESS "MathScript"
-
- GetPrefs PS_FONTSIZE /* Change the font's size for better visability */
-
- size=result
-
- SetPrefs PS_FONTSIZE 30
-
-
- EXPORT EPS "T:preview.ps" FORCE
- /* saves the current formula as a PS-file */
-
- SetPrefs PS_FONTSIZE size
-
- ADDRESS COMMAND post||"post" post||"init.ps T:preview.ps screen"
- /* start Post
- This will invoke a requester on the screen of Post. Just click on OK.
- Your formula will show up after some time. If not, move the window's
- scroller gadget up so that the upper side of the page is shown. */
-
- ADDRESS COMMAND "delete >NIL: T:preview.ps#?"
- /* delete file */
-