@@ -82,8 +82,11 @@ def repl(m):
8282
8383 print (' ' .join (['pandoc' , 'ebook.md' , '-V' , 'documentclass=report' , '-t' , 'latex' , '-s' ,
8484 '--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+
8790
8891 print ('building epub...' )
8992 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