WeBWorK Problems

New compoundPorblem5.pl Question

New compoundPorblem5.pl Question

by Paul Seeburger -
Number of replies: 0
I am trying to use the newer version of compoundProblem5.pl in the develop branch found here.

Perhaps this macro needs to be placed somewhere other than in my user macro folder as I cannot even get the sample coded problem to work using it.

Here is the error I am seeing:

ERROR caught by Translator while processing problem file:local/setHW24-RationalEquations/blankProblem2.pg
****************
ERRORS from evaluating PG file: 
Can't find string terminator " END_SECTION" anywhere before EOF at line 44 of (eval 16608)



$scaffold = Scaffold();   # create the scaffold
Context("Numeric");
##########################################
#  Section 1
##########################################
$f = Compute("x^2-1");
Context()->texStrings;
DISPLAY_SECTION("Section 1: The equation",<<'END_SECTION');
 Enter the function \($f\): \{ SECTION_ANS($f->cmp); $f->ans_rule(10) \}
END_SECTION
Context()->normalStrings;
##########################################
#  Section 2
##########################################
$x = Compute("sqrt(3)/2");
DISPLAY_SECTION("Section 2: The number",<<'END_SECTION');
 What is \(\sin(\pi/3)\)? \{ SECTION_ANS($x->cmp); $x->ans_rule \}
END_SECTION
##########################################
PROCESS_SCAFFOLD();
ENDDOCUMENT(); 

Oddly, I am getting a different error on another larger problem that I am creating.  It seems to be having trouble even loading the macro compoundProblem5.pl.

My loading code:

loadMacros(
   "compoundProblem5.pl",
   "PGstandard.pl",     # Standard macros for PG language
   "MathObjects.pl",
   "contextInequalitiesAllowStrings.pl",
   "contextLimitedFactor.pl",
   #"source.pl",        # allows code to be displayed on certain sites.
   "PGcourse.pl"     # Customization file for the course
);

The error: