GithubHelp home page GithubHelp logo

apexcalculusptx's Introduction

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.

Preparation for generating APEX Calculus from source:

Software requirements:

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

Note that Asymptote compilation is done remotely by default, so Asymptote does not need to be installed locally.

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. APEX Calculus places figures in the margins in PDF. Unfortunately, we do not currently have a mechanism for setting the vertical placement of margin figures in the PreTeXt source, so these have to be adjusted by hand. Look in the LaTeX source for occurrences of \listmarginbox, \parmarginbox and \tcbmarginbox. Each such environment ends with either {0cm} or {-1cm}.

These values can be adjusted to ensure that items in the margins do not overlap. It is unfortunately a rather tedious process at the moment.

At this time, EPUB generation is not fully supported.

apexcalculusptx's People

Contributors

sean-fitzpatrick avatar alex-jordan avatar dandydev01 avatar apexcalculus avatar supervladimir avatar grady avatar dcrp1234 avatar cr1nja avatar davidfarmer avatar ogdav123 avatar jansen-joel avatar doroh70 avatar torismorgan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.