--- loncom/html/adm/help/tex/Formula_Response_Example.tex 2012/10/12 13:26:55 1.6 +++ loncom/html/adm/help/tex/Formula_Response_Example.tex 2013/07/05 18:30:40 1.7 @@ -4,11 +4,11 @@ A very simple formula response problem: \begin{itemize}\item In the \textbf{Script}, place the following: \end{itemize} -\$slope~=~\&random(-5.0,5.0,.5); - -\$yint~~=~\&random(-5.0,5.0,.5); - -\$answer~=~{}``\$slope{*}x~+~(\$yint)''; +\begin{lyxcode} +\$slope~=~\&random(-5.0,5.0,.5);\\ +\$yint~~=~\&random(-5.0,5.0,.5);\\ +\$answer~=~{}"\$slope{*}x~+~(\$yint)"; +\end{lyxcode} \begin{itemize} \item In the \textbf{Text Block}, place the following: {}``For a line with slope \$slope and y-intercept \$yint, what is y equal to?''