On Sat, Jul 4, 2009 at 2:52 AM, Nick Dokos
<address@hidden> wrote:
Here's the minimal.emacs - you'll need to adjust the load path for your
setup:
,----
| (add-to-list 'load-path (expand-file-name "~/src/emacs/org/org-mode/lisp"))
| (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))
| (require 'org-install)
| (global-set-key "\C-cl" 'org-store-link)
| (global-set-key "\C-ca" 'org-agenda)
| (global-set-key "\C-cb" 'org-iswitchb)
| (setq org-log-done (quote time))
| (setq org-log-into-drawer t)
|
| (load "org-exp")
| (load "org-latex")
|
| (add-to-list 'org-export-latex-classes
| '("beamer"
| "\\documentclass[11pt]{beamer}
| \\usepackage[utf8]{inputenc}
| \\usepackage[T1]{fontenc}
| \\usepackage{hyperref}
| \\usepackage{verbatim}
| \\setbeameroption{show notes}
| \\usetheme{Goettingen}
| \\useoutertheme{infolines}"
| ("\\begin{frame}\\frametitle{%s}\\begin{itemize}" "\\end{itemize}\\end{frame}"
| "\\begin{frame}\\frametitle{%s}\\begin{itemize}" "\\end{itemize}\\end{frame}")
| ("\\item{%s}" . "\\item*{%s}")
| )
| )
`----
Is it possible to put this inside of a hook (say, when org-latex was loaded, or when the document class was beamer during the export process)?
Emacs just reports the following when this code is included into the init file:
Symbol's value as variable is void: org-export-latex-classes
After explicitly loading the library "org-latex" the code is executed and the procedure works for exporting the example file---given that the latex code must be cleaned up.
I haven't yet tried the following as a heading line:
#+OPTIONS: toc:nil
Would that solve the problem you reported?
Alan
and here's slides.org:
| #+OPTIONS: toc:nil H:2
|
| * Why
| ** Reason 1.
| Text explaining reason #1.
| ** Reason 2.
| ... more explanations.
| ** Reason 3.
| Blah, blah, blah.
|
| ** Reason 4.
| Why not?
|
| * What
| ** First piece.
| ** Second piece.
| ** Third piece.
| ** Fourth piece.
`----