Building a PreTeXt project means running the toolchain that converts your source XML into polished HTML (or PDF, or ePub). Youβll do this dozens of times as you write, so itβs worth learning two ways to trigger it: a button and a command.
A terminal panel opens and shows the buildβs progress. The first build takes a little longer than subsequent ones because it downloads some supporting files. Typical time: 30 to 60 seconds.
When you see a success message at the end of the terminal output, expand the output folder in the file explorer. You should see a web subfolder containing an index.html.
A new tab opens with your document rendered as a real web page: table of contents on the left, your lesson in the middle, equations typeset with MathJax.
The preview does not update on its own. Every time you edit the source, you need to build again and then refresh the preview tab. Youβll internalize this rhythm in the first ten minutes: edit, build, refresh, look.
Almost always a missing or mismatched tag in the source. Read the error message, which will usually include a line number. Double-check that every <tag> you added has a matching </tag>. If you canβt find it, copy the starter block from Part 5 again carefully. Donβt panic at red text. These errors are routine and fixable.
Build again first, then refresh the preview tab with F5. If that doesnβt help, close the preview tab and reopen it with β· PreTeXt β View Full Document β web.