2

我有这样的编织文件:

测试.rnw

\documentclass[letter,10pt]{article}

\usepackage{amsmath}
\usepackage{amscd}

\usepackage{ifthen}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\usepackage[top=1.0in, bottom=1.0in, left=0.75in, right=0.75in]{geometry}


\begin{document}
\title{Top areas of focus for \\ This is a test}
\author{ test }
\maketitle
\pagebreak
\tableofcontents
\pagebreak

\section{Introduction}
this is a test document

\end{document}

我正在尝试手动运行 knitr 并生成这样的 pdf 文件:

 knit2pdf("test.rnw", "test.pdf", compiler="texi2pdf")

我收到一个错误:

running command '"G:\latex\latex\miktex\bin\x64\texi2dvi.exe" --quiet --pdf "test.pdf"  -I "G:/R/R-2.15.2/share/texmf/tex/latex" -I "G:/R/R-2.15.2/share/texmf/bibtex/bst"' had status 1 

我对knitr很陌生,有人能告诉我我做错了什么吗?基本上我想编译一个 .rnw 文件并将其输出到一个 pdf 文件。

4

0 回答 0