I'm trying to use pdflatex with Sweave. This convert a rnw file in tex file. After that you just have to use "pdflatex" and you have your pdf file.
Every time I'm compiling I've got the same error message "Missing \begin{document}" but I've write this in my file !
Here's the begining of it :
Code: Select all
\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{color, pdfcolmk}
\usepackage{C:/PROGRA~1/R/R-27~1.1/share/texmf/Sweave}
\begin{document}
\DefineVerbatimEnvironment{Sinput}{Verbatim}{formatcom = {\color[rgb]{0, 0, 0.56}}}
\DefineVerbatimEnvironment{Soutput}{Verbatim}{formatcom = {\color[rgb]{0.56, 0, 0}}}
\setkeys{Gin}{width=0.8\textwidth}
\title{Dynamique de population de l'espèce Dauphin commun}
\author{CRMM}
\maketitle
\section{Fonction de mortalite }
\underline{ Présentation des données : }
Les échouages se répartissent de la façon suivante :