Skip to main content

The PreTeXt Guide

Section O.1 Setup

We will assume you have the following:
For usage of the CLI, see Section 5.2.
The first thing we will do is to create a new folder. Call this folder PROJECT-CLI, and put it at the same level as the PROJECT folder. In a terminal (or in Python), enter the PROJECT-CLI directory, and run the pretext new book command. This will create the directory structure that the PreTeXt-CLI expects.
You now should see the following:
Within the source folder, there will be a file called main.ptx, and within the publication folder, there will be a publisher file, called publication.ptx.