Difference between revisions of "CAPA Physics Problems"

From WeBWorK_wiki
Jump to navigation Jump to search
Line 17: Line 17:
   
 
you will need to adjust several lines in <code>global.conf</code>
 
you will need to adjust several lines in <code>global.conf</code>
so that the macros associated with the CAPA library can be found.
+
so that the macros associated with the CAPA library can be found.
 
The original snippet reads:
 
The original snippet reads:
   
Line 29: Line 29:
 
$pg{specialPGEnvironmentVars}{CAPA_Graphics_URL} = "$courseURLs{html}/CAPA_Graphics/",
 
$pg{specialPGEnvironmentVars}{CAPA_Graphics_URL} = "$courseURLs{html}/CAPA_Graphics/",
   
If you only need to use these physics problems in one course (say physics_course) you can leave these lines as they are and create links in the physics_course/templates/macros directory
+
If you only need to use these physics problems in one course (say physics_course) you can leave these lines as they are and create links in the <code>.../physics_course/templates/macros</code> directory
   
 
 
   
 
ln -s ...webwork/libraries/rochester_physics_problib/macros/CAPA_Tools CAPA_Tools
 
ln -s ...webwork/libraries/rochester_physics_problib/macros/CAPA_Tools CAPA_Tools
ln -s ...webwork/libraries/rochester_physics_problib/macros/CAPA_MCTools CAPA_MCTools
+
ln -s ...webwork/libraries/rochester_physics_problib/macros/CAPA_MCTools CAPA_MCTools
   
and in the physics_course/html directory
+
and in the <code>.../physics_course/html</code> directory
   
 
 

Revision as of 09:18, 14 November 2008

Rochester has a collection of problems used in physics. These problems were originally CAPA problems and were converted some years ago, so the code isn't pretty, but for the most part they work.

The problems have been collected into a physics "course" so that you can browse through them and see what is already available.

To download your own copy pf the physics collection transfer to the directory where you would like the physics problem library to reside

(e.g.   /opt/webwork/libraries/rochester_physics_problib )

and type

cvs -d :pserver:anoncvs@cvs.webwork.rochester.edu:/webwork/cvs/rochester checkout  rochester_physics_problib

I'll assume this creates a directory in

.../webwork/libraries/rochester_physics_problib

you will need to adjust several lines in global.conf so that the macros associated with the CAPA library can be found. The original snippet reads:


# Locations of CAPA resources. (Only necessary if you need to use converted CAPA
# problems.)
$pg{specialPGEnvironmentVars}{CAPA_Tools}             = "$courseDirs{macros}/CAPA_Tools/", 
$pg{specialPGEnvironmentVars}{CAPA_MCTools}           = "$courseDirs{macros}/CAPA_MCTools/",  
$pg{specialPGEnvironmentVars}{CAPA_GraphicsDirectory} = "$courseDirs{html}/CAPA_Graphics/", 
$pg{specialPGEnvironmentVars}{CAPA_Graphics_URL}      = "$courseURLs{html}/CAPA_Graphics/",   

If you only need to use these physics problems in one course (say physics_course) you can leave these lines as they are and create links in the .../physics_course/templates/macros directory


ln -s  ...webwork/libraries/rochester_physics_problib/macros/CAPA_Tools CAPA_Tools
ln -s  ...webwork/libraries/rochester_physics_problib/macros/CAPA_MCTools CAPA_MCTools

and in the .../physics_course/html directory


ln -s ...webwork/libraries/rochester_physics_problib/CAPA_Graphics CAPA_Graphics

If you want to make these problems usable by all courses then just change the lines in global.conf described above so that they point to the addresses where the CAPA macros and graphics can be found.

Most of the problems work, but not all, so check things out before you assign them.