PreTeXt

Some short directions to get started very quickly. Complete documentation is at the documentation page and specifically the early part of the Author's Guide is meant for beginners. See link at the bottom of this page for videos.

1. Prerequisite: if you do not already have xsltproc then install it. See the Tools page for more detail, including how you can easily check if you have it.

2. You will want to do the following at a command-line (i.e. terminal, console). Or use a terminal provided by CoCalc which has everything you need: xsltproc, git, LaTeX, and an XML-aware editor (CodeMirror). There is zero setup required after you (easily) create a free account.

3. Clone the GitHub repository, as described on the main page of this site.

4. Set mathbook/examples/minimal as your working directory.

5. Issue the command xsltproc ../../xsl/pretext-html.xsl minimal.xml

7. In mathbook/examples/minimal again, xsltproc -o minimal.tex ../../xsl/pretext-latex.xsl minimal.xml

8. Process minimal.tex with pdflatex, or optionally process with xelatex.

To experiment further:

1. Copy the examples/minimal directory into some other directory with a new name. Start adding in new material of your own near the beginning and customizing what is already there.

2. Read the first two chapters (or more!) of the Author's Guide, linked off the Documentation page. Then skim Chapter 3 and come back to Chapter 6 as needed.

3. Repeat some of the above experiments with examples/sample-article/sample-article.xml, which will build derivatives.html and derivatives.tex.

4. Experiment with some of the other examples in the subdirectories of the examples directory.

5. Return to the Gallery on this site and peruse projects that make their source XML publicly available.

6. Participate in the Google Group(s) (listed on the main page). pretext-support is the best place to start.

# Video Quick Starts

Much of the above is covered, for Linux/SageMathCloud, Mac and Windows, in the Getting Started Videos.

&nbsp;