我尝试了以下设置knitr和LaTeX的图宽度:
\documentclass{paper}
\begin{document}
<<fig.width=\textwidth>>
x = runif(1000)
plot(x)
@
\end{document}
Run Code Online (Sandbox Code Playgroud)
但是,我收到以下错误:
<to be read again>
>
l.54 <<fig.width=\textwidth>
>
Run Code Online (Sandbox Code Playgroud)
我究竟做错了什么?