## WeBWorK Problems

### Unit display in WW 2.13 and CAPA

by Justin Heckman -
Number of replies: 1
Hi, I have recently updated the my webwork server after having used an old version for 8 or 9 years. With the updated server the CAPA problems are not displaying units:

TEXT(CAPA_EV (<<'END_OF_TEXT'));
\{ CAPA_web( 'The figure on your assignment' , 'The figure below' , 'The figure' ) \} shows three (stick) people pulling down via ropes, each with \{ spf( $f1 , "%0.0f" ) \} \{$N_u \}, on the top of a mast \{ spf( $height , "%0.1f" ) \} \{$m_u \} tall. If they stand at equal distances of \{ spf( $dist , "%0.1f" ) \} \{$m_u \} from the base of the mast and at equal distances from each other, i.e. 120\{ $deg_u \} apart, what is the net force that they exert on the mast?$BR
\{ CAPA_web( '' , '\noindent \centerline{\epsfxsize = 3.4in \epsffile{${CAPA_GraphicsDirectory}Gtype06/prob08.eps}}' , '<img src =${CAPA_Graphics_URL}Gtype06/prob08.gif align=center width=350>' ) \}
END_OF_TEXT

displays as:

The figure shows three (stick) people pulling down via ropes, each with 206 , on the top of a mast 20.0 tall. If they stand at equal distances of 18.3 from the base of the mast and at equal distances from each other, i.e. 120 apart, what is the net force that they exert on the mast?

I have highlighted the code that is clearly not functioning but also not producing an error. I am hoping there is a setting in WeBWorK that will fix this issue rather than having to edit all the files. Does anyone know how to address this isssue?

In reply to Justin Heckman

### Re: Unit display in WW 2.13 and CAPA

by Michael Gage -
Most likely you need to update some configurations in localOverrides.conf

search for:
"Special" PG environment variables. (Stuff that doesn't fit in anywhere else.)

The following are commented out in the localOverrides.conf.dist file. You will need
to uncomment them and make sure they are pointing to the right place.
You will also need to make sure that your course template directory has a
an alias named Contrib that points to the Contrib directory of the webwork-open-problem-library repo.

 $pg{specialPGEnvironmentVars}{DragMath} = 0; #$pg{specialPGEnvironmentVars}{CAPA_Tools} = "$courseDirs{templates}/Contrib/CAPA/macros/CAPA_Tools/", #$pg{specialPGEnvironmentVars}{CAPA_MCTools} = "$courseDirs{templates}/Contrib/CAPA/macros/CAPA_MCTools/", #$pg{specialPGEnvironmentVars}{CAPA_GraphicsDirectory} = "$courseDirs{templates}/Contrib/CAPA/CAPA_Graphics/", #push @{$pg{directories}{macrosPath}},
# "$courseDirs{templates}/Contrib/CAPA/macros/CAPA_Tools", # "$courseDirs{templates}/Contrib/CAPA/macros/CAPA_MCTools";

# The link Contrib in the course templates directory should point to ../webwork-open-problem-library/Contrib