% Created 2011-08-15 Mon 16:56
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{hyperref}
\tolerance=1000
\providecommand{\alert}[1]{\textbf{#1}}

\title{intro}
\author{Stephen Eglen}
\date{\today}

\begin{document}

\maketitle

\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}
\section{Intro}
\label{sec-1}


  This is a short introduction to what Org mode can do.
\section{Outlines}
\label{sec-2}
\subsection{Hiding with repeated TAB or S-TAB}
\label{sec-2-1}


   TAB on a heading will toggle its visibily;
   three dots (ellipsis) denotes material is hidden
   shift works the whole document
\subsection{rearranging headings}
\label{sec-2-2}


   Try moving sections around
\subsection{Promotion / demotion  \texttt{M-S-arrow}}
\label{sec-2-3}


   Levels of headings can be dynamically altered.  Affects all
   subtrees,  e.g. this one.
\subsubsection{Example of third-level heading}
\label{sec-2-3-1}
\subsection{navigating headings}
\label{sec-2-4}

\begin{itemize}
\item \texttt{C-c C-n} next heading
\item \texttt{C-c C-f} next heading, same level
\item \texttt{C-c C-u} up a level
\end{itemize}
\section{Formatting}
\label{sec-3}
\subsection{Recognises simple formats}
\label{sec-3-1}


   e.g.  \textbf{bold text} \emph{italics} \underline{underscore} \verb~some verbatim text~ and \texttt{some    code}.

   $\alpha$ + $\beta$ = $\gamma$
\subsection{Math formatting recognised upon export}
\label{sec-3-2}


   Even in html, using nice math support

   $$\frac{1}{\sqrt{2\pi\sigma^2}}e^{ -\frac{(x-\mu)^2}{2\sigma^2} }$$
\section{Lists}
\label{sec-4}


  Org mode handles unorderd lists, such as:

\begin{itemize}
\item apples
\item oranges
\item bananas
\end{itemize}

  and ordered lists such as:

\begin{enumerate}
\item oranges
\item apples
\item bananas
\end{enumerate}

  In both cases, you can rearrange the list order using M-S-up/down.
  You can add new items with M-RET, or when you kill items, hit \texttt{C-c   C-c} to reformat lists.
\section{Tables and spreadsheets}
\label{sec-5}


  Org mode has nice support for editing tables.  e.g. let's make a
  price list from the above data.  We'll recreate the following table
  dynamically so that you can see how it is built up.


\begin{center}
\begin{tabular}{lr}
 item     &  weight (kg)  \\
 apples   &          0.7  \\
 bananas  &          0.3  \\
 oranges  &          0.2  \\
\end{tabular}
\end{center}




\begin{center}
\begin{tabular}{lr}
\hline
 item     &  weight (kg)  \\
 apples   &          0.7  \\
 bananas  &          0.3  \\
 oranges  &          0.2  \\
\hline
\end{tabular}
\end{center}




  Even better, we can even get org mode to add up the weights and add
  some nice horizontal separators.


\begin{center}
\begin{tabular}{lr}
\hline
 item     &  weight (kg)  \\
\hline
 apples   &          0.7  \\
 bananas  &          0.3  \\
 oranges  &          0.7  \\
\hline
 total    &          1.7  \\
\hline
\end{tabular}
\end{center}



  If you change the values in the table, hit \texttt{C-u C-c C-c} in the
  table to recalculate.  To help with table calculations, you might
  wish to label col/rows:
  

\begin{verbatim}
(org-table-toggle-coordinate-overlays)
\end{verbatim}



  
  These overlays are temporary.
  

\begin{itemize}
\item Export
   We can export the org file into several formats, such as pdf (via
   latex), html, or ASCII.
\end{itemize}

\end{document}