Difference between revisions of "FullProblemTemplate"
Jump to navigation
Jump to search
Paultpearson (talk | contribs) m |
|||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<h2>Insert Title Here</h2> |
<h2>Insert Title Here</h2> |
||
− | <p style="background-color:#eeeeee;border:black solid 1px;padding:3px;"> |
||
+ | [[File:GraphicsFilename1.png|300px|thumb|right|Click to enlarge]] |
||
+ | <p style="background-color:#f9f9f9;border:black solid 1px;padding:3px;"> |
||
This PG code shows how to ... |
This PG code shows how to ... |
||
− | <ul> |
||
− | <li>Download file: [[File:filename.txt]] (change the file extension from txt to pg)</li> |
||
− | <li>File location in NPL: <code>NationalProblemLibrary/FortLewis/Authoring/Templates/...</code></li> |
||
− | </ul> |
||
</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" /> |
||
<p style="text-align:center;"> |
<p style="text-align:center;"> |
||
[[SubjectAreaTemplates|Templates by Subject Area]] |
[[SubjectAreaTemplates|Templates by Subject Area]] |
||
Line 41: | Line 40: | ||
<pre> |
<pre> |
||
DOCUMENT(); |
DOCUMENT(); |
||
+ | |||
loadMacros( |
loadMacros( |
||
"PGstandard.pl", |
"PGstandard.pl", |
||
Line 46: | Line 46: | ||
"AnswerFormatHelp.pl", |
"AnswerFormatHelp.pl", |
||
); |
); |
||
+ | |||
TEXT(beginproblem()); |
TEXT(beginproblem()); |
||
</pre> |
</pre> |
||
Line 118: | Line 119: | ||
<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 136: | ||
</td> |
</td> |
||
</tr> |
</tr> |
||
+ | |||
</table> |
</table> |
||
Line 142: | Line 143: | ||
</p> |
</p> |
||
− | [[Category: |
+ | [[Category:Sample Problems]] |
− | [[Category: |
+ | [[Category:Subject Area Templates]] |
Revision as of 16: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: |