From 656e0d39b9472f19bdc24be68d05efb1cdaa0b32 Mon Sep 17 00:00:00 2001 From: Alex Jordan Date: Thu, 22 Jun 2023 17:27:42 -0700 Subject: [PATCH] remove all beginproblem() from distribution problems --- conf/snippets/blankProblem.pg | 1 - conf/snippets/blankProblem2.pg | 3 --- courses.dist/modelCourse/templates/set0/prob1.pg | 1 - courses.dist/modelCourse/templates/set0/prob1a.pg | 1 - courses.dist/modelCourse/templates/set0/prob1b.pg | 1 - courses.dist/modelCourse/templates/set0/prob2.pg | 3 +-- courses.dist/modelCourse/templates/set0/prob3.pg | 3 +-- courses.dist/modelCourse/templates/set0/prob4/prob4.pg | 1 - courses.dist/modelCourse/templates/set0/prob5.pg | 1 - courses.dist/modelCourse/templates/setDemo/c4s5p2.pg | 1 - courses.dist/modelCourse/templates/setDemo/josephus.pg | 4 +--- courses.dist/modelCourse/templates/setDemo/limits.pg | 3 +-- courses.dist/modelCourse/templates/setDemo/liteApplet1.pg | 3 +-- courses.dist/modelCourse/templates/setDemo/liteApplet2.pg | 4 +--- courses.dist/modelCourse/templates/setDemo/nsc2s10p2.pg | 1 - courses.dist/modelCourse/templates/setDemo/prob0837.pg | 2 -- courses.dist/modelCourse/templates/setDemo/prob5.pg | 2 -- courses.dist/modelCourse/templates/setDemo/prob6b.pg | 2 -- courses.dist/modelCourse/templates/setDemo/s2_2_1.pg | 1 - .../modelCourse/templates/setDemo/sample_myown_ans.pg | 3 +-- .../modelCourse/templates/setDemo/sample_units_ans.pg | 2 -- courses.dist/modelCourse/templates/setDemo/srw1_9_4.pg | 2 -- .../setMAAtutorial/conditionalquestionexample.pg | 2 +- .../templates/setMAAtutorial/hermitegraphexample.pg | 2 +- .../setMAAtutorial/htmllinksexample/htmllinksexample.pg | 4 ++-- .../templates/setMAAtutorial/javaappletexample.pg | 4 ++-- .../templates/setMAAtutorial/javascriptexample1.pg | 5 ++--- .../templates/setMAAtutorial/javascriptexample2.pg | 3 +-- .../modelCourse/templates/setMAAtutorial/liteApplet1.pg | 3 +-- .../modelCourse/templates/setMAAtutorial/liteApplet2.pg | 4 +--- .../templates/setMAAtutorial/matchinglistexample.pg | 4 ++-- .../templates/setMAAtutorial/multiplechoiceexample.pg | 4 ++-- .../templates/setMAAtutorial/ontheflygraphicsexample1.pg | 4 ++-- .../templates/setMAAtutorial/ontheflygraphicsexample2.pg | 4 ++-- .../templates/setMAAtutorial/popuplistexample.pg | 4 ++-- .../modelCourse/templates/setMAAtutorial/prob3.pg | 8 -------- .../modelCourse/templates/setMAAtutorial/prob4.pg | 1 - .../setMAAtutorial/simplemultiplechoiceexample.pg | 4 ++-- .../templates/setMAAtutorial/standardexample.pg | 3 +-- .../staticgraphicsexample/staticgraphicsexample.pg | 2 +- .../templates/setMAAtutorial/truefalseexample.pg | 4 ++-- .../templates/setMAAtutorial/vectorfieldexample.pg | 2 -- .../modelCourse/templates/setOrientation/prob01.pg | 2 -- .../modelCourse/templates/setOrientation/prob02.pg | 2 -- .../modelCourse/templates/setOrientation/prob03.pg | 1 - .../modelCourse/templates/setOrientation/prob04.pg | 1 - .../modelCourse/templates/setOrientation/prob05/prob05.pg | 2 -- .../modelCourse/templates/setOrientation/prob06.pg | 1 - .../modelCourse/templates/setOrientation/prob07.pg | 1 - .../modelCourse/templates/setOrientation/prob08.pg | 1 - .../modelCourse/templates/setOrientation/prob09.pg | 1 - .../modelCourse/templates/setOrientation/prob10.pg | 1 - .../modelCourse/templates/setOrientation/prob11.pg | 1 - .../modelCourse/templates/setOrientation/prob12.pg | 1 - .../modelCourse/templates/setOrientation/prob13.pg | 1 - .../modelCourse/templates/setOrientation/prob14/prob14.pg | 2 -- .../modelCourse/templates/setOrientation/prob15.pg | 2 -- doc/parser/extensions/1-function.pg | 2 -- doc/parser/extensions/2-function.pg | 2 -- doc/parser/extensions/3-operator.pg | 2 -- doc/parser/extensions/4-list.pg | 2 -- doc/parser/extensions/5-operator.pg | 2 -- doc/parser/extensions/6-precedence.pg | 2 -- doc/parser/extensions/7-context.pg | 2 -- doc/parser/extensions/8-answer.pg | 2 -- doc/parser/problems/sample01.pg | 4 +--- doc/parser/problems/sample02.pg | 2 -- doc/parser/problems/sample03.pg | 2 -- doc/parser/problems/sample04.pg | 2 -- doc/parser/problems/sample05.pg | 2 -- doc/parser/problems/sample06.pg | 2 -- doc/parser/problems/sample07.pg | 2 -- doc/parser/problems/sample08.pg | 2 -- doc/parser/problems/sample09.pg | 2 -- doc/parser/problems/sample10.pg | 2 -- doc/parser/problems/sample11.pg | 2 -- doc/parser/problems/sample12.pg | 2 -- doc/parser/problems/sample13.pg | 2 -- doc/parser/problems/sample14.pg | 2 -- doc/parser/problems/sample15.pg | 2 -- doc/parser/problems/sample16.pg | 2 -- doc/parser/problems/sample17.pg | 2 -- doc/parser/problems/sample18.pg | 2 -- doc/parser/problems/sample19.pg | 2 -- doc/parser/problems/sample20.pg | 2 -- doc/parser/problems/sample21.pg | 2 -- doc/parser/problems/sample22.pg | 4 +--- 87 files changed, 36 insertions(+), 164 deletions(-) diff --git a/conf/snippets/blankProblem.pg b/conf/snippets/blankProblem.pg index 205f7b7f56..474fbcc3c4 100644 --- a/conf/snippets/blankProblem.pg +++ b/conf/snippets/blankProblem.pg @@ -11,7 +11,6 @@ loadMacros("PG.pl", ## Do NOT show partial correct answers $showPartialCorrectAnswers = 0; -TEXT(beginproblem()); BEGIN_TEXT diff --git a/conf/snippets/blankProblem2.pg b/conf/snippets/blankProblem2.pg index 04958fd784..2194340b65 100644 --- a/conf/snippets/blankProblem2.pg +++ b/conf/snippets/blankProblem2.pg @@ -23,9 +23,6 @@ loadMacros( "PGcourse.pl", # Customization file for the course ); -# Print problem number and point value (weight) for the problem -TEXT(beginproblem()); - # Show which answers are correct and which ones are incorrect $showPartialCorrectAnswers = 1; diff --git a/courses.dist/modelCourse/templates/set0/prob1.pg b/courses.dist/modelCourse/templates/set0/prob1.pg index 894cf83040..64639f592d 100644 --- a/courses.dist/modelCourse/templates/set0/prob1.pg +++ b/courses.dist/modelCourse/templates/set0/prob1.pg @@ -16,7 +16,6 @@ loadMacros( "PGauxiliaryFunctions.pl" ); -TEXT(beginproblem()); $showPartialCorrectAnswers = 1; $a = random(-10,-1,1); diff --git a/courses.dist/modelCourse/templates/set0/prob1a.pg b/courses.dist/modelCourse/templates/set0/prob1a.pg index a862e59377..312b40820d 100644 --- a/courses.dist/modelCourse/templates/set0/prob1a.pg +++ b/courses.dist/modelCourse/templates/set0/prob1a.pg @@ -13,7 +13,6 @@ loadMacros( "PGauxiliaryFunctions.pl" ); -TEXT(beginproblem()); $showPartialCorrectAnswers = 1; diff --git a/courses.dist/modelCourse/templates/set0/prob1b.pg b/courses.dist/modelCourse/templates/set0/prob1b.pg index d1de6b1c09..853eba5136 100644 --- a/courses.dist/modelCourse/templates/set0/prob1b.pg +++ b/courses.dist/modelCourse/templates/set0/prob1b.pg @@ -14,7 +14,6 @@ loadMacros( "PGauxiliaryFunctions.pl" ); -TEXT(beginproblem()); $showPartialCorrectAnswers = 1; diff --git a/courses.dist/modelCourse/templates/set0/prob2.pg b/courses.dist/modelCourse/templates/set0/prob2.pg index 45346fbf96..e2b5fea4a5 100644 --- a/courses.dist/modelCourse/templates/set0/prob2.pg +++ b/courses.dist/modelCourse/templates/set0/prob2.pg @@ -14,7 +14,6 @@ loadMacros( "PGauxiliaryFunctions.pl" ); -TEXT(beginproblem()); $showPartialCorrectAnswers = 1; TEXT(EV2(< '', Latex2HTML => "\begin{rawhtml}