| 1 | \documentclass[a4paper,12pt]{article} |
| 2 | |
| 3 | \usepackage[utf8]{inputenc} |
| 4 | \usepackage[T1]{fontenc} |
| 5 | |
| 6 | \renewcommand*\familydefault{\sfdefault} |
| 7 | |
| 8 | %\marginparwidth 0pt |
| 9 | %\oddsidemargin 0pt |
| 10 | %\evensidemargin 0pt |
| 11 | %\marginparsep 0pt |
| 12 | %\topmargin 0pt |
| 13 | %\textwidth 16cm |
| 14 | %\textheight 23cm |
| 15 | %\parindent 5mm |
| 16 | |
| 17 | %%%%%%% FROM KNITR |
| 18 | |
| 19 | \usepackage[pdftex]{graphicx} |
| 20 | \usepackage[]{color} |
| 21 | %% maxwidth is the original width if it is less than linewidth |
| 22 | %% otherwise use linewidth (to make sure the graphics do not exceed the margin) |
| 23 | \makeatletter |
| 24 | \def\maxwidth{ % |
| 25 | \ifdim\Gin@nat@width>\linewidth |
| 26 | \linewidth |
| 27 | \else |
| 28 | \Gin@nat@width |
| 29 | \fi |
| 30 | } |
| 31 | \makeatother |
| 32 | |
| 33 | \definecolor{fgcolor}{rgb}{0.345, 0.345, 0.345} |
| 34 | \newcommand{\hlnum}[1]{\textcolor[rgb]{0.686,0.059,0.569}{#1}}% |
| 35 | \newcommand{\hlstr}[1]{\textcolor[rgb]{0.192,0.494,0.8}{#1}}% |
| 36 | \newcommand{\hlcom}[1]{\textcolor[rgb]{0.678,0.584,0.686}{\textit{#1}}}% |
| 37 | \newcommand{\hlopt}[1]{\textcolor[rgb]{0,0,0}{#1}}% |
| 38 | \newcommand{\hlstd}[1]{\textcolor[rgb]{0.345,0.345,0.345}{#1}}% |
| 39 | \newcommand{\hlkwa}[1]{\textcolor[rgb]{0.161,0.373,0.58}{\textbf{#1}}}% |
| 40 | \newcommand{\hlkwb}[1]{\textcolor[rgb]{0.69,0.353,0.396}{#1}}% |
| 41 | \newcommand{\hlkwc}[1]{\textcolor[rgb]{0.333,0.667,0.333}{#1}}% |
| 42 | \newcommand{\hlkwd}[1]{\textcolor[rgb]{0.737,0.353,0.396}{\textbf{#1}}}% |
| 43 | |
| 44 | \usepackage{framed} |
| 45 | \makeatletter |
| 46 | \newenvironment{kframe}{% |
| 47 | \def\at@end@of@kframe{}% |
| 48 | \ifinner\ifhmode% |
| 49 | \def\at@end@of@kframe{\end{minipage}}% |
| 50 | \begin{minipage}{\columnwidth}% |
| 51 | \fi\fi% |
| 52 | \def\FrameCommand##1{\hskip\@totalleftmargin \hskip-\fboxsep |
| 53 | \colorbox{shadecolor}{##1}\hskip-\fboxsep |
| 54 | % There is no \\@totalrightmargin, so: |
| 55 | \hskip-\linewidth \hskip-\@totalleftmargin \hskip\columnwidth}% |
| 56 | \MakeFramed {\advance\hsize-\width |
| 57 | \@totalleftmargin\z@ \linewidth\hsize |
| 58 | \@setminipage}}% |
| 59 | {\par\unskip\endMakeFramed% |
| 60 | \at@end@of@kframe} |
| 61 | \makeatother |
| 62 | |
| 63 | \definecolor{shadecolor}{rgb}{.97, .97, .97} |
| 64 | \definecolor{messagecolor}{rgb}{0, 0, 0} |
| 65 | \definecolor{warningcolor}{rgb}{1, 0, 1} |
| 66 | \definecolor{errorcolor}{rgb}{1, 0, 0} |
| 67 | \newenvironment{knitrout}{}{} % an empty environment to be redefined in TeX |
| 68 | |
| 69 | \usepackage{alltt} |
| 70 | \usepackage[utf8]{inputenc} |
| 71 | \usepackage[T1]{fontenc} |
| 72 | |
| 73 | \renewcommand*\familydefault{\sfdefault} |
| 74 | |
| 75 | \marginparwidth 0pt |
| 76 | \oddsidemargin 0pt |
| 77 | \evensidemargin 0pt |
| 78 | \marginparsep 0pt |
| 79 | \topmargin 0pt |
| 80 | \textwidth 16cm |
| 81 | \textheight 23cm |
| 82 | \parindent 5mm |
| 83 | \IfFileExists{upquote.sty}{\usepackage{upquote}}{} |
| 84 | |
| 85 | %%%%%%%% END FROM KNITR |
| 86 | |
| 87 | %%%%%%%%% page de garde |
| 88 | |
| 89 | %\usepackage[a4paper,left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry} |
| 90 | \usepackage[frenchb]{babel} |
| 91 | %\usepackage[pdftex]{graphicx} |
| 92 | |
| 93 | \usepackage{Sweave} |
| 94 | % \usepackage[dvips]{graphicx} |
| 95 | \usepackage{float} |
| 96 | %\usepackage{multido} |
| 97 | |
| 98 | \setlength{\parindent}{0cm} |
| 99 | \setlength{\parskip}{1ex plus 0.5ex minus 0.2ex} |
| 100 | %\newcommand{\hsp}{\hspace{20pt}} |
| 101 | \newcommand{\HRule}{\rule{\linewidth}{0.5mm}} |
| 102 | |
| 103 | %%%%%%% end page de garde |
| 104 | |
| 105 | \include{PageDeGarde} |
| 106 | \include{R_Package} |
| 107 | |
| 108 | \end{document} |