WeBWorK Problems

link to file that contains PG?

link to file that contains PG?

by D. Brian Walton -
Number of replies: 1
I am writing a complex problem that essentially asks the student to write a proof of a limit using limit rules, building up from basic limits to a particular requested limit of interest. I would like to put the directions for this problem in a separate page with a link in the problem so that a new window opens with the directions (kind of like you can open a new window with dynamic graphs).

I know it is possible to have a static html file that is linked (like the files that give acceptable functions in formulas), but I'd really like to take advantage of the formula formatting (jsMath/images) that the PG files are able to use. So what I'd like is a PG file that is interpreted and then displayed in a new window when a link is clicked. This file will list the available limit rules and how they would be entered in the WeBWorK problem.

Is this possible?

- Brian

D. Brian Walton
James Madison University
In reply to D. Brian Walton

Re: link to file that contains PG?

by Gavin LaRose -
Hi Brian,

It seems to me that loading all of PG is probably overkill if you're just trying to display HTML with formulas. It's pretty easy to just include the jsMath Javascript libraries in the HTML file and thus get the equation formatting that way. See <http://www.math.union.edu/~dpvc/jsMath/authors/basics.html>: The easy/load.js file is available on your WeBWorK server at the URL <http://your.server.here/webwork2_files/jsMath/easy/load.js>.

If your WeBWorK installation is new enough to have MathJax, you can use that similarly; see <http://www.mathjax.org/docs/1.1/start.html> (and the MathJax.js file is at <http://your.server.here/webwork2_files/mathjax/MathJax.js>.

Hopefully that's useful,