File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,18 @@ hevea: book.tex header.html footer.html
4040
4141DEST = /home/downey/public_html/greent/thinkpython2
4242
43- epub :
44- cd html; ebook-convert index.html thinkpython2.epub
43+ epub : book.tex
44+ # 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
4555
4656distrib :
4757 rm -rf dist
You can’t perform that action at this time.
0 commit comments