Trying to write a project overview at top of rorg.org
[org-mode.git] / existing_tools / RweaveOrg / testing.tex
blob87ff8ae517b8d88a9247af0ab8ed407901093c09
1 % Created 2009-02-08 Sun 11:18
2 \documentclass[11pt]{article}
3 \usepackage[utf8]{inputenc}
4 \usepackage[T1]{fontenc}
5 \usepackage{graphicx}
6 \usepackage{longtable}
7 \usepackage{hyperref}
8 \usepackage{Sweave}
10 \title{testing}
11 \author{Dan}
12 \date{08 February 2009}
14 \begin{document}
16 \maketitle
18 \setcounter{tocdepth}{3}
19 \tableofcontents
20 \vspace*{1cm}
22 \section{Sweave and org-mode}
23 \label{sec-1}
25 If you're reading a PDF version of this document, you should also
26 look at \href{file:///home/dan/src/rorg/existing_tools/RweaveOrg/testing.Rorg}{testing.Rorg} (the source file) and \href{file:///home/dan/src/rorg/existing_tools/RweaveOrg/testing.org}{testing.org} (the output
27 of the Sweave process).
29 Keep in mind that one of the advantages of a block-based approach is
30 using \texttt{C-'} to edit code in its native mode.
32 \subsection{R code that is not printed}
33 \label{sec-1.3}
36 \subsection{R code that is printed}
37 \label{sec-1.4}
39 \begin{Schunk}
40 \begin{Sinput}
41 > c <- 4
42 \end{Sinput}
43 \end{Schunk}
45 We can use block labels to embed blocks by reference (even if they
46 weren't printed before).
47 \subsection{R code that references other blocks}
48 \label{sec-1.5}
50 \begin{Schunk}
51 \begin{Sinput}
52 > a <- 3
53 > b <- 6
54 > c <- 4
55 > a + b + c
56 \end{Sinput}
57 \begin{Soutput}
58 [1] 13
59 \end{Soutput}
60 \end{Schunk}
62 \subsection{Used in text}
63 \label{sec-1.7}
65 The value of \verb=a= is 3.
67 \subsection{Used in a table}
68 \label{sec-1.8}
71 \begin{center}
72 \begin{tabular}{rrrr}
73 a & b & c & TOTAL \\
74 \hline
75 3 & 6 & 4 & 13 \\
76 \end{tabular}
77 \end{center}
82 \end{document}