字体问题大概是这样,需要改 latex.R
里
r = c(
".*! Font [^=]+=([^ ]+).+ not loadable.*",
'.*! The font "([^"]+)" cannot be found.*',
".*! LaTeX Error: File `([^']+)' not found.*",
'.*the language definition file ([^ ]+) .*',
'.* \\(file ([^)]+)\\): cannot open .*',
".*! CTeX fontset `([^']+)' is unavailable.*",
".*: ([^:]+): command not found.*"
)
去适配这样的错误信息
!pdfTeX error: pdflatex (file tcrm1095): Font tcrm1095 at 600 not found
我猜测是后面那个 at 600
搞出得问题
包依赖的关键错误信息是这个
Package widetext error: Install the flushend package which is a part of sttools
bundle. Available from CTAN.
也需要修改正则表达适配,不过我的正则表达水平属于小学生入门,怕又引入新问题就不pr了…