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.
This text is written in Mathbook XML, so the primary source files can be found in the MBX directory. These can be compiled into html or LaTeX files (as well as some other formats). If you do not want to bother with this step or just want to grab some LaTeX to use in a worksheet or the like, the generated LaTeX is already provided in the latex folder.
To compile from source, you will need a copy of the mathbook xsl stylesheets, as well as xsltproc installed (should be easy on linux or MacOS, but also possible on Windows---see some windows installation notes).
Open up a terminal and in your preferred directory, clone the mathbook and discrete-book repositories:
git clone https://github.com/rbeezer/mathbook
git clone https://github.com/oscarlevin/discrete-book
To generate LaTeX, change to the latex directory of the discrete-book folder:
cd discrete-book/latex
and run
xsltproc --xinclude ../xsl/dmoi-latex.xsl ../mbx/dmoi.mbx
This will use the custom thin xsl stylesheet I have created with some customizations. It calls the mathbook-latex.xsl file from mathbook using relative paths, so it is important that you leave the mathbook and discrete-book directories parallel.
To generate html, change to the html folder. We first need to generate the svg images from the mbx code. This is done using the mbx script from mathbook:
../../mathbook/script/mbx -v -c latex-image -f svg -d images ../mbx/dmoi.mbx
You will need to have python and some other tools installed. See the mathbook documentation. Then to produce the html, run:
xsltproc --xinclude ../xsl/dmoi-html.xsl ../mbx/dmoi.mbx
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.
If you are looking for the previous edition of this text, switch branches to the Fall2015-corrected branch, which contains source files for the corrected version of the Fall 2015 edition. Use this in case you have that edition or want to continue using that edition.
While teaching Discrete Mathematics this fall semester, I will try to keep track of typos and other errors, as well as add exercises as I think of them.