Section 44.8 WeBWorK Options
WeBWorK exercises in a PreTeXt project can be processed in two ways: using a local copy of
pg
, or using a webwork2
server. The variables here control which method is used where, and how it is used. These are also discussed in Chapter 38.
See Subsection 44.4.5 for publisher file attributes that control WeBWorK’s dynamic behavior in HTML.
Subsection 44.8.1 Static Processing
The attribute
/publication/webwork/@static-processing
can have value
webwork2
(the default) or local
. When WeBWorK exercises are processed to make static PreTeXt representations, this is the method that will be used. Either communicating with a webwork2
server or a local copy of pg
. The fastest processing happens if you use local
. See Section 38.1.Subsection 44.8.2 PG Location
The attribute
/publication/webwork/@pg-location
gives the absolute file path to a local copy of the
pg
repository, for when static processing is local. The default value is /opt/webwork/pg
. See Section 38.1.Subsection 44.8.3 Server
The URL to the WeBWorK server is in the attribute
/publication/webwork/@server
should include the protocol (e.g.
http
or https
) and not include a trailing slash. The server should be version 2.16 or later. See Subsection 38.5.1.Subsection 44.8.4 Course
Subsection 44.8.5 User
The username that signs in to the host course to process exercises is in the attribute
/publication/webwork/@user
See Subsection 38.5.1.
Subsection 44.8.6 Password
A password (for the host user in the host course) is in the attribute
/publication/webwork/@password
See Subsection 38.5.1.
Subsection 44.8.7 Task Reveal
The
/publication/webwork/@task-reveal
attribute is used to control how tasks in a multi-task exercise are made available to the reader. This applies to live interactive renderings of the exercises, either in HTML, in WeBWorK, or otherwise. Possible values are:
-
preceding-correct
(all preceding tasks must be correctly answered before the next is available) -
all
(all tasks are available)
See Subsection 38.5.2.