Section 1.3 Open Problem Library
The Open Problem Library 1 (OPL) is a repository of curated WeBWorK problems. At last count it had something like 30,000 problems, searchable by topic.
Most of the problems in this sample chapter have their source authored within the same document as the narrative. However the problems in this section are from the OPL and elsewhere on the server that is hosting the WeBWorK caclulations. For HTML output we can connect to the server and render the problem here in an interactive fashion. For print/PDF we use the
pretext
script to connect to the server to produce PreTeXt code for the problem. We can use the exercise.text.*
switches to control which parts of the problem (statements, solutions, hints) are incorporated.Problems do not have to be in the OPL to reside on a server; any problem that is accessbile from the WeBWorK course which is hosting the WeBWorK computation may be used this way.
This problem is one that Portland Community College has donated to the Open Problem Library.
A cylinder’s base’s radius is \({6\ {\rm m}}\text{,}\) and its height is \({10\ {\rm m}}\text{.}\)

- This cylinder’s volume, in terms of \(\pi\text{,}\) is .
- This cylinder’s volume, rounded to the hundredth place, is .
This uninteresting image, authored in LaTeX syntax, is here only to make sure its automatically-assigned identifier is correct, given that the OPL problem just above is going to generate another image for its static representation.
Warning 1.3.2. Incompatible Problems.
Not all problems that come from the OPL are compatible with PreTeXt. The reasons vary. Perhaps the problem uses older WeBWorK macros that cannot be augmented to provide PreTeXt output. Perhaps the problem nests a table within a table, which PreTeXt will not support. Perhaps there are graphics in the problem that are not sized appropriately for PreTeXt output and there’s nothing you can do about it. And there are many more reasons.
Unfortunately the variety of reasons for which a problem may be incompatible means that at present, there is no way to validate a problem automatically. Using an incompatible problem might not raise any errors at any stage of the PreTeXt processing, but large chunks of the problem may be missing, especially in print output. So we recommend that you review all output modes when using an OPL problem. Chances are that if it is behaving in print, it will behave elsewhere. But that is an unproven theory at this point.