Skip to main content

The PreTeXt Guide

Subsection 44.7.2 Versions

Different versions of your source can be constructed by marking elements as belonging to different components. Each component has a name of your choosing, and then you elect components to include or exclude via the publication file. See Section 27.2 for the exact details and examples.
To specify components to include, the
/publication/source/version/@include
attribute should be a space-separated list of component names. For example, if <version> has
include="videos labs"
then a version would be created that includes all of the videos and all of the labs (since the author placed them into these components), but would not contain any elements whose component is genome. Note that videos, labs, and genome are names peculiar to the organization of your project, and are not PreTeXt element names (even if they are used consistently with similar element names, such as <video>).