Editor TexShop引擎中配备Xeletex的knitr
我的资料来源,“bookTest.Rnw”: 控制台显示:Editor TexShop引擎中配备Xeletex的knitr,editor,knitr,xelatex,rnw,Editor,Knitr,Xelatex,Rnw,我的资料来源,“bookTest.Rnw”: 控制台显示: processing file: bookTest.Rnw | | | 0% |
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}
?
处理文件:bookTest.Rnw
|
| | 0%
|
|....................... | 33%
不带R码的普通文本
|
|............................................... | 67%
标签:unnamed-chunk-1
|
|......................................................................| 100%
不带R码的普通文本
输出文件:bookTest.tex
[1] “bookTest.tex”
这是XeTeX,版本3.14159265-2.6-0.999992(TeX Live 2020)(预加载格式=xelatex)
受限\已启用写18。
进入扩展模式
(./bookTest.tex)
LaTeX2e修补程序级别1
L3编程层xparse
!论点\@fileswith@pti@ns有一个额外的}。
\标准杆
l、 1…fte book}\usepackage[]{graphicx}\usepackage
[]颜色}
?
这是我能创建的最短MWE,希望“extra}”问题是由于引擎代码中的错误造成的
我正在MacOS 10.15.7上使用TexShop版本4.44
#!/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}
?