FullProblemTemplate

From WeBWorK_wiki
Revision as of 10:56, 4 April 2023 by Pstaabp (talk | contribs) (switch to PGML and remove answerFormatHelp.pl macro)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Insert Title Here

This PG code shows how to ...


Templates by Subject Area

PG problem file Explanation

Problem tagging data

Problem tagging:

DOCUMENT();

loadMacros('PGstandard.pl','MathObjects.pl','PGML.pl');

TEXT(beginproblem());

Initialization:

Context("Numeric");

$answer = Compute("1");

Setup:

BEGIN_PGML
Question text

Answer = [__]{$answer}

END_PGML

Main Text:

BEGIN_PGML_SOLUTION
Solution explanation goes here.
END_PGML_SOLUTION

ENDDOCUMENT();

Solution:

Templates by Subject Area