Skip to content

In-progress conversion of APEX Calculus to PreTeXt

Notifications You must be signed in to change notification settings

sean-fitzpatrick/APEXCalculusPTX

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

APEX Calculus, PreTeXt edition

This repository contains the source code for the APEX Calculus textbook.

APEX Calculus was originally written in LaTeX; this version of the book uses https://pretextbook.org.

To build the book, use of the PreTeXt CLI is recommended.

Note that the build time is quite long, and may exceed the time allowed using GitHub codespaces. (If you're building on Windows, make sure your computer is not set to sleep after an hour!)

Preparation for generating APEX Calculus from source:

Software requirements:

  • a recent LaTeX distribution
  • Python (version 3.8 or later)
  • the PreTeXt CLI (do pip install pretextbook)

Note: ImageMagick may be needed, but can probably be avoided. Older versions of the PreTeXt CLI also require pdf2svg to build HTML, but soon this will not be required.

Configuration:

  • In publication/publication.ptx, change the baseurl to the URL where your copy will be hosted, and set the webwork server to your local server.
  • If you wish to set a custom stylesheet, place it in the style folder, and add <xsl>style/custom-style.xsl</xsl> tags to the appropriate targets in the project.ptx file, where you should of course replace custom-style.xsl with whatever you named your style file.
  • You can also use <xsl>...</xsl> tags in project.ptx to point to a newer version of one of the PreTeXt XSL files than the one that ships with the CLI. (This is not officially supported, so use with caution.)

To build HTML, run pretext build html

To build a version without videos, run pretext build html-novideo

To build PDF, run pretext build latex.

The following variations are also available:

  • pretext build latex-novideo: omit QR code links to videos
  • pretext build latex-print: black and white, for print on demand
  • pretext build latex-print-novideo: black and white, with no video links
  • pretext build latex-color-print: in color, but two-sided layout for printing
  • pretext build latex-color-print-novideo: as above, but without QR codes for videos

Do not build PDF directly. Most of the PDF design is now automated, but you may need to adjust the placement of some figures, add page breaks, etc.

At this time, EPUB generation is not fully supported.

About

In-progress conversion of APEX Calculus to PreTeXt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • XSLT 100.0%