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:
ERRORS from evaluating PG file:
Error detected while loading [TMPL]/macros/compoundProblem5.pl: PG_macro_file_eval detected error at line 123 of file [PG]/lib/PGloadfiles.pm 'eval "string"' trapped by operation mask at line 502 of [TMPL]/macros/compoundProblem5.pl, chunk 1. The calling package is PGloadfiles Died within PGloadfiles::compile_file called at line 166 of [PG]/lib/PGloadfiles.pm from within PGloadfiles::loadMacros called at line 431 of [PG]/macros/PG.pl from within main::loadMacros called at line 25 of (eval 17745)