@@ -82,8 +82,11 @@ def repl(m):
82
82
83
83
print (' ' .join (['pandoc' , 'ebook.md' , '-V' , 'documentclass=report' , '-t' , 'latex' , '-s' ,
84
84
'--toc' , '--listings' , '-H' , 'ebook/listings-setup.tex' , '-o' , '\" ebook/Vulkan Tutorial ' + name_path + '.pdf\" ' , '--pdf-engine=xelatex' , '-V CJKmainfont="Microsoft YaHei"' ]))
85
- subprocess .run (['pandoc' , 'ebook.md' , '-V' , 'documentclass=report' , '-t' , 'latex' , '-s' ,
86
- '--toc' , '--listings' , '-H' , 'ebook/listings-setup.tex' , '-o' , 'ebook/Vulkan Tutorial ' + name_path + '.pdf' , '--pdf-engine=xelatex' , '-V CJKmainfont="Microsoft YaHei"' ])
85
+ #subprocess.run(['pandoc', 'ebook.md', '-V', 'documentclass=report', '-t', 'latex', '-s',
86
+ # '--toc', '--listings', '-H', 'ebook/listings-setup.tex', '-o', 'ebook/Vulkan Tutorial ' + name_path + '.pdf', '--pdf-engine=xelatex', '-V CJKmainfont="Microsoft YaHei"'])
87
+ os .system (' ' .join (['pandoc' , 'ebook.md' , '-V' , 'documentclass=report' , '-t' , 'latex' , '-s' ,
88
+ '--toc' , '--listings' , '-H' , 'ebook/listings-setup.tex' , '-o' , '\" ebook/Vulkan Tutorial ' + name_path + '.pdf\" ' , '--pdf-engine=xelatex' , '-V CJKmainfont="Microsoft YaHei"' ]))
89
+
87
90
88
91
print ('building epub...' )
89
92
print (' ' .join (['pandoc' , 'ebook.md' , '--toc' , '-o' , '\" ebook/Vulkan Tutorial ' + name_path + '.epub\" ' , '--epub-cover-image=ebook/cover.png' , '-V CJKmainfont="Microsoft YaHei"' ]))
0 commit comments