你好,我想用这个模板做我的毕业论文,但是我在使用这个包里的模版的时候出现了问题,中文论文模板如zju_zh, pku_zh, ucas_zh都无法完成编译
以pku_zh为例,build时会报错:
output file: pku_zh.knit.md
Output created: _book/pku_zh.pdf
Error in tools::file_path_as_absolute(output_file) :
file '_book/pku_zh.pdf' does not exist
Calls: <Anonymous> ... render_book -> render_cur_session -> <Anonymous> -> <Anonymous>
Please delete pku_zh.Rmd after you finish debugging the error.
ִֹͣ��
Exited with status 1.
这是我的session info
R version 3.5.2 (2018-12-20)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200), RStudio 1.1.463
Locale:
LC_COLLATE=Chinese (Simplified)_China.936
LC_CTYPE=Chinese (Simplified)_China.936
LC_MONETARY=Chinese (Simplified)_China.936
LC_NUMERIC=C
LC_TIME=Chinese (Simplified)_China.936
Package version:
base64enc_0.1.3 bookdown_0.9 compiler_3.5.2 digest_0.6.18
evaluate_0.13 glue_1.3.0 graphics_3.5.2 grDevices_3.5.2
highr_0.7 htmltools_0.3.6 jsonlite_1.6 knitr_1.21
magrittr_1.5 markdown_0.9 methods_3.5.2 mime_0.6
Rcpp_1.0.0 rmarkdown_1.11 stats_3.5.2 stringi_1.3.1
stringr_1.4.0 tinytex_0.10 tools_3.5.2 utils_3.5.2
xfun_0.5 yaml_2.2.0
但是似乎不是knitr的问题,build book之后会出现_book/pku_zh.tex
文件,但是当我用Rstudio Compile PDF时又会提示
line 117: i cant write on file 'tex/copy.aux'
而pku_zh.tex的第117行是\include{tex/copy}
似乎剩下的唯一办法就是查log,但是我的latex使用经验不足,不能在里面找出有效信息...所以还是求助吧
非常感谢!!