this is a collaboratively written openFrameworks book.
please note that this is still work-in-progress
Dependencies
- pandoc
- python 2.7+
- beauitful soup 4
- sass
- libsass
- LaTeX
- Windows: MiKTeX is recommended
Scripts for building the web and pdf versions of the book are in scripts/
directory: createWebBook.py
and createPDFBook.py
. You must run them from the scripts/
directory, so either double-click the script or run it from command line.
- When building the web book, the website is stored in the
output/webBook
directory. Opening upoutput/webBook/toc.html
will open up the table of contents. - When building the pdf book, the pdf is created at
output/ofBook.pdf
.output/ofBook.tex
is also created, for debugging purposes.
- install pip at the terminal
sudo easy_install pip
- install beauitful soup 4 (bs4)
pip install beautifulsoup4
- install pandoc
- install basictex & MacTeX-Additions
- install libsass
sudo pip install libsass
- Download and install Python 2.7+
- Download and install beauitful soup 4 (bs4)
- Method 1:
- Get the python package manager, pip. This involves downloading
get-pip.py
and running it from command line. - Run
pip install beautifulsoup4
from the command line to install BeautifulSoup
- Get the python package manager, pip. This involves downloading
- Alternate installation methods for bs4
- Download and install pandoc using the latest windows installer (.msi) from here
- Download and install MiKTeX using the windows installer from here
- When installing, check the box for "Install Packages on the Fly." The pandoc -> PDF pipeline uses latex packages that don't all come standard with MiKTeX, so this will allow you to grab any missing packages when building the book for the first time.
- Download and install libsass
- Using pip:
pip install libsass
- install packages:
sudo apt-get install python-pip python2.7-dev git pandoc ruby-sass texlive
- install beauitful soup 4 and libsass:
pip install beauitfulsoup4 libsass
#Mailing List
openFrameworks Book discussion.
Older Book discussions can be checked at Ofbook Archives