Pandoc sources
Switch branches/tags
Nothing to show
Pull request Compare This branch is 265 commits behind swaroopch:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
.gitignore
01-frontpage.pd
02-preface.pd
03-intro.pd
04-installation.pd
05-first-steps.pd
06-basics.pd
07-operators-expressions.pd
08-control-flow.pd
09-functions.pd
10-modules.pd
11-data-structures.pd
12-problem-solving.pd
13-oop.pd
14-io.pd
15-exceptions.pd
16-standard-library.pd
17-more.pd
18-what-next.pd
19-appendix-floss.pd
20-appendix-about.pd
21-revision-history.pd
22-translations.pd
23-translation-howto.pd
LICENSE
README.md
config.json
fabfile.py
requirements.txt

README.md

A Byte of Python

Installation

Ensure Python (>= 2.7) is installed.

Install Pandoc from http://johnmacfarlane.net/pandoc/installing.html

Install pdflatex from http://www.tug.org/texlive/. Note that Mac users can install MacTex.pkg from http://www.tug.org/mactex/2012/.

Install pip if not present already:

sudo sh -c "curl -k -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py && python get-pip.py && rm get-pip.py"

Install Python libraries needed:

sudo pip install -r requirements.txt

Convert the source files into HTML files:

fab html

Convert the source files into PDF:

fab pdf

Convert the source files into EPUB (ebook):

fab epub

Editing

If you're using Vim editor, then you may like the vim-pandoc plugin. There is one downside though - for long chapters, it becomes really slow, so I edit only in plain text mode (:set ft=), but when reviewing, I use the pandoc (:set ft=pandoc) mode.