Ok here is how the structure works:
main.ptx
includes each of the chapter files ch-NAME.ptx
, and each of the chapter files includes each of the section files sec-NAME.ptx
.
The section files do a bunch of component=
versioning. There are four components:
Here is how those components are used:
<title>
tag generate either the plain title (not-workbook) or the title decorated with "- Practice exercises" (workbook)<introduction component="not-workbook">
<ol>
element<conclusion component="workbook">
loads the "Do you know..." list in after the exercises in the workbook version<conclusion component="not-workbook">
loads the "Do you know..." list in before the exercises in other versionsNotSure.ptx
prints some "not-sure" instructions in not-workbook formats and the "Don't forget!" alert in the workbook versionWYD.ptx
is a <conclusion component="workbook">
that is loaded between the exercises and the "Do you know ..." listSome other important versioning happens in the exercise files ex-NAME.ptx
:
ex-intro.ptx
is an <introduction>
element that doesn't display in the workbook<em component="...">
tags
<exercise component="not-workbook">
Custom xsl in the xsl
folder is very important to how this book works. In the latex versions:
<exercises>
respect <page>
and @workspace
in the workbook version<aside>
to appear as margin notes