* Intro

  This is a short introduction to what Org mode can do.


* Outlines

** Hiding with repeated TAB or S-TAB

   TAB on a heading will toggle its visibily;
   three dots (ellipsis) denotes material is hidden
   shift works the whole document

** rearranging headings

   Try moving sections around

** Promotion / demotion  =M-S-arrow=

   Levels of headings can be dynamically altered.  Affects all
   subtrees,  e.g. this one.
*** Example of third-level heading

** navigating headings
   - =C-c C-n= next heading
   - =C-c C-f= next heading, same level
   - =C-c C-u= up a level

* Formatting

** Recognises simple formats

   e.g.  *bold text* /italics/ _underscore_ ~some verbatim text~ and =some
   code=.

   \alpha + \beta = \gamma

** Math formatting recognised upon export

   Even in html, using nice math support

   $$\frac{1}{\sqrt{2\pi\sigma^2}}e^{ -\frac{(x-\mu)^2}{2\sigma^2} }$$


* Lists

  Org mode handles unorderd lists, such as:

  - apples
  - oranges
  - bananas

  and ordered lists such as:

  1. oranges
  2. apples
  3. bananas

  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 =C-c
  C-c= to reformat lists.

* Tables and spreadsheets

  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.

  | item    | weight (kg) |
  | apples  |         0.7 |
  | bananas |         0.3 |
  | oranges |         0.2 |

|---------+-------------|
| item    | weight (kg) |
| apples  |         0.7 |
| bananas |         0.3 |
| oranges |         0.2 |
|---------+-------------|


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

  |---------+-------------|
  | item    | weight (kg) |
  |---------+-------------|
  | apples  |         0.7 |
  | bananas |         0.3 |
  | oranges |         0.7 |
  |---------+-------------|
  | total   |         1.7 |
  |---------+-------------|
  #+TBLFM: @5$2=vsum(@2$2..@4$2)

  If you change the values in the table, hit =C-u C-c C-c= in the
  table to recalculate.  To help with table calculations, you might
  wish to label col/rows:
  
  #+begin_src emacs-lisp :eval no
    (org-table-toggle-coordinate-overlays)
  #+end_src
  
  These overlays are temporary.
  

 * Export
   We can export the org file into several formats, such as pdf (via
   latex), html, or ASCII.
