Difference between revisions of "FullProblemTemplate"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
[[File:Filename.png|300px|thumb|right|Click to enlarge]] |
[[File:Filename.png|300px|thumb|right|Click to enlarge]] |
||
− | <p style="background-color:# |
+ | <p style="background-color:#f9f9f9;border:black solid 1px;padding:3px;"> |
This PG code shows how to ... |
This PG code shows how to ... |
||
</p> |
</p> |
Revision as of 18:23, 2 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:
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: |