问题描述
我的来源“ bookTest.Rnw”:
\documentclass[{tufte-book}
\begin{document}
<<>>=
1+1
@
$x + 1$
\end{document}
我的引擎“ knitrX.engine”:
#!/bin/bash
export PATH=$PATH:/usr/texbin:/usr/local/bin
Rscript -e "library(knitr); knit('$1')"
xelatex "${1%.*}"
控制台说:
processing file: bookTest.Rnw
|
| | 0%
|
|....................... | 33%
ordinary text without R code
|
|............................................... | 67%
label: unnamed-chunk-1
|
|......................................................................| 100%
ordinary text without R code
output file: bookTest.tex
[1] "bookTest.tex"
This is XeTeX,Version 3.14159265-2.6-0.999992 (TeX Live 2020) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
(./bookTest.tex
LaTeX2e <2020-10-01> patch level 1
L3 programming layer <2020-10-05> xparse <2020-03-03>
! Argument of \@fileswith@pti@ns has an extra }.
<inserted text>
\par
l.1 ...fte-book}\usepackage[]{graphicx}\usepackage
[]{color}
?
这是我能创建的最短的MWE,希望“ extra}”问题是由于引擎代码错误引起的。
我正在MacOS 10.15.7上使用TexShop版本4.44。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)