We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 666a2f2 commit f67d49fCopy full SHA for f67d49f
1 file changed
book/Makefile
@@ -40,8 +40,18 @@ hevea: book.tex header.html footer.html
40
41
DEST = /home/downey/public_html/greent/thinkpython2
42
43
-epub:
44
- cd html; ebook-convert index.html thinkpython2.epub
+epub: book.tex
+ #replace the pdfs with eps
45
+ sed s/.pdf/.eps/g book.tex >thinkpython2.tex
46
+ latex thinkpython2
47
+ rm -rf epub
48
+ mkdir epub
49
+ hevea -fix -O -e latexonly htmlonly thinkpython2
50
+ grep -v latexonly thinkpython2.image.tex > a; mv a thinkpython2.image.tex
51
+ sed s/\\\\usepackage{fancyhdr}// < thinkpython2.image.tex > a; mv a thinkpython2.image.tex
52
+ imagen -png thinkpython2
53
+ mv thinkpython2.html thinkpython2*.png epub
54
+ cd epub; ebook-convert thinkpython2.html thinkpython2.epub
55
56
distrib:
57
rm -rf dist
0 commit comments