Fixed obsolete import, hard code of filename

This commit is contained in:
Roger Labbe 2016-01-03 10:43:45 -08:00
parent 122fe27680
commit 462ac1bb5c

View File

@ -1,4 +1,4 @@
import IPython.nbconvert.exporters.pdf as pdf
import nbconvert.exporters.pdf as pdf
import sys
if len(sys.argv) == 2:
@ -12,7 +12,7 @@ f.close()
newdata = filedata.replace('\chapter{Preface}', '\chapter*{Preface}')
f = open('book.tex', 'w', encoding="iso-8859-1")
f = open(name, 'w', encoding="iso-8859-1")
f.write(newdata)
f.close()