Discrete Mathematics: An Open Introduction
An open textbook for Discrete Mathematics, as taught at the University of Northern Colorado. More information about the project is available on the book's main website.
The main
branch now has the source code for the 3rd edition. Work on the 4th edition is done on the edition
branch.
Compilation instructions
This text is written in PreTeXt, so the primary source files can be found in the source
directory. These can be compiled into HTML or PDF files (as well as some other formats) using the following directions.
Preliminaries
The easiest way to build output formats from the source is to use the PreTeXt-CLI. To get this set up, follow the instructions in the PreTeXt guide. You will need Python, LaTeX, and pdf2svg
(if you wish to compile the html version; this requires an extra step on Windows).
Open up a terminal and in your preferred directory, clone discrete-book
repositories:
git clone https://github.com/oscarlevin/discrete-book.git
(If you had previously done this, you will likely want to get the most recent versions of the repository by entering git pull
from the discrete-book folder.)
Then change to the discrete-book
folder:
cd discrete-book
Compiling
If everything has been set up properly above, you can now execute the following commands to build the book. To create a PDF, you can enter:
pretext build pdf -w
To make the HTML version:
pretext build html -w -d
The -w
and -d
flags are only needed the first time you compile, to extract the WeBWorK exercises and create SVGs for the images. Use the flags again only if you edit these elements in the source.
Contributing
Any and all suggestions to improve the text are welcome. Thanks to those who have already pointed out typos/issues they have found. If you would like to make a more substantial contribution, please contact me so we can discuss how best to proceed.
Previous editions
The previous editions have branches, and also tags. Feel free to switch to those if you want to grab the source for those editions.