All articles copy from ofBook
所有文章全都是从ofBook拷贝过来的。 主要是想把这些文章翻译成中文,方便让国内朋友查看。
原教程是大家合作撰写的openFrameworks教程。
原教程还在继续撰写中
需要安装
编译成网页版和PDF版的脚本文件是在scirpts/目录下的
createWebBook.py 和 createPDFBook.py. 编译时必须在scripts/下运行, 双击运行或者在终端下运行脚本文件.
- 编译完网页版以后所有文件会在
output/webBook目录下生成.output/webBook/index.html文件是网页版的主文件,用浏览器访问就好. - 编译完PDF版以后,PDF文件会在
output/ofBook.pdf. 为了调试output/ofBook.tex也会一起创建.
- 在终端安装pip
sudo easy_install pip - 安装 beauitful soup 4 (bs4)
pip install beautifulsoup4 - 安装 pandoc
- 安装 basictex & MacTeX-Additions
- 安装 libsass
sudo pip install libsass
- 下载并安装 Python 2.7+
- 使用python包管理工具pip获取必须的python库 (pip).
- Python 2.7.9 或更高版本 (python2版本系列), python 3.4 或者更高版本已经默认包含了pip,所以你应该已经有了pip. 它的位置在
C:/PythonXX/Scripts. 如果想在在终端(cmd)运行的话你需要在系统环境变量中(path)添加Scripts目录的路径。(请参考这里 guide). - 下载并安装 beauitful soup 4 (bs4). 在终端(cmd)运行
pip install beautifulsoup4安装 BeautifulSoup. - 下载并安装 libsass. 在终端(cmd)运行
pip install libsass安装 libsass
- 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.
- 安装包:
sudo apt-get install python-pip python2.7-dev git pandoc ruby-sass texlive - 安装 beauitful soup 4 and libsass:
pip install beauitfulsoup4 libsass
Since git is at the heart of the management of this endeavour, please check the git best practices. If you do not agree with all of them, please at least stick to the "Do commit early and often" paradigm. This will make doing reviews, picking the good stuff from your contributions and polishing the rest a lot easier. Github itself also offers a lot of help on common issues. So sign up, fork the repo and send your pull requests along our way.
#Mailing List
你可以在这里找到关于老版本ofBook的讨论 ofBook Archives