Skip to content

Instantly share code, notes, and snippets.

@amitu
Last active August 29, 2015 14:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amitu/669cecae1edb5587659a to your computer and use it in GitHub Desktop.
Save amitu/669cecae1edb5587659a to your computer and use it in GitHub Desktop.
book stuff

There is plenty we can do with strings, we have already seen .upper() in previous chapter.

>>> message = u"hello world"
>>> message.upper()
u'HELLO WORLD'
LATEX_OPTIONS=--latex-engine=xelatex --highlight-style pygments
BOOK_OPTIONS=--smart --chapters --toc
SAMPLE_OPTIONS=--smart --chapters
CONTENT=TITLE.txt *-*/*.md
SAMPLE=TITLE.txt 02-*/*.md
all:
pandoc ${BOOK_OPTIONS} ${LATEX_OPTIONS} ${CONTENT} -o Python4Devs.pdf
sample:
pandoc ${SAMPLE_OPTIONS} ${LATEX_OPTIONS} ${SAMPLE} -o Python4Devs-Ch1.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment