FullProblemTemplate: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(switch to PGML and remove answerFormatHelp.pl macro) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<h2>Insert Title Here</h2> | <h2>Insert Title Here</h2> | ||
[[File: | [[File:GraphicsFilename1.png|300px|thumb|right|Click to enlarge]] | ||
<p style="background-color:#f9f9f9;border:black solid 1px;padding:3px;"> | <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> | ||
* | <!--* 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" /> | ||
Line 16: | Line 15: | ||
<tr valign="top"> | <tr valign="top"> | ||
<th> PG problem file </th> | <th style="width: 50%"> PG problem file </th> | ||
<th> Explanation </th> | <th> Explanation </th> | ||
</tr> | </tr> | ||
Line 42: | Line 41: | ||
DOCUMENT(); | DOCUMENT(); | ||
loadMacros( | loadMacros('PGstandard.pl','MathObjects.pl','PGML.pl'); | ||
); | |||
TEXT(beginproblem()); | TEXT(beginproblem()); | ||
Line 81: | Line 76: | ||
<td style="background-color:#ffdddd;border:black 1px dashed;"> | <td style="background-color:#ffdddd;border:black 1px dashed;"> | ||
<pre> | <pre> | ||
BEGIN_PGML | |||
Question text | Question text | ||
Answer = [__]{$answer} | |||
Answer = | |||
END_PGML | |||
</pre> | </pre> | ||
<td style="background-color:#ffcccc;padding:7px;"> | <td style="background-color:#ffcccc;padding:7px;"> | ||
<p> | <p> | ||
<b>Main Text:</b> | <b>Main Text:</b> | ||
</p> | </p> | ||
</td> | </td> | ||
Line 120: | Line 95: | ||
<td style="background-color:#ddddff;border:black 1px dashed;"> | <td style="background-color:#ddddff;border:black 1px dashed;"> | ||
<pre> | <pre> | ||
BEGIN_PGML_SOLUTION | |||
Solution explanation goes here. | Solution explanation goes here. | ||
END_PGML_SOLUTION | |||
ENDDOCUMENT(); | ENDDOCUMENT(); | ||
Line 144: | Line 114: | ||
</p> | </p> | ||
[[Category: | [[Category:Sample Problems]] | ||
[[Category: | [[Category:Subject Area Templates]] |
Latest revision as of 15:56, 4 April 2023
Insert Title Here
This PG code shows how to ...
PG problem file | Explanation |
---|---|
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: |