-
Notifications
You must be signed in to change notification settings - Fork 200
preparing to run . create_ofBook.sh
#So you want to know your real page count?#
To build the PDF you must run ./create_ofBook.sh pdf
. This script will take a few other arguments besides pdf
:
- tex - generates a LaTeX file.
- html - generates the book as html.
- debug - lists detected files.
This script is not standalone, and requires the installation of a few packages. Unfortunately, those packages are currently too new to be delivered in the usual package managers like aptitude, apt-get, macports, or cygwin. [JTN: I hope I'm mistaken]
##Preparing on 64-bit ubuntu 13.10:##
Starting with a fresh installation of ubuntu, apt-get needs to be initialized.
sudo apt-get update
Now run apt-get to install what you need. **[JTN: is texlive-full necessary?]
sudo apt-get install pandoc texlive-full git gdebi
Generate an ssh-key for github repository access.
ssh-keygen -t rsa -C "<email-i-am-using-with-github>"
Upload ~/.ssh/id_rsa.pub to your github account's keys.
Now clone the ofBook repo.
cd ~/Desktop ; git clone git@github.com:openframeworks/ofBook
Manually download the following packages to ~/Downloads
:
- http://packages.ubuntu.com/trusty/pandoc-data
- http://packages.ubuntu.com/trusty/libicu52
- http://packages.ubuntu.com/trusty/pandoc
The order matters here:
First install pandoc-data.
sudo gdebi ~/Downloads/pandoc-data_1.12.2.1-1build2_all.deb
Then install libicu52.
sudo gdebi ~/Downloads/libicu52_52.1-3_amd64.deb
Finally, install pandoc.
sudo gdebi ~/Downloads/pandoc_1.12.2.1-1build2_amd64.deb
Finally, run ./create_ofBook.sh pdf
You should see a fresh copy of ofBook.pdf sitting in ~/Desktop/ofBook
.
##Preparing on OS X 10.9:##
[JTN: anyone got time to attempt this?]
##Preparing on Windows 7:##
[JTN: anyone got time to attempt this?]