Difference between revisions of "FullProblemTemplate"

From WeBWorK_wiki
Jump to navigation Jump to search
(Created page with '<h2>Insert Title Here</h2> <p style="background-color:#eeeeee;border:black solid 1px;padding:3px;"> This PG code shows how to ... <ul> <li>Download file: File:filename.txt (…')
 
Line 121: Line 121:
 
Context()->texStrings;
 
Context()->texStrings;
 
BEGIN_SOLUTION
 
BEGIN_SOLUTION
  +
${PAR}SOLUTION:${PAR}
 
Solution explanation goes here.
 
Solution explanation goes here.
 
END_SOLUTION
 
END_SOLUTION

Revision as of 19:28, 30 November 2010

Insert Title Here

This PG code shows how to ...

  • Download file: File:Filename.txt (change the file extension from txt to pg)
  • File location in NPL: NationalProblemLibrary/FortLewis/Authoring/Templates/...

Templates by Subject Area

PG problem file Explanation

Problem tagging data

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;

ENDDOCUMENT();

Solution:

Templates by Subject Area