An open textbook for Discrete Mathematics, as taught at the University of Norther Colorado
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
auto
cover
html
images
latex finished validating Jan 25, 2018
mbx
xsl
.gitignore
LICENSE
README.md
_config.yml
errata.md
errata.pdf
jing-errors.txt
wintab32dll.txt

README.md

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.

Compilation Instructions

This text is written in PreTeXt (formally called 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.

MBX Compilation

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

git clone https://github.com/oscarlevin/discrete-book.git

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

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.

Note that the book is released under the CC-BY-SA license, so if you would like to make your own version, you are completely free to do so (as long as you us a compatible license and acknowledge the original source material as such). Of course, I would love to hear about how you used the book.

Fall 2015 corrected edition

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.

Future editions

I am currently working on a 3rd edition, which will include a full instructor version with complete solutions and other resources. To protect sensitive solutions, development of this edition will take place in a private repository. If you are interested in contributing to the effort, let me know and I will get you access.