Skip to main content

Getting Started with PreTeXt

Section Project 2: Build a Worksheet Lesson

This project moves from a mostly informational document to a lesson structure meant for student work. You will use
Create a new project called Product Rule Worksheet. Keep this finished model open: Product Rule Lesson Worksheet.

Subsection Start with the worksheet shell

Subsection Build the first page

Checkpoint 10.

The first page combines a few reusable teaching blocks. Use the cheatsheet templates instead of trying to write the syntax from memory.
(b)
Copy the two short paragraphs from the target worksheet into the two <p> tags you just placed.
(c)
Give the definition xml:id="def-product-rule", then paste the product-rule statement into the <statement>. For the mathematics, right-click the rendered target and use Copy to Clipboard β†’ TeX Commands when needed.
(d)
Give the example xml:id="ex-applying-product-rule" and the title β€œApplying the product rule”. Add a solution that links back to the definition with <xref>.
(e)
Build the practice exercise with a title, an introduction, and two tasks. Add workspace="2.5in" so the worksheet leaves room for student work when printed.
Solution. Reminder
The <workspace> example in the cheatsheet shows the exact attribute placement.

Subsection Polish and personalize

Once your worksheet matches the target, make one small change of your own so the project becomes yours: change the topic to the quotient rule, revise the practice problems, or add a note to students in an <aside>.
That last step matters. The goal is not just to copy a model once; it is to leave with a reusable pattern you can adapt for a real lesson.

Subsection Troubleshooting

The preview shows a red error box
Look for a missing closing tag first. Most worksheet mistakes come from opening a <page>, <example>, or <task> and forgetting to close it.
The layout looks strange
Compare your source to the linked cheatsheet template and then to the target worksheet. Fix one environment at a time rather than repasting everything.
You want to experiment without losing progress
Duplicate the project in PreTeXt.Plus and try the revision in the copy.