我想在我的Sweave报告中包含数字。我有一个文件a.Rnw:
\documentclass[10pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\begin{document}
<<echo=FALSE, fig=TRUE>>=
plot(c(1,3,5,2,4,2,4,2,42,3,2,3))
@
\end{document}
我将tex生成为:
$ R CMD Sweave a.Rnw
Output file: a.tex
但是,没有生成数字。
$ pdflatex a.tex
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013)
restricted \write18 enabled.
...
! LaTeX Error: File `a-001' not found.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.11 \includegraphics{a-001}
?
没有这样的文件
$ ls a-001*
ls: a-001*: No such file or directory
生成的tex是
\documentclass[10pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{Sweave}
\begin{document}
\includegraphics{a-001}
\end{document}
那么我该如何生成数字?