Write Once, Read Anywhere


In the examples directory of the PreTeXt distribution there are several examples. We include output for five of them here. To see examples of actual books (and other projects), see the Gallery at the main page of this site.

Sample Book

The sample-book is an example of how a book-length document can be authored and organized.

Sample Article

The sample-article is both a developer's sandbox and the kitchen sink of the documentation. It is a sandbox because we frequently test new features here and sometimes also debug problems. So sometimes it contains some preliminary, or immature, examples. It is the kitchen sink because we try to add one of everything. This is both for testing, and so that you can look at output and then examine the source to see how to do something you like or need. But it is cutting-edge and contains new features before they make it into the Author's Guide. As a testing platform, we bring the least powerful version of LaTeX to bear for creating the PDF, so this is always built using the pdflatex engine (in contrast to the font example below).

WeBWorK Sample Chapter

The WeBWorK sample-chapter contains examples of various ways to incorporate WeBWorK automated homework problems into your text. This work was initiated with a grant from OpenOregon with a matching grant from University of Puget Sound.

Humanities in Action

The humanities folder contains Humanities in Action which showcases Jahrme Risner's summer project in 2016, funded by the Arts, Humanities, Social Sciences Summer Research for Undergraduates program at the University of Puget Sound.

Characters, Fonts, and Languages

Different languages and different scripts can get complicated fast. This is another sample document that is used both as a demonstration and for testing. Unicode characters generally work easily in HTML, so check the online version first to see what is possible. Since the various fonts can be quite demanding, we always create the PDF here from LaTeX by using the xelatex engine (in contrast to the sample article above).