FullProblemTemplate: Difference between revisions
Jump to navigation
Jump to search
Paultpearson (talk | contribs) mNo edit summary |
Paultpearson (talk | contribs) mNo edit summary |
||
Line 5: | Line 5: | ||
This PG code shows how to ... | This PG code shows how to ... | ||
</p> | </p> | ||
* | * File location in OPL: [https://github.com/openwebwork/webwork-open-problem-library/blob/master/OpenProblemLibrary/FortLewis/Authoring/Templates/ FortLewis/Authoring/Templates/] | ||
<br clear="all" /> | <br clear="all" /> |
Revision as of 20:57, 28 June 2014
Insert Title Here
This PG code shows how to ...
- File location in OPL: FortLewis/Authoring/Templates/
PG problem file | Explanation |
---|---|
Problem tagging: |
|
DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "AnswerFormatHelp.pl", ); TEXT(beginproblem()); |
Initialization: |
Context("Numeric"); $answer = Compute("1"); |
Setup: |
Context()->texStrings; BEGIN_TEXT Question text $BR $BR Answer = \{ ans_rule(20) \} \{ AnswerFormatHelp("formulas") \} END_TEXT Context()->normalStrings; |
Main Text: |
$showPartialCorrectAnswers = 1; ANS( $answer->cmp() ); |
Answer Evaluation: |
Context()->texStrings; BEGIN_SOLUTION ${PAR}SOLUTION:${PAR} Solution explanation goes here. END_SOLUTION Context()->normalStrings; COMMENT('MathObject version.'); ENDDOCUMENT(); |
Solution: |