# PreTeXt

Semantic authoring and multi\-format publishing system for scholarly and educational documents\.

ID: Q323 · Revision: 309

Type: software · License: GNU GPL version 2 or version 3, at the user's option[^license] · Status: active

Website: https://pretextbook.org/



PreTeXt is an authoring and publishing system for textbooks, course materials and scholarly documents, especially in STEM subjects\. Authors describe semantic structure in a source vocabulary that can produce multiple reading formats\. Its accessibility\-oriented tools depend on both the conversion pipeline and the quality of the material supplied by the author\.[^home][^guide][^access]

## Semantic source and styling

PreTeXt's XML vocabulary describes the organization and meaning of a publication, with a schema defining valid elements and relationships\. Output styling is selected separately rather than embedded as repeated visual adjustments\. This supports maintaining one source for readers using different delivery formats, though each output still requires an appropriate conversion path and inspection\.[^guide][^repo]

## Educational output and interaction

The system targets material such as textbooks and research articles, with examples showing print, web and electronic\-book output\. Interactive demonstrations can depend on additional services: the sample book uses Runestone JavaScript and distinguishes a specially hosted version\. Likewise, a slideshow example embeds many resources in its HTML file but leaves images alongside it\. A generated page is therefore not automatically a wholly self\-contained offline publication\.[^home][^examples]

## Accessibility responsibilities

The guide describes semantic HTML, navigation features and mathematical rendering through MathJax\. Authors still need to supply image descriptions that reflect context and intent, rather than expecting the converter to infer them\. Accessibility is consequently a supported authoring workflow, not an unconditional guarantee that any imported content or every delivered file meets a standard\.[^access]

## PDF routes and maturity

Traditional examples generate PDF through LaTeX\. The project also demonstrates a newer XSL Formatting Objects route rendered by Apache FOP, using MathJax SVG for mathematics\. Its example page explicitly calls this path experimental and incomplete\. The page's conformance claim about its generated examples should not be generalized into independent certification of all PreTeXt PDFs\.[^examples]

## Toolchain and licensing

The getting\-started guide separates the local CLI and supporting tools from browser\-based options such as PreTeXt\.Plus or a development environment\. These options have distinct operating requirements\. The core COPYING file grants GPL version 2 or version 3, at the user's choice\. The project states that using the software does not impose licensing constraints on the documents authored with it\.[^quick][^license][^repo]

## Substitution considerations

PreTeXt can substitute for direct [LaTeX](/latex) authoring when a structured textbook or course resource needs several reading formats\. This changes the source model and may retain LaTeX as a downstream typesetter\. Existing custom macros, layouts and interactive material need migration review\. No content was converted, hosted or accessibility\-tested during this research\.[^repo][^home][^latex][^examples]

## Capabilities and substitutions

### Single\-source publishing — supported

Structured source can generate HTML, PDF and other supported outputs\.[^home][^repo]

Use case: Publishing structured textbooks and course materials in multiple formats · Platforms: Local command\-line toolchain, Web\-based development environment · Region: Version, build and integration requirements apply

### Automatic complete accessibility — limited

The system supplies semantic markup and math support, but authors must provide meaningful descriptions and other content choices\.[^access]

Use case: Publishing structured textbooks and course materials in multiple formats · Platforms: Local command\-line toolchain, Web\-based development environment · Region: Version, build and integration requirements apply

### LaTeX\-free PDF pipeline — limited

The examples describe an experimental, incomplete XSL\-FO route using Apache FOP\.[^examples]

Use case: Publishing structured textbooks and course materials in multiple formats · Platforms: Local command\-line toolchain, Web\-based development environment · Region: Version, build and integration requirements apply

### LaTeX exchange — limited

Documents can be converted to LaTeX for further work; this does not establish reverse migration or a lossless round trip\.[^repo]

Use case: Publishing structured textbooks and course materials in multiple formats · Platforms: Local command\-line toolchain, Web\-based development environment · Region: Version, build and integration requirements apply

### [Substitute for LaTeX](/latex) — limited

Can replace direct LaTeX authoring for structured educational publications needing multiple outputs\. It introduces a different markup model and may still use LaTeX downstream for PDF\.[^home][^repo][^examples][^latex]

Use case: Publishing structured textbooks and course materials in multiple formats · Platforms: Local command\-line toolchain, Web\-based development environment · Region: Version, build and integration requirements apply

## References

[^home]: [PreTeXt overview](<https://pretextbook.org/>) — Scholarly authoring and output formats (vendor; retrieved 2026-10-07T13:25:35.853Z)

[^repo]: [PreTeXt principles](<https://github.com/PreTeXtBook/pretext>) — Single source, styling, LaTeX export and no content licensing constraints (vendor; retrieved 2026-10-07T13:25:35.853Z)

[^guide]: [PreTeXt guide](<https://pretextbook.org/guide.html>) — XML vocabulary and RELAX\-NG schema (vendor; retrieved 2026-10-07T13:25:35.853Z)

[^quick]: [PreTeXt getting started](<https://pretextbook.org/quick-start.html>) — Local CLI/toolchain and separate browser options (vendor; retrieved 2026-10-07T13:25:35.853Z)

[^access]: [PreTeXt accessibility](<https://pretextbook.org/doc/guide/html/topic-accessibility.html>) — HTML semantics, MathJax and author\-provided image descriptions (vendor; retrieved 2026-10-07T13:25:35.853Z)

[^examples]: [PreTeXt examples](<https://www.pretextbook.org/examples.html>) — Experimental XSL\-FO/Apache FOP route; Runestone\-dependent interaction; slideshow assets (vendor; retrieved 2026-10-07T13:25:35.853Z)

[^license]: [PreTeXt COPYING](<https://github.com/PreTeXtBook/pretext/blob/master/COPYING>) — GPL version 2 or version 3 grant (vendor; retrieved 2026-10-07T13:25:35.853Z)

[^latex]: [LaTeX project](<https://www.latex-project.org/>) — Scientific and technical document preparation (vendor; retrieved 2026-10-07T13:25:35.853Z)

Source revision: https://substitutefor.net/entities/Q323?revision=309
