Section N.1 Setup
We will assume you have the following:
- An existing PreTeXt project, in a folder called
- A Python installation at version 3.8 or newer.
- The PreTeXt-CLI, installed using the instructions in Section 5.2.
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
PROJECTfolder. In a terminal (or in Python), enter the
PROJECT-CLIdirectory, and run the
pretext new bookcommand. This will create the directory structure that the PreTeXt-CLI expects.
You now should see the following:
sourcefolder, there will be a file called
main.ptx, and within the
publicationfolder, there will be a publisher file, called