Integrating WeBWorK into Textbooks: Sample Exercises

Section2.3Stress Tests

Solution.

Hint.
Solution.

Checkpoint2.3.2.Checking Proper Indentation In Lists.

One long exercise, where ordered sublists test the specification of their labels.
1. Simple item
2. Simple item
3. Simple item
1. Simple item
2. Simple item
3. Simple item
Text before.
1. Simple item
2. Simple item
3. Simple item
And after.
1. Structured item
2. Structured item
3. Structured item
Text before.
1. Structured item
2. Structured item
3. Structured item
And after.
1. Structured item
2.
1. Sublist Item
2. Sublist Item
3. Sublist Item
3. Structured item
Text before.
1. Structured item
2. Text before.
1. Sublist Item
2. Sublist Item
3. Sublist Item
And after.
3. Structured item
And after.
1. Structured item
Second paragraph
2.
1. Sublist Item
Second paragraph
2. Sublist Item
Second paragraph
3. Sublist Item
Second paragraph
3. Structured item
Second paragraph
Text before.
1. Structured item
Second paragraph
2. Text before.
1. Sublist Item
Second paragraph
2. Sublist Item
Second paragraph
3. Sublist Item
Second paragraph
And after.
3. Structured item
Second paragraph
And after.
1.
\begin{equation*} 1+1=2 \end{equation*}
Structured item
Second
\begin{equation*} 1+1=2 \end{equation*}
paragraph
2.
1. Sublist
\begin{equation*} 1+1=2 \end{equation*}
Item
Second paragraph
\begin{equation*} 1+1=2 \end{equation*}
2.
\begin{equation*} 1+1=2 \end{equation*}
Sublist Item
Second
\begin{equation*} 1+1=2 \end{equation*}
paragraph
3. Sublist Item
\begin{equation*} 1+1=2 \end{equation*}
\begin{equation*} 1+1=2 \end{equation*}
Second paragraph
3. Structured
\begin{equation*} 1+1=2 \end{equation*}
item
Second paragraph
\begin{equation*} 1+1=2 \end{equation*}
Text before.
1. Structured
\begin{equation*} 1+1=2 \end{equation*}
item
Second paragraph
\begin{equation*} 1+1=2 \end{equation*}
2.
\begin{equation*} 1+1=2 \end{equation*}
Text before.
1. Sublist
\begin{equation*} 1+1=2 \end{equation*}
Item
Second paragraph
\begin{equation*} 1+1=2 \end{equation*}
2.
\begin{equation*} 1+1=2 \end{equation*}
Sublist Item
Second
\begin{equation*} 1+1=2 \end{equation*}
paragraph
3. Sublist Item
\begin{equation*} 1+1=2 \end{equation*}
\begin{equation*} 1+1=2 \end{equation*}
Second paragraph
And
\begin{equation*} 1+1=2 \end{equation*}
after.
3. Structured item
\begin{equation*} 1+1=2 \end{equation*}
\begin{equation*} 1+1=2 \end{equation*}
Second paragraph
And after.
Text before.
1. Structured
\begin{equation*} \begin{aligned} 1+1\amp=2\\ 2\amp=2 \end{aligned} \end{equation*}
item
Second paragraph
\begin{equation*} \begin{aligned} 1+1\amp=2\\ 2\amp=2 \end{aligned} \end{equation*}
2.
\begin{equation*} \begin{aligned} 1+1\amp=2\\ 2\amp=2 \end{aligned} \end{equation*}
Text before.
1. Sublist
\begin{equation*} \begin{aligned} 1+1\amp=2\\ 2\amp=2 \end{aligned} \end{equation*}
Item
Second paragraph
\begin{equation*} \begin{aligned} 1+1\amp=2\\ 2\amp=2 \end{aligned} \end{equation*}
2.
\begin{equation*} \begin{aligned} 1+1\amp=2\\ 2\amp=2 \end{aligned} \end{equation*}
Sublist Item
Second
\begin{equation*} \begin{aligned} 1+1\amp=2\\ 2\amp=2 \end{aligned} \end{equation*}
paragraph
3. Sublist Item
\begin{equation*} \begin{aligned} 1+1\amp=2\\ 2\amp=2 \end{aligned} \end{equation*}
\begin{equation*} \begin{aligned} 1+1\amp=2\\ 2\amp=2 \end{aligned} \end{equation*}
Second paragraph
And
\begin{equation*} \begin{aligned} 1+1\amp=2\\ 2\amp=2 \end{aligned} \end{equation*}
after.
3. Structured item
\begin{equation*} \begin{aligned} 1+1\amp=2\\ 2\amp=2 \end{aligned} \end{equation*}
\begin{equation*} \begin{aligned} 1+1\amp=2\\ 2\amp=2 \end{aligned} \end{equation*}
Second paragraph
And after.

Checkpoint2.3.3.Checking Proper Indentation In Lists with Images and Tables.

1. Structured item
Structured item
1. Structured item
2. Structured item
3. Structured item
 a b c d
4.  1 two $$\lfloor\pi\rfloor$$ $$\text{I}+\text{I}$$ $${}+\text{I}+\text{I}$$ $$5$$ six $$2^3-1$$ VIII
Structured item
1. Structured item
 a b c d
Second paragraph
2. Structured item

Checkpoint2.3.4.Deep-nested lists.

Ordered list.
1. Level 1, first.
2. Level 1, second.
1. Level 2, first.
2. Level 2, second.
1. Level 3, first.
2. Level 3, second.
1. Level 4, first.
2. Level 4, second.
3. Level 4, third.
3. Level 3, third.
3. Level 2, third.
3. Level 1, third.
Unordered list.
• Level 1, first.
• Level 1, second.
• Level 2, first.
• Level 2, second.
• Level 3, first.
• Level 3, second.
• Level 4, first.
• Level 4, second.
• Level 4, third.
• Level 3, third.
• Level 2, third.
• Level 1, third.

Checkpoint2.3.5.

This exercise has no content in its statement. It should throw a PTX warning during the representations build.

Checkpoint2.3.6.

This exercise has a single quote in it. A single quote is the first option for a delimiter for perl’s q function which is used by extract-pg.xsl in table cells. So if working, it should move on to the next delimiter option.
 What’s up, Doc?