Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 74 lines (58 sloc) 1.401 kB
8b246d3 @eschulte adding an example presentation file and a README
authored
1 #+Title: Example Presentation
2 #+Author: Eric Schulte
f4b4a86 @punchagan Allow choosing heading level to use as frame.
punchagan authored
3 #+EPRESENT_FRAME_LEVEL: 1
e1a64f3 @eschulte cleaning up workings of sub-level-1-frames
authored
4
ede6631 @punchagan Allow hiding of TODO keywords.
punchagan authored
5 * TODO One -- intro :hello:world:
a9f10ae @punchagan Allow hiding of drawers.
punchagan authored
6 :PROPERTIES:
7 :ARCHIVE: hello
8 :END:
8b246d3 @eschulte adding an example presentation file and a README
authored
9 # a comment, which will not be displayed
10
11 Simple presentations run by Emacs
12 - run in Emacs
13 - uses Org-mode markup
14 - looks pretty good
15
16 ** with subheadings
17 and some other stuff
18
ede6631 @punchagan Allow hiding of TODO keywords.
punchagan authored
19 * DONE Two -- source code
8b246d3 @eschulte adding an example presentation file and a README
authored
20
21 Call =epresent-run= to present an Org-mode buffer.
22
23 #+begin_src emacs-lisp
24 ;;;###autoload
25 (defun epresent-run ()
26 (interactive)
27 (unless (eq major-mode 'org-mode)
28 (error "EPresent can only be used from Org Mode"))
29 (setq epresent--org-buffer (current-buffer))
30 (epresent--get-frame)
31 (epresent-mode)
32 (epresent-top))
33 #+end_src
34
b2dd9b0 @eschulte now displays inline images
authored
35 * Three -- LaTeX images
8b246d3 @eschulte adding an example presentation file and a README
authored
36
37 Kinetic Energy:
38
39 \begin{equation*}
40 e = \frac{1}{2}mv^2
41 \end{equation*}
42
b2dd9b0 @eschulte now displays inline images
authored
43 * Four -- tables
8b246d3 @eschulte adding an example presentation file and a README
authored
44
45 Squares
46 | 1 | 1 |
47 | 2 | 4 |
48 | 3 | 9 |
49 | 4 | 16 |
50 | 5 | 25 |
51 | 6 | 36 |
52 #+TBLFM: $2=$1*$1
b2dd9b0 @eschulte now displays inline images
authored
53
54 * Five -- images
55
56 in-line image display
57 [[file:org-mode-unicorn.png]]
c47c659 @eschulte add demo slide demonstrating code block execution
authored
58 * Six -- executing source code
59 1. Press =c= to move to the next code block.
60 #+begin_src sh
61 date
62 #+end_src
63
64 2. Press =C= to move to the previous code block.
65 #+begin_src sh
66 uname -a
67 #+end_src
68
69 3. When a code block is executed with =C-c C-c=, the page is refreshed
70 to show the results.
71 #+begin_src sh
72 echo "in $(pwd)"
73 #+end_src
Something went wrong with that request. Please try again.