Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ pip-log.txt

#Mr Developer
.mr.developer.cfg

10 changes: 10 additions & 0 deletions book/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# LaTeX related files
.DS_ignore
auto/
*.aux
*.idx
*.ilg
*.ind
*.log
*.out
*.toc
7 changes: 5 additions & 2 deletions book/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ PDFFLAGS = -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress \
ps2pdf $(PDFFLAGS) $<

all: book.tex
pdflatex book
xelatex book
xelatex book
makeindex book.idx
pdflatex book
xelatex book
mv book.pdf thinkpython2.pdf

hevea: book.tex header.html footer.html
Expand All @@ -28,6 +29,8 @@ hevea: book.tex header.html footer.html
latex thinkpython2
rm -rf html
mkdir html
sed -i 's#\\begin{lstlisting}#\\begin{verbatim}#g' thinkpython2.tex
sed -i 's#\\end{lstlisting}#\\end{verbatim}#g' thinkpython2.tex
hevea -fix -O -e latexonly htmlonly thinkpython2
# the following greps are a kludge to prevent imagen from seeing
# the definitions in latexonly, and to avoid headers on the images
Expand Down
Loading