From becd4c1b9afd858c40e229105c8d363a75689896 Mon Sep 17 00:00:00 2001
From: Adam Palay
Date: Mon, 20 Oct 2014 11:28:53 -0400
Subject: [PATCH] update latex problem data (TNL-264)
---
.../templates/problem/latex_problem.yaml | 95 ++++++++++---------
1 file changed, 48 insertions(+), 47 deletions(-)
diff --git a/common/lib/xmodule/xmodule/templates/problem/latex_problem.yaml b/common/lib/xmodule/xmodule/templates/problem/latex_problem.yaml
index c324f9ebeb..847c9d1157 100644
--- a/common/lib/xmodule/xmodule/templates/problem/latex_problem.yaml
+++ b/common/lib/xmodule/xmodule/templates/problem/latex_problem.yaml
@@ -7,89 +7,89 @@ metadata:
% key new feature is the \edXabox{} macro, which specifies an "Answer
% Box" that queries students for a response, and specifies what the
% epxected (correct) answer is.
-
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Example "option" problem}
-
+
Where is the earth?
-
+
\edXabox{options='up','down' expect='down'}
-
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Example "symbolic" problem}
-
+
What is Einstein's equation for the energy equivalent of a mass $m$?
-
+
\edXabox{type='symbolic' size='90' expect='m*c^2' }
-
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Example "numerical" problem}
-
+
Estimate the energy savings (in J/y) if all the people
($3\times 10^8$) in the U.~S. switched from U.~S. code to low flow
shower heads.
-
+
\edXinline{Energy saved = }\edXabox{expect="0.52" type="numerical" tolerance='0.02' inline='1' } %
\edXinline{~EJ/year}
-
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Example "multiple choice" problem}
-
+
What color is a banana?
-
+
\edXabox{ type="multichoice" expect="Yellow" options="Red","Green","Yellow","Blue" }
-
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Example "string response" problem}
-
+
In what U.S. state is Detroit located?
-
+
\edXabox{ type="string" expect="Michigan" options="ci" }
-
+
An explanation of the answer can be provided by using the edXsolution
macro. Click on "Show Answer" to see the solution.
-
+
\begin{edXsolution}
Detroit is near Canada, but it is actually in the United States.
\end{edXsolution}
-
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Example "custom response" problem}
-
+
This problem demonstrates the use of a custom python script used for
checking the answer.
-
+
\begin{edXscript}
def sumtest(expect,ans):
(a1,a2) = map(float,eval(ans))
return (a1+a2)==10
\end{edXscript}
-
+
Enter a python list of two numbers which sum to 10, eg [9,1]:
-
+
\edXabox{expect="[1,9]" type="custom" cfn="sumtest"}
-
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Example image}
-
+
Include image by using the edXxml macro:
-
- \edXxml{
}
-
+
+ \edXxml{
}
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Example show/hide explanation}
-
+
Extra explanations can be tucked away behind a "showhide" toggle flag:
-
+
\edXshowhide{sh1}{More explanation}{This is a hidden explanation. It
can contain equations: $\alpha = \frac{2}{\sqrt{1+\gamma}}$ }
-
+
This is some text after the showhide example.
markdown: !!null
data: |
-
+
Example "option" problem
@@ -98,7 +98,7 @@ data: |
Where is the earth?
-
+
@@ -108,7 +108,7 @@ data: |
What is Einstein's equation for the energy equivalent of a mass [mathjaxinline]m[/mathjaxinline]?
-
+
@@ -119,8 +119,9 @@ data: |
Energy saved =
-
-
+
+
+
EJ/year
@@ -130,22 +131,22 @@ data: |
What color is a banana?
-
-
+
+
- Red
+ Red
- Green
+ Green
- Yellow
+ Yellow
- Blue
+ Blue
-
-
+
+
Example "string response" problem
@@ -154,11 +155,11 @@ data: |
In what U.S. state is Detroit located?
-
+
- An explanation of the answer can be provided by using the edXsolution macro:
+ An explanation of the answer can be provided by using the edXsolution macro. Click on "Show Answer" to see the solution.
Answer:
@@ -179,7 +180,7 @@ data: |
Enter a python list of two numbers which sum to 10, eg [9,1]:
-
+
@@ -188,7 +189,7 @@ data: |
Include image by using the edXxml macro:
-
+
Example show/hide explanation