Fixed obsolete import, hard code of filename
This commit is contained in:
parent
122fe27680
commit
462ac1bb5c
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user