Creating Mathematica HTML Output

We illustrate this procedure with a simple example. We want to plot the Mathematica function

and present it on a Web page. We will save the resulting Mathematica output in the file

MathematicaCosPlot.html

Steps:

  1. Run Mathematica Version 3.0. Previous versions do not support html ouput. Currently, this version can be accessed at
    	/opt/bin/mathematica3.0
    

  2. After you finish your computations, select "save as" from the Mathematica "file" pull-down menu. This creates a notebook file with suffix, "nb". For example,
    	MathematicaCosPlot.nb
    

    Save this file and all subsequent files in a directory accessible on the Web. For example, for undergraduate students, on Strauss, this may be

    	public_html/<subdirname>:
    
    in your home directory or for faculty and graduate students this may be
    	/www/htdocs/<username>/<subdirname>
    

    where <subdirname> is the name of a subdirectory you may want to include to separate these Mathematica html files form your other files. For example

    	/www/htdocs/john/Mathematica.dir/
    

  3. Next, select "Save As Special" from the Mathematica "File" pull-down men and select "html." This will save a set of html files. For example,
    	MathematicaCosPlot.html    
    		.
    		.
    	MathematicaCosPlotgr1.gif
    	MathematicaCosPlotgr2.gif
    		.
    		.
    

    To make these files accessible on the Web, you must make the readable to others besides yourself. Use the chmod command. For example

    	chmod o+r MathematicaCosPlot*
    
  4. With these files in place the Web page
    MathematicaCosPlot.html
    is now accessble.