FullProblemTemplate: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 41: | Line 41: | ||
<pre> | <pre> | ||
DOCUMENT(); | DOCUMENT(); | ||
loadMacros( | loadMacros( | ||
"PGstandard.pl", | "PGstandard.pl", | ||
Line 46: | Line 47: | ||
"AnswerFormatHelp.pl", | "AnswerFormatHelp.pl", | ||
); | ); | ||
TEXT(beginproblem()); | TEXT(beginproblem()); | ||
</pre> | </pre> | ||
Line 118: | Line 120: | ||
<td style="background-color:#ddddff;border:black 1px dashed;"> | <td style="background-color:#ddddff;border:black 1px dashed;"> | ||
<pre> | <pre> | ||
Context()->texStrings; | Context()->texStrings; | ||
BEGIN_SOLUTION | BEGIN_SOLUTION | ||
Line 136: | Line 137: | ||
</td> | </td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
Revision as of 19:36, 1 December 2010
Insert Title Here
This PG code shows how to ...
- Download file: File:Filename.txt (change the file extension from txt to pg when you save it)
- File location in NPL:
NationalProblemLibrary/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: |