! xdvipdfmx:fatal: Unable to open “hw6.pdf”. 编译时发生这种错误前可能编译很长时间都没有文档输出,最终报这种错误,是因为当时已经打开过hw6这个文件,关闭这个pdf再次编译即可。